/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #070738;
    --secondary: #1A1A5E;
    --accent: #FE0000;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--primary);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-accent {
    background-color: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-accent:hover {
    background-color: #e00000;
    border-color: #e00000;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(7, 7, 56, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--primary);
}

.logoimg {
    height: 30px;
    width: 30px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.125rem;
    line-height: 1.2;
    color: var(--primary);
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 500;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

.nav-desktop a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.nav-desktop a:hover {
    color: var(--accent);
}

.nav-desktop a.active {
    color: var(--accent);
    font-weight: 600;
}

.header > .container > .btn {
    display: none;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--white);
    border-top: 1px solid var(--gray-200);
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.nav-mobile a.active {
    color: var(--accent);
    font-weight: 600;
}

/* Cores dos links de navegação */
#v { color: #e57f26; }
#c { color: #38fb31; }
#d { color: #a51afb; }
#a { color: #e6148b; }
#g { color: #fbcd34; }

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
    
    .header > .container > .btn {
        display: inline-flex;
    }
    
    .menu-toggle {
        display: none;
    }
}

/* ===== HERO SECTION ===== */
.provas-hero {
    padding: 120px 0 60px;
    background: linear-gradient(rgba(7, 7, 56, 0.9), rgba(7, 7, 56, 0.95)), 
                url('https://i.ibb.co/7djPWQf6/profess.png') center/cover;
    color: var(--white);
    position: relative;
}

.provas-hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.provas-hero-info {
    flex: 1;
}

.provas-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--accent);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.provas-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.provas-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
}

.provas-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 180px;
}

.stat-item i {
    font-size: 1.75rem;
    color: var(--accent);
}

.stat-item div {
    display: flex;
    flex-direction: column;
}

.stat-item strong {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}

.stat-item span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

@media (min-width: 992px) {
    .provas-hero-content {
        flex-direction: row;
        align-items: center;
    }
    
    .provas-stats {
        gap: 1rem;
    }
    
    .stat-item {
        min-width: 160px;
    }
}

@media (max-width: 767px) {
    .provas-hero {
        padding: 100px 0 40px;
    }
    
    .provas-title {
        font-size: 2rem;
    }
    
    .provas-stats {
        flex-direction: column;
    }
    
    .stat-item {
        width: 100%;
    }
}

/* ===== MAIN CONTENT ===== */
.provas-main {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 50%, rgba(7, 7, 56, 0.03) 100%);
    min-height: 60vh;
}

/* Vestibular Selector */
.vestibular-selector {
    margin-bottom: 2.5rem;
}

.vestibular-selector h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vestibular-selector h2 i {
    color: var(--accent);
}

.vestibular-tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.vest-tab {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 180px;
    justify-content: center;
}

.vest-tab i {
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.vest-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 7, 56, 0.1);
}

.vest-tab.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.vest-tab.active i {
    color: var(--white);
}

/* Etapa Selector (SIS) */
.etapa-selector {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--white), var(--gray-50));
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    display: none;
}

.etapa-selector.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.etapa-selector h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.etapa-selector h3 i {
    color: var(--accent);
}

.etapa-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.etapa-tab {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: 0.75rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 200px;
    justify-content: center;
}

.etapa-tab i {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.etapa-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 0, 0, 0.1);
}

.etapa-tab.active {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.etapa-tab.active i {
    color: var(--white);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Provas Container */
.provas-container {
    margin-bottom: 3rem;
}

.provas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.loading-provas {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray-500);
    grid-column: 1 / -1;
}

.loading-provas i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.no-provas {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray-500);
    display: none;
}

.no-provas.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.no-provas i {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.no-provas h4 {
    font-size: 1.5rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

/* Prova Card */
.prova-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.prova-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(7, 7, 56, 0.1);
    border-color: var(--primary);
}

.prova-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.prova-ano {
    background: var(--primary);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

.prova-etapa {
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

.prova-titulo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}

.prova-titulo i {
    color: var(--accent);
    margin-right: 0.5rem;
}

.prova-botoes {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.btn-prova, .btn-gabarito {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-prova {
    background: var(--primary);
    color: var(--white);
}

.btn-prova:hover {
    background: var(--secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(7, 7, 56, 0.2);
}

.btn-gabarito {
    background: var(--accent);
    color: var(--white);
}

.btn-gabarito:hover {
    background: #e00000;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(254, 0, 0, 0.2);
}

.btn-prova i, .btn-gabarito i {
    font-size: 0.9rem;
}

/* Coming Soon */
.coming-soon {
    background: linear-gradient(135deg, var(--gray-50), var(--white));
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    display: none;
}

.coming-soon.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.coming-soon-content {
    max-width: 500px;
    margin: 0 auto;
}

.coming-soon i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.coming-soon h3 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.coming-soon p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.coming-soon .small {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-top: 1.5rem;
}

/* ===== FOOTER ===== */
.footer {
    padding: 4rem 0 2rem;
    background: linear-gradient(180deg, var(--primary) 0%, #050530 100%);
    color: var(--white);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--secondary), var(--primary));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.logo.light .logo-name,
.logo.light .logo-subtitle {
    color: var(--white);
}

.logo.light .logo-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.footer-brand > p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 1rem 0;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.2s ease;
}

.social-links a:hover {
    background-color: var(--accent);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--white);
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-contact i {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 767px) {
    .vestibular-tabs {
        flex-direction: column;
    }
    
    .vest-tab {
        min-width: 100%;
    }
    
    .etapa-tabs {
        flex-direction: column;
    }
    
    .etapa-tab {
        max-width: 100%;
    }
    
    .provas-grid {
        grid-template-columns: 1fr;
    }
    
    .prova-botoes {
        flex-direction: column;
    }
    
    .btn-prova, .btn-gabarito {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .provas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .provas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}