/**
 * Vest+ Platform - Design System & Estilos Globais
 * Identidade Visual: Verde Esmeralda / Menta (Aprovação, Clareza e Foco)
 */

:root {
    /* Paleta Verde Esmeralda & Menta */
    --vest-primary: #059669;          /* Emerald 600 - Tom Primário */
    --vest-primary-hover: #047857;    /* Emerald 700 - Hover / Foco */
    --vest-primary-dark: #065f46;     /* Emerald 800 - Destaques Profundos */
    --vest-primary-light: #10b981;    /* Emerald 500 - Elementos Vivos */
    --vest-mint: #34d399;             /* Emerald 400 - Menta para Detalhes */
    --vest-bg-mint: #ecfdf5;          /* Emerald 50 - Fundo Suave */
    --vest-bg-mint-subtle: #f0fdf4;   /* Green 50 - Alertas e Badges */
    --vest-border-mint: #a7f3d0;      /* Emerald 200 - Bordas Claras */

    /* Neutros e Tipografia */
    --vest-dark: #0f172a;             /* Slate 900 - Textos Principais e Navbar */
    --vest-dark-surface: #1e293b;     /* Slate 800 - Superfícies Escuras */
    --vest-text-muted: #64748b;       /* Slate 500 - Legendas e Metadados */
    --vest-bg: #f8fafc;               /* Slate 50 - Fundo da Página */
    --vest-border: #e2e8f0;           /* Slate 200 - Linhas Divisórias */
    --vest-white: #ffffff;

    /* Métricas e Efeitos */
    --vest-radius: 12px;
    --vest-radius-sm: 8px;
    --vest-radius-lg: 16px;
    --vest-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --vest-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --vest-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* ==============================================================================
   RESET E ESTRUTURA GERAL
   ============================================================================== */
body {
    background-color: var(--vest-bg);
    color: var(--vest-dark);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* Links */
a {
    color: var(--vest-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--vest-primary-hover);
}

/* ==============================================================================
   SOBREPOSIÇÃO DA PALETA BOOTSTRAP 5 (MIGRAÇÃO DE AZUL PARA VERDE ESMERALDA)
   ============================================================================== */
.btn-primary {
    background-color: var(--vest-primary) !important;
    border-color: var(--vest-primary) !important;
    color: #ffffff !important;
    font-weight: 600;
    border-radius: var(--vest-radius-sm);
    transition: all 0.2s ease;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--vest-primary-hover) !important;
    border-color: var(--vest-primary-hover) !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25) !important;
}

.btn-outline-primary {
    color: var(--vest-primary) !important;
    border-color: var(--vest-primary) !important;
    font-weight: 600;
    border-radius: var(--vest-radius-sm);
    transition: all 0.2s ease;
}
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background-color: var(--vest-primary) !important;
    border-color: var(--vest-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25) !important;
}

/* Alinhamento de classes de utilitário do Bootstrap */
.bg-primary {
    background-color: var(--vest-primary) !important;
}
.text-primary {
    color: var(--vest-primary) !important;
}
.border-primary {
    border-color: var(--vest-primary) !important;
}

/* Campos de Formulário com Foco Verde */
.form-control:focus, .form-select:focus {
    border-color: var(--vest-primary-light) !important;
    box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.2) !important;
}
.form-check-input:checked {
    background-color: var(--vest-primary) !important;
    border-color: var(--vest-primary) !important;
}
.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25) !important;
}

/* ==============================================================================
   COMPONENTES CUSTOMIZADOS VEST+
   ============================================================================== */

/* Navbar Principal */
.navbar-custom {
    background-color: var(--vest-dark);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--vest-mint) !important;
}
.nav-link {
    font-weight: 500;
    color: #cbd5e1 !important;
    transition: color 0.2s ease;
}
.nav-link:hover, .nav-link.active {
    color: #ffffff !important;
}

