/* ============================================
   ENEM - Professional Academic Theme
   Purpose-driven design focused on university admission
   ============================================ */

/* New Professional Color Palette - Academic & Trustworthy */
:root {
    /* Primary Academic Blue - represents knowledge and trust */
    --exam-primary: #1e6fa8;
    --exam-primary-dark: #155a8a;
    --exam-primary-light: #2d8bc7;
    
    /* Success Green - represents achievement and growth */
    --exam-success: #10b981;
    --exam-success-dark: #059669;
    
    /* Accent Gold - represents excellence and achievement */
    --exam-gold: #f59e0b;
    --exam-gold-light: #fbbf24;
    
    /* Professional Gradient */
    --exam-gradient: linear-gradient(135deg, #1e6fa8 0%, #155a8a 50%, #0d4a73 100%);
    --exam-gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --exam-gradient-gold: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    
    /* Legacy support */
    --exam-accent: var(--exam-primary);
    --exam-accent-hover: var(--exam-primary-dark);
}

/* Hero Section - Professional Academic Gradient */
.hero-section {
    background: var(--exam-gradient);
    position: relative;
    padding-bottom: 4rem;
}

/* Hero Image Container */
.hero-image-container {
    max-width: 900px;
    margin: 2rem auto 3rem;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hero-image[src=""] {
    display: none;
}

/* Updated Hero Stats */
.hero-stats {
    margin-top: 2rem;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--exam-gold);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

/* Playful circular/organic shapes */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(102, 126, 234, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(118, 75, 162, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* Modern, youthful card design */
.competencia-card {
    background: linear-gradient(135deg, var(--surface) 0%, rgba(102, 126, 234, 0.03) 100%);
    border-radius: 1.25rem;
    border: 2px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.competencia-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple), var(--accent-green));
}

/* Interactive hover effects */
.competencia-card:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
    transform: translateY(-8px) scale(1.02);
}

/* Gamification visual elements */
.estrategia-card {
    background: var(--surface);
    border-radius: 1rem;
    border: 2px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.estrategia-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.estrategia-card:hover::after {
    opacity: 1;
}

.estrategia-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px) rotate(-1deg);
}

/* Professional Destaque Boxes */
.destaque-box {
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.destaque-primary {
    background: var(--exam-gradient);
}

.destaque-success {
    background: var(--exam-gradient-success);
}

.destaque-cta {
    background: linear-gradient(135deg, var(--exam-primary) 0%, var(--exam-success) 100%);
}

/* Playful stat items */
.stat-item {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.25);
}

/* Professional Section Titles */
.section-title {
    background: linear-gradient(135deg, var(--exam-primary) 0%, var(--exam-success) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--exam-primary), var(--exam-success), var(--exam-gold));
    border-radius: 2px;
}

/* Youthful, energetic spacing */
.competencias-grid {
    gap: 2rem;
}

.estrategias-grid {
    gap: 2rem;
}

/* Modern badge design */
.hero-badge {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 2rem;
}

/* Professional Competency Titles */
.competencia-title {
    color: var(--exam-primary);
    font-weight: 700;
}

/* Organic content cards */
.content-card {
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
    border: 1px solid var(--border-light);
}

.content-card:hover {
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.15);
}

/* Progress bar style accent */
.intro-text {
    position: relative;
    padding-left: 1.5rem;
}

.intro-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-blue), var(--accent-purple), var(--accent-green));
    border-radius: 2px;
}

/* Emoji icon styling */
.estrategia-icon {
    font-size: 3rem;
    display: block;
    line-height: 1;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    text-align: center;
}

.destaque-title {
    gap: 0.75rem !important;
}

.destaque-title img {
    display: none;
}

/* Video section styling */
.video-section {
    text-align: center;
    margin-top: 2rem;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
    border: 3px solid var(--border-light);
}

.video-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* Process Steps Section */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 3rem 0;
}

.process-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem;
    background: var(--surface-elevated);
    border-radius: 1rem;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
}

.process-step::before {
    content: '';
    position: absolute;
    left: 3.5rem;
    top: 5rem;
    bottom: -2rem;
    width: 2px;
    background: linear-gradient(180deg, var(--exam-primary), transparent);
    opacity: 0.3;
}

.process-step:last-child::before {
    display: none;
}

.process-step:hover {
    transform: translateX(10px);
    border-color: var(--exam-primary);
    box-shadow: 0 10px 30px rgba(30, 111, 168, 0.2);
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--exam-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Playfair Display', serif;
    box-shadow: 0 4px 15px rgba(30, 111, 168, 0.3);
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--exam-primary);
    margin-bottom: 0.75rem;
    font-family: 'Playfair Display', serif;
}

.step-description {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Purpose Section Styling */
.purpose-section {
    border-left: 4px solid var(--exam-primary);
}

.process-section {
    border-left: 4px solid var(--exam-success);
}

.competencias-section {
    border-left: 4px solid var(--exam-gold);
}

/* Updated CTA Section - Override exam-footer.css */
.cta-section {
    background: var(--exam-gradient) !important;
    padding: 5rem 2rem !important;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white !important;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-container iframe {
        height: 250px;
    }
    
    .hero-image-container {
        margin: 1.5rem auto 2rem;
        border-radius: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .process-step {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .process-step::before {
        display: none;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .step-title {
        font-size: 1.25rem;
    }
    
    .cta-title {
        font-size: 1.875rem;
    }
    
    .cta-subtitle {
        font-size: 1.125rem;
    }
}
