/* ============================================
   UERJ - Modern Purple/Violet Theme
   Prestigious, impactful, purpose-driven design
   ============================================ */

/* UERJ Official Colors - Institutional Identity */
:root {
    /* Cores oficiais da UERJ */
    --uerj-azul: #0072CE; /* Pantone 285 C - Cor principal */
    --uerj-azul-hover: #005ba3;
    --uerj-azul-light: #3399e0;
    --uerj-vermelho: #F9423A; /* Pantone Warm Red C - Acento */
    --uerj-dourado: #AD841F; /* Pantone 1255 C - Destaque */
    --uerj-dourado-light: #c9a042;
    
    /* Gradientes UERJ */
    --exam-gradient: linear-gradient(135deg, #0072CE 0%, #005ba3 50%, #004080 100%);
    --exam-gradient-hero: linear-gradient(135deg, rgba(0, 114, 206, 0.95) 0%, rgba(0, 91, 163, 0.95) 100%);
    --exam-gradient-accent: linear-gradient(135deg, #0072CE 0%, #F9423A 100%);
    
    /* Override primary colors for UERJ page */
    --primary: var(--uerj-azul);
    --primary-hover: var(--uerj-azul-hover);
    --exam-accent: var(--uerj-azul);
    --exam-accent-hover: var(--uerj-azul-hover);
    --exam-accent-light: var(--uerj-azul-light);
    --exam-accent-dark: #004080;
}

/* Hero Section - Modern with Image Background */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--exam-gradient-hero);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.hero-cta {
    margin-top: 2.5rem;
}

/* UERJ pattern overlay with official blue */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 150px,
            rgba(0, 114, 206, 0.02) 150px,
            rgba(0, 114, 206, 0.02) 151px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 150px,
            rgba(0, 91, 163, 0.02) 150px,
            rgba(0, 91, 163, 0.02) 151px
        );
    pointer-events: none;
    z-index: -1;
}

/* UERJ card design with official blue accents */
.content-card {
    background: var(--surface);
    border-radius: 1rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(0, 114, 206, 0.1);
    transition: all 0.3s ease;
}

.content-card:hover {
    box-shadow: 0 12px 32px rgba(0, 114, 206, 0.2);
    border-color: var(--uerj-azul);
    transform: translateY(-2px);
}

/* Modern card design with purple accent bar */
.competencia-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    position: relative;
    padding-left: 2.5rem;
    transition: all 0.3s ease;
}

.competencia-card::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--exam-gradient);
    border-radius: 2px;
}

.competencia-card:hover {
    border-color: var(--uerj-azul);
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 114, 206, 0.15);
}

/* UERJ section title with official blue gradient underline */
.section-title {
    position: relative;
    padding-bottom: 1.5rem;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--exam-gradient);
    border-radius: 2px;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--uerj-dourado);
    border-radius: 2px;
    opacity: 0.8;
}

/* UERJ strategy cards with official blue top border animation */
.estrategia-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.estrategia-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--exam-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 0.75rem 0.75rem 0 0;
}

.estrategia-card:hover::before {
    transform: scaleX(1);
}

.estrategia-card:hover {
    border-color: var(--uerj-azul);
    box-shadow: 0 12px 32px rgba(0, 114, 206, 0.2);
    transform: translateY(-5px);
}

/* UERJ highlight box with official blue gradient */
.destaque-box {
    background: var(--exam-gradient);
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0, 114, 206, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modern stat items with glassmorphism */
.stat-item {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Minimalist grid spacing */
.competencias-grid {
    gap: 2rem;
}

.estrategias-grid {
    gap: 2rem;
}

/* Sophisticated badge */
.hero-badge {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

/* UERJ title styling with official blue accent */
.competencia-title {
    color: var(--uerj-azul);
    font-weight: 700;
    line-height: 1.4;
}

/* New metodologia grid styles */
.metodologia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.metodologia-card {
    background: var(--surface-elevated);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metodologia-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--exam-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.metodologia-card:hover::before {
    transform: scaleX(1);
}

.metodologia-card:hover {
    border-color: var(--uerj-azul);
    box-shadow: 0 12px 32px rgba(0, 114, 206, 0.2);
    transform: translateY(-5px);
}

.metodologia-icon {
    width: 48px;
    height: 48px;
    background: var(--exam-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.metodologia-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.metodologia-description {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Refined intro text */
.intro-text {
    line-height: 1.9;
    text-align: left;
}

/* Clean, professional aesthetic */
.main-content {
    padding: 5rem 2rem;
}

/* Subtle hover effects */
.competencia-card:hover {
    transform: translateX(5px);
    border-color: var(--primary);
}

/* UERJ icon styling with official blue */
.icon-svg {
    filter: drop-shadow(0 2px 4px rgba(0, 114, 206, 0.3));
}

/* 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: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.2);
    border: 2px solid var(--border-light);
}

.video-container:hover {
    border-color: var(--uerj-azul);
    box-shadow: 0 25px 60px rgba(0, 114, 206, 0.3);
}

.video-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

@media (max-width: 768px) {
    .video-container iframe {
        height: 250px;
    }
}

/* Elegant typography */
.destaque-title {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Professional spacing */
.content-card {
    padding: 3rem;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .content-card {
        padding: 2rem;
    }
    
    .main-content {
        padding: 3rem 1rem;
    }
    
    .metodologia-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .competencias-grid {
        grid-template-columns: 1fr;
    }
}
