/* ================================================
   PÁGINA INDIVIDUAL DO CURSO - LAYOUT MODERNO 2 COLUNAS
   ================================================ */

.ead-course-page {
    background: #0a0a0a;
    min-height: 100vh;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #fff;
}

.ead-course-page * { box-sizing: border-box; }

.ead-course-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 30px;
}

/* ========== GRID 2 COLUNAS ========== */
.ead-course-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
    align-items: start;
}

/* ========== COLUNA ESQUERDA - CONTEÚDO ========== */
.ead-course-main h1 {
    color: #A020F0;
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 20px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.ead-course-main .course-description {
    color: #b0b0b0;
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 35px;
}

/* Badges de estatísticas */
.ead-course-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.ead-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(160, 32, 240, 0.1);
    border: 1px solid rgba(160, 32, 240, 0.3);
    border-radius: 30px;
    padding: 10px 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

/* Seções de conteúdo */
.ead-course-section {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

.ead-course-section h2 {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ead-course-section p {
    color: #a0a0a0;
    line-height: 1.8;
    margin: 0;
}

/* Grid de aprendizado */
.ead-learning-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.ead-learning-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #c8c8c8;
    font-size: 14px;
    line-height: 1.5;
}

.ead-learning-item .check {
    color: #10B981;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ========== ACCORDION DE MÓDULOS - ESTILO SIDEBAR ========== */
.ead-curriculum {
    margin-top: 20px;
}

.ead-curriculum > h2 {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ead-module-accordion {
    background: #111111;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ead-module-accordion:hover {
    border-color: rgba(160, 32, 240, 0.3);
}

.ead-module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.ead-module-header:hover {
    background: rgba(160, 32, 240, 0.05);
}

.ead-module-title {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}

.ead-module-title .module-icon {
    font-size: 20px;
}

.ead-module-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ead-module-count {
    color: #888;
    font-size: 13px;
    background: rgba(255,255,255,0.05);
    padding: 4px 12px;
    border-radius: 20px;
}

.ead-module-arrow {
    color: #A020F0;
    transition: transform 0.3s ease;
    font-size: 12px;
    width: 20px;
    text-align: center;
}

.ead-module-accordion.open .ead-module-arrow {
    transform: rotate(90deg);
}

/* Conteúdo do módulo (aulas) */
.ead-module-content {
    display: none;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0, 0, 0, 0.3);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.ead-module-accordion.open .ead-module-content {
    display: block;
    max-height: 2000px;
}

/* Grupo de matéria */
.ead-subject-group {
    padding: 0;
}

.ead-subject-title {
    color: #A020F0;
    font-size: 12px;
    font-weight: 700;
    padding: 15px 20px 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(160, 32, 240, 0.1);
    background: rgba(160, 32, 240, 0.03);
}

/* Item de aula */
.ead-lesson-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #b0b0b0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: all 0.2s;
}

.ead-lesson-item:last-child {
    border-bottom: none;
}

.ead-lesson-item:hover {
    background: rgba(160, 32, 240, 0.05);
    color: #fff;
}

.ead-lesson-item .lesson-icon {
    font-size: 14px;
    opacity: 0.7;
}

/* ========== COLUNA DIREITA - CARD DE COMPRA ========== */
.ead-course-sidebar {
    position: sticky;
    top: 30px;
}

.ead-purchase-card {
    background: #111111;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

.ead-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ead-card-body {
    padding: 30px;
}

.ead-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 25px;
}

.ead-price-current {
    font-size: 2.5rem;
    font-weight: 800;
    color: #10B981;
    letter-spacing: -1px;
}

/* Botão CTA */
.ead-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 28px;
    background: linear-gradient(135deg, #6B21A8 0%, #A020F0 50%, #8B00FF 100%);
    color: #fff !important;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    box-shadow: 0 8px 25px rgba(160, 32, 240, 0.35);
}

.ead-cta-btn:hover,
.ead-cta-btn:focus,
.ead-cta-btn:active {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(160, 32, 240, 0.5);
    background: linear-gradient(135deg, #8B00FF 0%, #A020F0 50%, #6B21A8 100%);
    color: #fff !important;
    text-decoration: none !important;
}

.ead-cta-btn svg {
    width: 22px;
    height: 22px;
}

/* Features do curso */
.ead-card-features {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.ead-card-features h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 18px;
}

.ead-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #a0a0a0;
    font-size: 14px;
    margin-bottom: 14px;
}

.ead-feature-item:last-child {
    margin-bottom: 0;
}

.ead-feature-item .feature-icon {
    color: #10B981;
    font-size: 16px;
}

/* ========== RESPONSIVO ========== */
@media (max-width: 1024px) {
    .ead-course-grid {
        grid-template-columns: 1fr 350px;
        gap: 35px;
    }
    
    .ead-course-main h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 900px) {
    .ead-course-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .ead-course-sidebar {
        position: relative;
        top: 0;
        order: -1;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .ead-course-main h1 {
        font-size: 2rem;
    }
    
    .ead-learning-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .ead-course-wrapper {
        padding: 20px 15px;
    }
    
    .ead-course-main h1 {
        font-size: 1.6rem;
    }
    
    .ead-course-main .course-description {
        font-size: 1rem;
    }
    
    .ead-course-stats {
        gap: 10px;
    }
    
    .ead-stat-badge {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .ead-course-section {
        padding: 20px;
    }
    
    .ead-price-current {
        font-size: 2rem;
    }
    
    .ead-cta-btn {
        padding: 16px 20px;
        font-size: 15px;
    }
    
    .ead-card-body {
        padding: 20px;
    }
    
    .ead-module-header {
        padding: 15px;
    }
    
    .ead-module-title {
        font-size: 14px;
    }
}

/* ========== BOTÃO DE INFO DO NÍVEL ========== */
.ead-level-info-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(160, 32, 240, 0.15) 0%, rgba(160, 32, 240, 0.08) 100%);
    border: 1px solid rgba(160, 32, 240, 0.4);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ead-level-info-btn:hover {
    background: linear-gradient(135deg, rgba(160, 32, 240, 0.25) 0%, rgba(160, 32, 240, 0.15) 100%);
    border-color: rgba(160, 32, 240, 0.6);
    transform: translateY(-2px);
}

.ead-level-info-btn svg {
    color: #A020F0;
    flex-shrink: 0;
}

.ead-level-info-btn span {
    color: #ccc;
    font-size: 13px;
    line-height: 1.4;
}

.ead-level-info-btn strong {
    color: #fff;
}

/* ========== BOTÃO DE MATRÍCULA ========== */
.ead-enroll-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none !important;
}

.ead-enroll-btn svg {
    flex-shrink: 0;
}
