:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #64748b;
    --accent: #f59e0b;
    --bg: #f1f5f9;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Moderno */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    gap: 8px;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

/* Grid e Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin: 40px 0;
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: #cbd5e1;
}

.card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-bottom: 1px solid #f1f5f9;
}

.video-container {
    position: relative;
    padding-bottom: 177.77%; /* Proporção 9:16 para Reels/TikTok */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
}

.card-content {
    padding: 24px;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
    line-height: 1.4;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.935rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Estrelas */
.stars {
    display: flex;
    gap: 4px;
    color: #e2e8f0;
    margin-bottom: 20px;
    cursor: pointer;
}

.stars i {
    font-size: 1.2rem;
    transition: var(--transition);
}

.stars i.fas {
    color: #fbbf24;
}

.stars i.far {
    color: #e2e8f0;
}

.stars i:hover {
    color: #fbbf24;
    transform: scale(1.2);
}

/* Compartilhamento */
.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.share-btn {
    padding: 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.share-btn.whatsapp { background: #22c55e; }
.share-btn.facebook { background: #1877f2; }
.share-btn:hover { opacity: 0.9; transform: scale(1.02); }

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: inherit;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    cursor: pointer;
}

/* Footer */
footer {
    padding: 60px 0;
    background: var(--white);
    border-top: 1px solid #f1f5f9;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Páginas de página única (view.php, login, register) */
.page-title {
    text-align: center;
    margin: 40px 0;
}

.page-title h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.page-title p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Hero / Header da página principal */
.hero-section {
    text-align: center;
    padding: 50px 0 30px;
}

.hero-section h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
    letter-spacing: -0.025em;
}

.hero-section p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Mensagem de data nos cards */
.card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* Ícone da imagem do Facebook */
.fb-embed-container {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

/* Responsivo */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .share-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .container {
        width: 100%;
        padding: 0 12px;
    }

    .card-content {
        padding: 16px;
    }
}
