/* ===================================
   VITRINE DE CURSOS - FRONTEND
   Paleta: Roxo Vibrante + Dark Mode
   =================================== */

/* Grid de Cursos */
.ead-courses-grid {
    display: grid;
    gap: 30px;
    margin: 40px 0;
    padding: 0;
}

/* ===================================
   FILTROS DE CATEGORIAS - VITRINE
   =================================== */

.ead-courses-with-filters {
    width: 100%;
    margin: 40px 0;
}

/* Layout Sidebar (2 colunas) */
.ead-filter-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* Sidebar de Filtros */
.ead-filter-sidebar {
    position: sticky;
    top: 100px;
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid rgba(160, 32, 240, 0.3);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.ead-filter-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(160, 32, 240, 0.3);
}

.ead-category-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Botões de Filtro */
.ead-filter-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.ead-filter-btn:hover {
    background: rgba(160, 32, 240, 0.15);
    border-color: rgba(160, 32, 240, 0.5);
    color: #ffffff;
    transform: translateX(5px);
}

.ead-filter-btn.active {
    background: linear-gradient(135deg, rgba(160, 32, 240, 0.3) 0%, rgba(139, 0, 255, 0.3) 100%);
    border-color: #A020F0;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(160, 32, 240, 0.4);
}

.ead-filter-btn .filter-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.ead-filter-btn .filter-text {
    flex: 1;
}

/* Layout Top (filtros no topo) */
.ead-filter-top {
    margin-bottom: 30px;
}

.ead-filter-top .ead-category-filters {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
}

.ead-filter-top .ead-filter-btn {
    width: auto;
    padding: 12px 24px;
}

.ead-filter-top .ead-filter-title {
    margin-bottom: 15px;
}

/* Badge de Categoria no Card */
.ead-category-badge {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #A020F0 0%, #8B00FF 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* Animações de Filtro */
.ead-netflix-card {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1);
}

.ead-netflix-card.hidden {
    opacity: 0 !important;
    transform: scale(0.8) !important;
    pointer-events: none !important;
}

/* Mensagem de "sem resultados" */
.ead-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #b0b0b0;
    font-size: 16px;
    background: rgba(26, 26, 26, 0.5);
    border: 2px dashed rgba(160, 32, 240, 0.3);
    border-radius: 12px;
    margin: 20px 0;
}

/* Loading State */
.ead-courses-grid.filtering {
    opacity: 0.5;
    pointer-events: none;
}

/* Contador de Resultados */
.ead-filter-count {
    text-align: center;
    padding: 15px;
    color: #b0b0b0;
    font-size: 14px;
    margin-bottom: 20px;
    background: rgba(26, 26, 26, 0.5);
    border-radius: 8px;
}

/* ===================================
   CARDS NETFLIX PREMIUM (FORMATO RETRATO)
   =================================== */

.ead-netflix-card {
    position: relative;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    z-index: 1;
}

/* Card no hover fica por cima de todos os outros */
.ead-netflix-card:hover {
    z-index: 9999;
}

/* Thumbnail - Imagem em formato retrato (sempre visível) */
.ead-netflix-thumbnail {
    display: block;
    position: relative;
    width: 100%;
    padding-bottom: 150%; /* Aspect ratio 2:3 (retrato) */
    overflow: hidden;
    border-radius: 6px;
    background: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ead-netflix-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Card - Aparece e expande no hover */
.ead-netflix-hover-card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #181818;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transform-origin: center center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Hover State - Card expande e mostra informações */
.ead-netflix-card:hover .ead-netflix-thumbnail {
    opacity: 0;
    transform: scale(0.95);
}

.ead-netflix-card:hover .ead-netflix-hover-card {
    opacity: 1;
    visibility: visible;
    transform: scale(1.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9),
                0 0 0 2px rgba(160, 32, 240, 0.4),
                0 0 40px rgba(160, 32, 240, 0.3);
}

/* Imagem do Hover Card */
.ead-hover-image {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 landscape */
    overflow: hidden;
    background: #000;
}

.ead-hover-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ead-hover-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.5) 50%,
        #181818 100%);
}