/* Cards Estilizados */
.card-custom {
    background: var(--vest-white);
    border: 1px solid var(--vest-border);
    border-radius: var(--vest-radius);
    box-shadow: var(--vest-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-custom:hover {
    box-shadow: var(--vest-shadow-md);
}

.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: var(--vest-shadow-md);
}

/* Badges de Taxonomia */
.badge-discipline {
    background-color: var(--vest-bg-mint);
    color: var(--vest-primary-dark);
    border: 1px solid var(--vest-border-mint);
    font-weight: 600;
}
.badge-category {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    font-weight: 500;
}
.badge-emerald {
    background-color: var(--vest-primary);
    color: #ffffff;
    font-weight: 600;
}

/* Cards de Métricas do Dashboard */
.stat-card {
    border-radius: var(--vest-radius);
    padding: 1.5rem;
    background: var(--vest-white);
    border: 1px solid var(--vest-border);
    box-shadow: var(--vest-shadow);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: transform 0.2s ease;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--vest-shadow-md);
}
.stat-icon-wrapper {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}
.stat-icon-emerald {
    background-color: var(--vest-bg-mint);
    color: var(--vest-primary);
    border: 1px solid var(--vest-border-mint);
}

/* Alternativas Interativas (Questões) */
.card-alternativa {
    border: 1px solid var(--vest-border);
    border-radius: var(--vest-radius-sm);
    padding: 0.85rem 1rem;
    transition: all 0.2s ease;
    background-color: #ffffff;
    outline: none;
}
.card-alternativa:hover {
    background-color: var(--vest-bg-mint-subtle);
    border-color: var(--vest-primary-light);
}
.card-alternativa:focus-visible,
.card-alternativa:focus-within {
    border-color: var(--vest-primary) !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.25) !important;
    background-color: var(--vest-bg-mint-subtle);
}

/* Hero Section & Botões Pill */
.hero-gradient {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 45%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}
.hero-badge {
    background: rgba(52, 211, 153, 0.15);
    color: #a7f3d0;
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 50px;
    padding: 0.45rem 1.15rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-pill {
    border-radius: 50px !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    font-weight: 600;
}
.btn-pill.btn-lg {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
}

/* Cards Flutuantes de Destaque */
.hero-card-floating {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--vest-radius-lg);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.25);
}

/* Recursos da Landing Page */
.feature-card {
    background: var(--vest-white);
    border: 1px solid var(--vest-border);
    border-radius: var(--vest-radius-lg);
    padding: 2rem 1.75rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--vest-shadow-md);
    border-color: var(--vest-border-mint);
}
.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    background-color: var(--vest-bg-mint);
    color: var(--vest-primary);
    border: 1px solid var(--vest-border-mint);
}

/* Cards Minimalistas de Equipe (Apresentação Igualitária) */
.team-card-minimal {
    background: var(--vest-white);
    border: 1px solid var(--vest-border);
    border-radius: var(--vest-radius);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}
.team-card-minimal:hover {
    transform: translateY(-3px);
    box-shadow: var(--vest-shadow);
    border-color: var(--vest-border-mint);
}
.team-avatar-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.25);
}

/* ==============================================================================
   TEMPLATE ESTRUTURADO DE ARTIGOS TEÓRICOS (ÁREA DO ALUNO)
   ============================================================================== */
.article-reader {
    background: var(--vest-white);
    border-radius: var(--vest-radius-lg);
    border: 1px solid var(--vest-border);
    box-shadow: var(--vest-shadow);
    padding: 2.5rem 3rem;
}
@media (max-width: 768px) {
    .article-reader {
        padding: 1.5rem 1.25rem;
    }
}

.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #1e293b;
    max-width: 820px;
    margin: 0 auto;
}
.article-content p {
    margin-bottom: 1.35rem;
}
.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--vest-border-mint);
}
.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--vest-primary-dark);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}
.article-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background-color: #f1f5f9;
    color: var(--vest-primary-dark);
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    font-size: 0.95em;
    border: 1px solid #e2e8f0;
}
.article-content blockquote {
    border-left: 4px solid var(--vest-primary-light);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background-color: var(--vest-bg-mint);
    border-radius: 0 8px 8px 0;
    color: #334155;
    font-style: italic;
}

/* Caixas de Destaque Didáticas */
.callout-dica-enem {
    background-color: var(--vest-bg-mint);
    border: 1px solid var(--vest-border-mint);
    border-left: 5px solid var(--vest-primary);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
    color: #064e3b;
}
.callout-dica-enem .callout-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--vest-primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.callout-nota {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 5px solid #f59e0b;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
    color: #78350f;
}
.callout-nota .callout-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #b45309;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Sidebar do Artigo */
.article-sidebar {
    position: sticky;
    top: 90px;
}
.article-sidebar .card {
    border-radius: var(--vest-radius);
    border: 1px solid var(--vest-border);
}
.reading-time-badge {
    background-color: #f8fafc;
    border: 1px solid var(--vest-border);
    color: var(--vest-text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

