/* ==========================================
   UniUnica - Segunda Graduação Landing Page
   CSS Stylesheet
   ========================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7b2cbf;
    --secondary-color: #4c0080;
    --accent-color: #25d366;
    --danger-color: #ff4757;
    --warning-color: #ffa502;
    --text-dark: #2f3542;
    --text-light: #57606f;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-primary { color: var(--primary-color); }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-cta {
    background: var(--accent-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.header-cta:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.header-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.header-cta:hover::before {
    left: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="g" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><circle cx="200" cy="200" r="150" fill="url(%23g)"/><circle cx="800" cy="300" r="100" fill="url(%23g)"/><circle cx="500" cy="700" r="200" fill="url(%23g)"/></svg>') no-repeat center center;
    background-size: cover;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-left h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    margin-bottom: 24px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-left .subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
    font-weight: 400;
}

.urgency-banner {
    background: var(--danger-color);
    color: var(--white);
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    margin-bottom: 32px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.hero-benefits {
    list-style: none;
    margin-bottom: 40px;
}

.hero-benefits li {
    color: var(--white);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
}

.check-icon {
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 60px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-cta:hover {
    background: #128c7e;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.hero-cta:hover::before {
    left: 100%;
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.info-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.info-card p {
    color: var(--text-light);
    margin: 0;
}

/* Statistics Section */
.stats {
    padding: 80px 0;
    background: var(--primary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 8px;
}

.stat-item p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e1e8ed;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.feature-card h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* Courses Section */
.courses {
    padding: 100px 0;
    background: var(--white);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.course-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    z-index: 1;
}

.course-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(123, 44, 191, 0.15);
}

.course-card h4 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

/* .course-duration styles removed as duration info was removed from cards */

.course-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Removed carousel navigation styles */

/* Mobile-specific styles */
@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .course-card {
        padding: 20px;
    }
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    margin-bottom: 24px;
}

.cta-section p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer p {
    margin-bottom: 8px;
    opacity: 0.8;
}

/* Icons */
.icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.icon-white {
    fill: white;
}

/* MEC Rating Stars */
.mec-rating-feature {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 16px 0;
}

.star {
    color: #ffd700;
    font-size: 20px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
}

/* Keyframes */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 12px 0;
    }

    .logo-text {
        font-size: 20px;
    }

    .header-cta {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .hero {
        margin-top: 70px;
        padding: 40px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-cta {
        padding: 16px 32px;
        font-size: 1.1rem;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-left h1 {
        font-size: 2rem;
    }
    
    .urgency-banner {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    
    .hero-cta {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .feature-card,
    .course-card {
        padding: 24px 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Print Styles */
@media print {
    .header,
    .hero,
    .stats {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .features,
    .courses,
    .footer {
        padding: 20px 0;
    }
}