/* Conteúdo do Hover Card */
.ead-hover-content {
    padding: 20px;
    background: #181818;
}

.ead-hover-content h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Meta Info no Hover */
.ead-hover-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ead-price-tag {
    color: #A020F0;
    font-size: 20px;
    font-weight: 700;
}

.ead-duration-tag {
    color: #909090;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

/* Descrição no Hover */
.ead-hover-description {
    color: #b0b0b0;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Botão Ver Curso no Hover */
.ead-hover-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: linear-gradient(135deg, #A020F0 0%, #8B00FF 100%);
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.ead-hover-btn:hover {
    background: linear-gradient(135deg, #B030FF 0%, #9B10FF 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(160, 32, 240, 0.4);
}

/* ===================================
   PÁGINA INDIVIDUAL ESTILO NETFLIX
   =================================== */

.ead-single-course {
    background: #000;
    min-height: 100vh;
}

/* Hero Section Cinematográfico Premium */
.ead-course-hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    max-height: 800px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #000;
}

.ead-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    filter: brightness(0.7);
    transform: scale(1.05);
    animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1.15);
    }
}

/* Vídeo Hero Background */
.ead-hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.ead-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.6);
    pointer-events: none;
}

.ead-hero-video-wrapper iframe.ead-hero-video {
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
}

/* Partículas Flutuantes Animadas */
.ead-hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.ead-hero-particles .particle {
    position: absolute;
    background: radial-gradient(circle, rgba(160, 32, 240, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float-particle linear infinite;
}

/* Variações de partículas */
.ead-hero-particles .particle:nth-child(1) { width: 3px; height: 3px; left: 10%; animation-duration: 12s; animation-delay: 0s; }
.ead-hero-particles .particle:nth-child(2) { width: 5px; height: 5px; left: 20%; animation-duration: 15s; animation-delay: 2s; }
.ead-hero-particles .particle:nth-child(3) { width: 2px; height: 2px; left: 30%; animation-duration: 10s; animation-delay: 4s; }
.ead-hero-particles .particle:nth-child(4) { width: 4px; height: 4px; left: 40%; animation-duration: 18s; animation-delay: 1s; }
.ead-hero-particles .particle:nth-child(5) { width: 3px; height: 3px; left: 50%; animation-duration: 14s; animation-delay: 3s; }
.ead-hero-particles .particle:nth-child(6) { width: 6px; height: 6px; left: 60%; animation-duration: 16s; animation-delay: 5s; }
.ead-hero-particles .particle:nth-child(7) { width: 2px; height: 2px; left: 70%; animation-duration: 11s; animation-delay: 2s; }
.ead-hero-particles .particle:nth-child(8) { width: 4px; height: 4px; left: 80%; animation-duration: 13s; animation-delay: 4s; }
.ead-hero-particles .particle:nth-child(9) { width: 3px; height: 3px; left: 90%; animation-duration: 17s; animation-delay: 1s; }
.ead-hero-particles .particle:nth-child(10) { width: 5px; height: 5px; left: 15%; animation-duration: 19s; animation-delay: 6s; }
.ead-hero-particles .particle:nth-child(11) { width: 2px; height: 2px; left: 25%; animation-duration: 12s; animation-delay: 3s; }
.ead-hero-particles .particle:nth-child(12) { width: 4px; height: 4px; left: 35%; animation-duration: 15s; animation-delay: 5s; }
.ead-hero-particles .particle:nth-child(13) { width: 3px; height: 3px; left: 45%; animation-duration: 14s; animation-delay: 2s; }
.ead-hero-particles .particle:nth-child(14) { width: 6px; height: 6px; left: 55%; animation-duration: 20s; animation-delay: 4s; }
.ead-hero-particles .particle:nth-child(15) { width: 2px; height: 2px; left: 75%; animation-duration: 11s; animation-delay: 1s; }

@keyframes float-particle {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) scale(1);
        opacity: 0;
    }
}

.ead-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.5) 30%,
        rgba(0, 0, 0, 0.85) 70%,
        #000 100%);
    background-blend-mode: multiply;
    z-index: 1;
}

