/* Deuxys EAD Design System */
:root {
    --ead-bg-dark: #080d0e;
    --ead-surface: #0e1618;
    --ead-surface-border: rgba(255, 255, 255, 0.08);
    --ead-primary: #00f2fe;
    --ead-primary-hover: #4facfe;
    --ead-accent: #00d2ff;
    --ead-text: #f0f4f5;
    --ead-text-muted: #8e9ea2;
    --ead-success: #10b981;
}

.ead-course-page-wrapper,
.ead-classroom-container {
    color: var(--ead-text);
    font-family: inherit;
    margin: 2rem 0;
}

/* Hero do Curso */
.ead-course-hero {
    background: linear-gradient(135deg, rgba(14, 22, 24, 0.95), rgba(8, 13, 14, 0.98));
    border: 1px solid var(--ead-surface-border);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ead-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.ead-badge-tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(0, 242, 254, 0.12);
    color: var(--ead-primary);
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.ead-hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
}

.ead-hero-desc {
    color: var(--ead-text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.ead-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.ead-meta-chips span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ead-surface-border);
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--ead-text);
}

.ead-action-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.ead-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
}

.ead-price ins {
    text-decoration: none;
    color: var(--ead-primary);
}

.ead-price del {
    color: var(--ead-text-muted);
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

.btn.ead-btn-primary {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    color: #040607 !important;
    padding: 0.9rem 1.8rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.btn.ead-btn-primary:hover {
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.4);
    transform: translateY(-2px);
}

.ead-enrolled-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.ead-enrolled-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Video Wrapper Responsivo */
.ead-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    border: 1px solid var(--ead-surface-border);
}

.ead-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ead-hero-thumb img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--ead-surface-border);
}

.ead-hero-placeholder {
    height: 280px;
    background: #080d0e;
    border: 1px solid var(--ead-surface-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--ead-text-muted);
}

.ead-play-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 242, 254, 0.15);
    color: var(--ead-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Grade do Curso & Layout */
.ead-course-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
}

.ead-card {
    background: var(--ead-surface);
    border: 1px solid var(--ead-surface-border);
    border-radius: 14px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.ead-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.25rem;
}

.ead-grade-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.ead-modules-count {
    color: var(--ead-text-muted);
    font-size: 0.9rem;
}

/* Accordion de Módulos */
.ead-accordion-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--ead-surface-border);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.ead-accordion-title {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    font-size: 1rem;
    color: #fff;
}

.ead-module-badge {
    background: rgba(0, 242, 254, 0.1);
    color: var(--ead-primary);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.ead-accordion-meta {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--ead-text-muted);
}

.ead-lesson-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ead-lesson-row {
    padding: 0.85rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.ead-lesson-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.ead-lesson-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ead-lesson-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--ead-text-muted);
}

.ead-lesson-icon.is-done {
    background: rgba(16, 185, 129, 0.2);
    color: var(--ead-success);
}

.ead-lesson-title-link {
    color: var(--ead-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.ead-lesson-title-link:hover {
    color: var(--ead-primary);
}

.ead-lesson-title-locked {
    color: var(--ead-text-muted);
    font-size: 0.95rem;
}

.ead-lesson-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-free {
    background: rgba(0, 242, 254, 0.15);
    color: var(--ead-primary);
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.badge-lock {
    background: rgba(255, 255, 255, 0.06);
    color: var(--ead-text-muted);
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.ead-lesson-time {
    font-size: 0.8rem;
    color: var(--ead-text-muted);
}

/* Sidebar Vantagens */
.ead-perks-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.ead-perks-list li {
    padding: 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--ead-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.perk-check {
    color: var(--ead-primary);
    font-weight: bold;
}

/* SALA DE AULA (Classroom) */
.ead-classroom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    background: var(--ead-surface);
    border: 1px solid var(--ead-surface-border);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.ead-back-link {
    color: var(--ead-primary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.25rem;
}

.ead-classroom-course-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.ead-user-status {
    color: var(--ead-text-muted);
    font-size: 0.9rem;
}

.ead-classroom-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 2rem;
}

.ead-video-container-card {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid var(--ead-surface-border);
}

.ead-lesson-toolbar {
    background: var(--ead-surface);
    border: 1px solid var(--ead-surface-border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ead-lesson-title-area h1 {
    font-size: 1.5rem;
    margin: 0 0 0.25rem 0;
    color: #fff;
}

.ead-lesson-sub {
    color: var(--ead-text-muted);
    font-size: 0.9rem;
}

.ead-lesson-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn.ead-btn-toggle-complete {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid var(--ead-surface-border);
    padding: 0.65rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn.ead-btn-toggle-complete.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.4);
}

.ead-btn-outline {
    background: transparent;
    border: 1px solid var(--ead-surface-border);
    color: var(--ead-text);
    padding: 0.65rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.88rem;
    transition: border-color 0.2s;
}

.ead-btn-outline:hover {
    border-color: var(--ead-primary);
    color: var(--ead-primary);
}

/* Playlist Lateral */
.ead-playlist-card {
    padding: 1.5rem;
}

.ead-playlist-mod-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ead-primary);
    font-weight: 700;
    margin: 1rem 0 0.5rem 0;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ead-playlist-lessons {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ead-playlist-item {
    border-radius: 6px;
    margin-bottom: 4px;
}

.ead-playlist-item.is-active {
    background: rgba(0, 242, 254, 0.12);
    border-left: 3px solid var(--ead-primary);
}

.ead-playlist-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    color: var(--ead-text);
    text-decoration: none;
    font-size: 0.88rem;
}

.ead-playlist-item.is-active .ead-playlist-link {
    color: #fff;
    font-weight: 600;
}

.ead-pl-icon {
    font-size: 0.75rem;
    color: var(--ead-text-muted);
}

.ead-pl-icon.done {
    color: var(--ead-success);
}

.ead-pl-dur {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--ead-text-muted);
}

/* Catálogo de Cursos */
.ead-courses-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.ead-course-card {
    background: var(--ead-surface);
    border: 1px solid var(--ead-surface-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, border-color 0.25s;
}

.ead-course-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 242, 254, 0.35);
}

.ead-card-thumb {
    position: relative;
    height: 180px;
    background: #060a0b;
}

.ead-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ead-thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0e1618, #050809);
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--ead-primary);
    font-size: 1.1rem;
}

.ead-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.ead-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ead-card-course-title {
    font-size: 1.2rem;
    margin: 0 0 0.75rem 0;
}

.ead-card-course-title a {
    color: #fff;
    text-decoration: none;
}

.ead-card-course-excerpt {
    color: var(--ead-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.ead-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.ead-price-tag {
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
}

.btn.ead-btn-card {
    background: rgba(0, 242, 254, 0.1);
    color: var(--ead-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn.ead-btn-card:hover {
    background: var(--ead-primary);
    color: #040607;
}

/* Responsividade */
@media (max-width: 991px) {
    .ead-hero-grid,
    .ead-course-content-grid,
    .ead-classroom-grid {
        grid-template-columns: 1fr;
    }
}