/* Gradiente Pulsante de Fundo */
.ead-hero-overlay::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(circle at center,
        rgba(160, 32, 240, 0.15) 0%,
        transparent 50%);
    animation: pulse-gradient 8s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes pulse-gradient {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.6;
    }
}

.ead-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 60px;
    width: 100%;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.ead-hero-title {
    color: #fff;
    font-size: 64px;
    font-weight: 900;
    margin: 0 0 24px 0;
    line-height: 1;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(160, 32, 240, 0.3);
    letter-spacing: -2px;
    max-width: 900px;
}

.ead-hero-description {
    color: #f0f0f0;
    font-size: 22px;
    line-height: 1.6;
    margin: 0 0 40px 0;
    max-width: 750px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    font-weight: 400;
}

/* Meta Information Premium */
.ead-hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.ead-meta-item {
    color: #ffffff;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    padding: 12px 24px;
    border-radius: 30px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
    transition: all 0.3s ease;
}

.ead-meta-item:hover {
    background: rgba(160, 32, 240, 0.2);
    border-color: rgba(160, 32, 240, 0.4);
    transform: translateY(-2px);
}

.ead-meta-item svg {
    opacity: 0.9;
    filter: drop-shadow(0 0 4px rgba(160, 32, 240, 0.5));
}

.ead-meta-price {
    color: #fff;
    font-size: 42px;
    font-weight: 900;
    background: linear-gradient(135deg, #A020F0 0%, #FF00FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 10px 0;
    text-shadow: 0 0 40px rgba(160, 32, 240, 0.6);
    filter: drop-shadow(0 0 20px rgba(160, 32, 240, 0.4));
}

/* Container do Conteúdo */
.ead-course-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    background: #000;
}

/* Módulos do Curso */
.ead-single-course h2 {
    color: #A020F0;
    font-size: 28px;
    font-weight: 700;
    margin: 50px 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(160, 32, 240, 0.3);
}

.ead-modules-list > div {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 2px solid rgba(160, 32, 240, 0.3) !important;
    border-radius: 12px !important;
    margin-bottom: 20px !important;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ead-modules-list > div:hover {
    border-color: #A020F0 !important;
    box-shadow: 0 8px 24px rgba(160, 32, 240, 0.3);
}

.ead-modules-list > div > div:first-child {
    background: linear-gradient(135deg, #A020F0 0%, #8B00FF 100%) !important;
    color: #ffffff !important;
    padding: 18px 25px !important;
    font-weight: 700 !important;
    font-size: 18px !important;
}

.ead-modules-list ul {
    list-style: none !important;
    padding: 20px 25px !important;
    margin: 0 !important;
}

.ead-modules-list li {
    color: #e0e0e0 !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(160, 32, 240, 0.2) !important;
    font-size: 15px;
    transition: all 0.2s ease;
}

.ead-modules-list li:last-child {
    border-bottom: none !important;
}

.ead-modules-list li:hover {
    color: #A020F0 !important;
    padding-left: 10px !important;
}

/* CTA Button Premium Estilo Streaming */
.ead-cta-section {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(0, 0, 0, 0.92) 25%, 
        #000 100%);
    padding: 40px;
    text-align: center;
    z-index: 100;
    border-top: 1px solid rgba(160, 32, 240, 0.15);
    backdrop-filter: blur(20px);
}

.ead-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: linear-gradient(135deg, #A020F0 0%, #8B00FF 100%);
    color: #fff;
    padding: 24px 60px;
    border-radius: 60px;
    font-size: 19px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 
        0 12px 40px rgba(160, 32, 240, 0.5),
        0 0 80px rgba(160, 32, 240, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.ead-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.5s ease;
}

.ead-cta-button:hover::before {
    left: 100%;
}

.ead-cta-button:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 
        0 20px 60px rgba(160, 32, 240, 0.7),
        0 0 100px rgba(160, 32, 240, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #B030FF 0%, #9B10FF 100%);
}

.ead-cta-button:active {
    transform: translateY(-2px) scale(1.01);
}

.ead-cta-icon {
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ead-cta-button:hover .ead-cta-icon {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1) rotate(5deg);
}

.ead-cta-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.ead-cta-text strong {
    font-size: 22px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ead-cta-text small {
    font-size: 15px;
    opacity: 0.95;
    font-weight: 600;
}

/* Responsividade */
@media (max-width: 768px) {
    /* Filtros Mobile */
    .ead-filter-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ead-filter-sidebar {
        position: static;
        padding: 20px;
    }
    
    .ead-filter-title {
        font-size: 18px;
    }
    
    .ead-filter-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .ead-category-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    /* Layout Top em Mobile */
    .ead-filter-top .ead-category-filters {
        flex-direction: column;
    }
    
    .ead-filter-top .ead-filter-btn {
        width: 100%;
    }
    
    .ead-courses-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    
    /* Cards Netflix Mobile */
    .ead-netflix-card:hover .ead-netflix-hover-card {
        transform: scale(1.05);
    }
    
    .ead-hover-content {
        padding: 15px;
    }
    
    .ead-hover-content h3 {
        font-size: 16px;
    }
    
    .ead-price-tag {
        font-size: 18px;
    }
    
    .ead-duration-tag {
        font-size: 11px;
    }
    
    .ead-hover-description {
        font-size: 12px;
    }
    
    .ead-hover-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* Página Individual Mobile */
    .ead-course-hero {
        height: 60vh;
        min-height: 500px;
    }
    
    .ead-hero-title {
        font-size: 32px;
        letter-spacing: -1px;
    }
    
    .ead-hero-description {
        font-size: 16px;
    }
    
    .ead-hero-content {
        padding: 40px 20px;
    }
    
    /* Vídeo Mobile Otimizado */
    .ead-hero-video-wrapper {
        display: block;
    }
    
    .ead-hero-video {
        filter: brightness(0.5);
    }
    
    /* Reduzir partículas no mobile */
    .ead-hero-particles .particle:nth-child(n+8) {
        display: none;
    }
    
    .ead-course-container {
        padding: 40px 20px;
    }
    
    .ead-hero-meta {
        gap: 15px;
    }
    
    .ead-meta-price {
        font-size: 24px;
    }
    
    .ead-cta-section {
        padding: 20px;
    }
    
    .ead-cta-button {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    .ead-cta-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .ead-courses-grid[style*="repeat(4"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .ead-courses-grid[style*="repeat(3"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .ead-hero-title {
        font-size: 42px;
    }
    
    .ead-netflix-card:hover .ead-netflix-hover-card {
        transform: scale(1.1);
    }
}

/* Mensagem de "Nenhum Curso" */
.ead-courses-grid + p,
.ead-single-course > p:first-child {
    color: #b0b0b0;
    font-size: 16px;
    text-align: center;
    padding: 40px;
    background: rgba(160, 32, 240, 0.05);
    border: 1px solid rgba(160, 32, 240, 0.2);
    border-radius: 8px;
}

/* Compatibilidade com Elementor */
.elementor-widget-text-editor .ead-courses-grid,
.elementor-widget-shortcode .ead-courses-grid {
    margin: 0 !important;
}

.elementor-widget-text-editor .ead-single-course,
.elementor-widget-shortcode .ead-single-course {
    padding: 0 !important;
}

/* ===================================
   SEÇÕES DA PÁGINA INDIVIDUAL
   =================================== */

.ead-course-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 2px solid rgba(160, 32, 240, 0.3);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.ead-course-section h2 {
    color: #A020F0;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(160, 32, 240, 0.3);
}

.ead-course-section p {
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

.ead-learning-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ead-learning-list li {
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1.8;
    padding: 12px 0 12px 30px;
    border-bottom: 1px solid rgba(160, 32, 240, 0.2);
    position: relative;
}

.ead-learning-list li:last-child {
    border-bottom: none;
}

.ead-learning-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #A020F0;
    font-weight: bold;
    font-size: 18px;
}

/* ===================================
   MODAL DE CHECKOUT
   =================================== */

.ead-checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ead-checkout-modal.active {
    opacity: 1;
    visibility: visible;
}

.ead-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.ead-modal-content {
    position: relative;
    width: 95%;
    max-width: 900px;
    height: 90vh;
    margin: 5vh auto;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 2px solid #A020F0;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(160, 32, 240, 0.4);
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.ead-checkout-modal.active .ead-modal-content {
    transform: scale(1);
}

.ead-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(220, 50, 50, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ead-modal-close:hover {
    background: #dc3232;
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(220, 50, 50, 0.6);
}

.ead-modal-close svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
}

.ead-modal-header {
    padding: 30px 30px 20px 30px;
    border-bottom: 2px solid rgba(160, 32, 240, 0.3);
}

.ead-modal-header h2 {
    color: #A020F0;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.ead-modal-header p {
    color: #b0b0b0;
    font-size: 14px;
    margin: 0;
}

.ead-modal-body {
    flex: 1;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.ead-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}

/* Loading Overlay */
.ead-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ead-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(160, 32, 240, 0.3);
    border-top-color: #A020F0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ead-loading-overlay p {
    color: #fff;
    font-size: 18px;
    margin-top: 20px;
}

/* Mensagem de Sucesso */
.ead-success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 3px solid #A020F0;
    border-radius: 16px;
    padding: 50px;
    text-align: center;
    z-index: 1000000;
    box-shadow: 0 20px 60px rgba(160, 32, 240, 0.5);
    opacity: 0;
    transition: all 0.3s ease;
}

.ead-success-message.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.ead-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #A020F0 0%, #8B00FF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #fff;
    margin: 0 auto 20px;
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.ead-success-message h2 {
    color: #A020F0;
    font-size: 28px;
    margin: 0 0 15px 0;
}

.ead-success-message p {
    color: #e0e0e0;
    font-size: 16px;
    margin: 0 0 25px 0;
}

.ead-success-message .button {
    background: linear-gradient(135deg, #A020F0 0%, #8B00FF 100%);
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ead-success-message .button:hover {
    background: linear-gradient(135deg, #B030FF 0%, #9B10FF 100%);
    box-shadow: 0 0 20px rgba(160, 32, 240, 0.6);
}

/* Prevenir scroll quando modal está aberto */
body.ead-modal-open {
    overflow: hidden;
}

/* Responsividade do Modal */
@media (max-width: 768px) {
    .ead-modal-content {
        width: 100%;
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .ead-modal-header {
        padding: 20px;
    }
    
    .ead-modal-header h2 {
        font-size: 22px;
    }
    
    .ead-success-message {
        width: 90%;
        padding: 30px;
    }
    
    /* Modal de Checkout Moderno - Mobile */
    .ead-modal-content {
        width: 95% !important;
        max-width: 95% !important;
        padding: 20px !important;
    }
    
    .ead-checkout-form .form-group {
        margin-bottom: 16px;
    }
    
    .modal-icon {
        font-size: 48px !important;
    }
}

/* ================================================
   MODAL DE CHECKOUT MODERNO
   ================================================ */

.ead-checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ead-checkout-modal.active {
    opacity: 1;
    visibility: visible;
}

.ead-checkout-modal.active .ead-modal-content {
    transform: scale(1);
}

.ead-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.ead-modal-content {
    position: relative;
    background: #1A1A1A;
    border: 2px solid rgba(160, 32, 240, 0.3);
    border-radius: 24px;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.ead-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.ead-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: rotate(90deg);
}

.ead-modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-icon {
    font-size: 64px;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 12px rgba(160, 32, 240, 0.5));
}

.ead-modal-header h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 12px 0;
}

.ead-modal-header p {
    color: #B0B0B0;
    font-size: 15px;
    margin: 0;
}

/* Formulário */
.ead-checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label svg {
    color: #A020F0;
}

.form-group input {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #A020F0;
    background: rgba(160, 32, 240, 0.1);
    box-shadow: 0 0 0 4px rgba(160, 32, 240, 0.1);
}

.form-group input::placeholder {
    color: #666;
}

.form-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    color: #93C5FD;
    font-size: 13px;
}

.form-notice svg {
    flex-shrink: 0;
    color: #3B82F6;
}

.ead-submit-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, #A020F0 0%, #8B00FF 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ead-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(160, 32, 240, 0.4);
}

.ead-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.ead-submit-btn .spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Tela de Sucesso */
.ead-checkout-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #fff;
    margin: 0 auto 24px;
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.ead-checkout-success h3 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.ead-checkout-success p {
    color: #B0B0B0;
    font-size: 16px;
    margin: 0 0 24px 0;
}

.ead-btn-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #A020F0 0%, #8B00FF 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s;
}

.ead-btn-dashboard:hover {
    transform: translateY(-2px);
}

/* Footer do Modal */
.ead-modal-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #666;
    font-size: 13px;
}

.ead-modal-footer svg {
    color: #10B981;
}

/* Animação de loading/spinner */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   RESPONSIVIDADE - MOBILE & TABLET
   =================================== */

/* Tablet (até 1024px) */
@media (max-width: 1024px) {
    .ead-filter-layout {
        grid-template-columns: 220px 1fr;
        gap: 20px;
    }
    
    .ead-courses-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
    
    .ead-hero-title {
        font-size: 48px;
    }
    
    .ead-hero-description {
        font-size: 18px;
    }
    
    .ead-hero-content {
        padding: 60px 40px;
    }
}

/* Tablet pequeno (até 900px) */
@media (max-width: 900px) {
    .ead-filter-layout {
        grid-template-columns: 1fr;
    }
    
    .ead-filter-sidebar {
        position: relative;
        top: 0;
    }
    
    .ead-category-filters {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .ead-filter-btn {
        width: auto;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .ead-courses-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    
    /* Esconder hover card em tablet - evita duplicidade */
    .ead-netflix-hover-card {
        display: none !important;
    }
    
    /* Thumbnail clicável e sem efeito de esconder */
    .ead-netflix-card:hover .ead-netflix-thumbnail {
        opacity: 1;
        transform: none;
    }
    
    .ead-hero-title {
        font-size: 36px;
    }
    
    .ead-course-hero {
        height: 60vh;
        min-height: 450px;
    }
}

/* Mobile (até 600px) */
@media (max-width: 600px) {
    .ead-courses-with-filters {
        margin: 20px 0;
    }
    
    .ead-filter-sidebar {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .ead-filter-title {
        font-size: 16px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    
    .ead-filter-btn {
        padding: 8px 12px;
        font-size: 12px;
        gap: 6px;
    }
    
    .ead-filter-btn .filter-icon {
        font-size: 14px;
    }
    
    .ead-courses-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    /* Cards menores no mobile */
    .ead-netflix-card {
        min-width: 0;
    }
    
    .ead-netflix-thumbnail {
        border-radius: 8px;
    }
    
    /* ESCONDER hover card em mobile - evita duplicidade */
    .ead-netflix-hover-card {
        display: none !important;
    }
    
    /* Thumbnail sempre visível no mobile */
    .ead-netflix-card:hover .ead-netflix-thumbnail {
        opacity: 1;
        transform: none;
    }
    
    /* Hero responsivo */
    .ead-course-hero {
        height: auto;
        min-height: 400px;
    }
    
    .ead-hero-content {
        padding: 40px 20px;
    }
    
    .ead-hero-title {
        font-size: 28px;
        letter-spacing: -1px;
    }
    
    .ead-hero-description {
        font-size: 15px;
        margin-bottom: 24px;
    }
    
    .ead-hero-meta {
        gap: 10px;
    }
    
    .ead-meta-item {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .ead-hover-content h3 {
        font-size: 14px;
    }
    
    .ead-price-tag {
        font-size: 16px;
    }
    
    .ead-category-badge {
        font-size: 9px;
        padding: 4px 8px;
    }
}

/* Mobile pequeno (até 400px) */
@media (max-width: 400px) {
    .ead-courses-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .ead-filter-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .ead-hero-title {
        font-size: 24px;
    }
}
