/* static/css/style.css - VERSÃO FINAL COMPLETA (Com Modal) */

/* --- Variáveis de Cor --- */
:root {
    --color-background-dark: #141414;
    --color-text-light: #E5E5E5;
    --color-red-primary: #E50914;
    --color-card-dark: #181818;
    --color-border-grey: #333333;
    --color-focus-red: #f40612;
    --color-green-success: #46d369;
    --overlay-color: rgba(0, 0, 0, 0.75);
}

/* --- Reset e Global --- */
* { margin: 0; padding: 0; box-sizing: border-box; outline: none; }

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 70px;
}

a { text-decoration: none; color: var(--color-text-light); transition: 0.2s; }
a:hover { color: var(--color-red-primary); }
ul { list-style: none; }

/* --- BOTÕES --- */
.btn-primary {
    background-color: var(--color-red-primary); color: #fff;
    padding: 10px 20px; border: none; border-radius: 4px;
    cursor: pointer; font-size: 1rem; font-weight: bold;
    transition: background 0.3s; display: inline-block; text-align: center;
}
.btn-primary:hover { background-color: var(--color-focus-red); }

.btn-secondary {
    background-color: rgba(109, 109, 110, 0.7); color: #fff;
    padding: 10px 20px; border: none; border-radius: 4px;
    cursor: pointer; font-size: 1rem; font-weight: 600;
    transition: background 0.3s;
}
.btn-secondary:hover { background-color: rgba(109, 109, 110, 0.4); }

/* --- HEADER / NAVBAR --- */
.main-header {
    background-color: var(--color-background-dark); 
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 4%; height: 60px;
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.logo { color: var(--color-red-primary); font-size: 1.8rem; font-weight: bold; margin-right: 25px; }

.navbar-left, .main-nav ul, .navbar-right { display: flex; align-items: center; gap: 20px; }
.main-nav a { font-size: 0.9rem; color: #e5e5e5; }
.main-nav a:hover { color: #b3b3b3; }

/* Menu Perfil */
.profile-dropdown-container { position: relative; cursor: pointer; }
.profile-avatar img {
    width: 35px;  /* Aumentei um pouquinho para ficar melhor */
    height: 35px;
    border-radius: 50%; /* ESSA É A MÁGICA QUE DEIXA REDONDO */
    object-fit: cover;
    border: 2px solid var(--color-background-dark); /* Uma borda fina para destacar do fundo */
}
.profile-dropdown-menu {
    display: none; position: absolute; top: 40px; right: 0;
    background-color: rgba(0,0,0,0.95); border: 1px solid #333;
    width: 160px; padding: 10px 0; border-radius: 4px;
}
.profile-dropdown-menu.show { display: block; }
.profile-dropdown-menu a { padding: 10px 15px; font-size: 0.85rem; display: block; }
.profile-dropdown-menu a:hover { background: #333; }

/* --- HERO SECTION --- */
.hero-section {
    position: relative; height: 80vh; 
    background-size: cover; background-position: center;
    display: flex; align-items: center; padding-left: 4%;
    margin-top: -70px; margin-bottom: 20px;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, var(--color-background-dark) 0%, transparent 60%),
                linear-gradient(to right, rgba(0,0,0,0.8) 0%, transparent 60%);
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 600px; margin-top: 60px; }
.hero-title { font-size: 3.5rem; font-weight: 800; margin-bottom: 15px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero-description { font-size: 1.2rem; margin-bottom: 20px; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
.hero-actions { display: flex; gap: 10px; }
.btn-hero { padding: 0.8rem 1.8rem; display: flex; align-items: center; gap: 8px; }

/* --- CARROSSEL HOME --- */
.courses-row-container { padding: 20px 4%; margin-bottom: 30px; position: relative; z-index: 5; }
.courses-row-container h2 { font-size: 1.4rem; color: #e5e5e5; margin-bottom: 10px; font-weight: 600; }

.courses-row {
    display: flex; gap: 10px; overflow-x: auto; padding: 10px 0 30px 0;
    scrollbar-width: none;
}
.courses-row::-webkit-scrollbar { display: none; }

/* Card Padrão */
.course-card-index, .course-card {
    position: relative; border-radius: 4px; cursor: pointer;
    transition: transform 0.3s ease, z-index 0.3s;
    overflow: hidden; text-decoration: none; display: block;
}
.courses-row .course-card-index { flex: 0 0 250px; min-width: 250px; } /* Home */

.course-thumbnail {
    width: 100%; height: 141px; object-fit: cover; border-radius: 4px; display: block;
}
.course-card-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.course-card-index:hover .course-card-overlay { opacity: 1; }
.course-card-index:hover { transform: scale(1.1); z-index: 99; box-shadow: 0 0 15px rgba(0,0,0,0.7); }

/* --- CATÁLOGO & MENTORIA (Grid) --- */
.catalog-container { max-width: 1400px; margin: 0 auto; padding: 40px 5% 50px; width: 100%; }
.page-title {
    font-size: 2.2rem; margin-bottom: 25px; color: white;
    border-left: 5px solid var(--color-red-primary); padding-left: 15px;
}

.search-bar-container { margin-bottom: 40px; width: 100%; max-width: 600px; }
.search-form { display: flex; gap: 10px; background: #000; padding: 5px; border: 1px solid #333; border-radius: 4px; }
.search-form input[type="text"] { flex-grow: 1; background: transparent; border: none; color: white; padding: 12px 15px; font-size: 1rem; outline: none; }
.search-form button { background: var(--color-red-primary); color: white; border: none; padding: 0 25px; font-weight: bold; border-radius: 2px; cursor: pointer; }
.search-form button:hover { background: var(--color-focus-red); }

.catalog-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; width: 100%;
}
.catalog-grid .course-card-index {
    width: 100% !important; min-width: 0 !important; margin: 0 !important; flex: none !important; background: #181818;
}
.catalog-grid .course-card-index img { height: 130px; object-fit: cover; }
.catalog-grid .course-card-overlay { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,0.95), transparent); }
.empty-state { text-align: center; padding: 50px; background: var(--color-card-dark); border-radius: 8px; margin-top: 30px; }

/* --- MODAL (Correção do Pop-up) --- */
.modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.85); backdrop-filter: blur(5px);
}
.modal-content {
    background-color: var(--color-card-dark); margin: 5% auto; padding: 0; border-radius: 8px;
    width: 90%; max-width: 800px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.8); border: 1px solid #333; animation: modalFadeIn 0.3s;
}
@keyframes modalFadeIn { from {opacity: 0; transform: translateY(-20px);} to {opacity: 1; transform: translateY(0);} }
.close-btn {
    position: absolute; top: 15px; right: 20px; color: white; font-size: 30px; font-weight: bold; cursor: pointer; z-index: 10;
    background: rgba(0,0,0,0.5); width: 40px; height: 40px; text-align: center; line-height: 40px; border-radius: 50%;
}
.close-btn:hover { background: var(--color-red-primary); }
.modal-body { padding: 0; }
.modal-featured-image {
    width: 100%; height: 350px; object-fit: cover; border-top-left-radius: 8px; border-top-right-radius: 8px;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}
.modal-header { position: absolute; top: 250px; left: 30px; width: 90%; }
#modal-title { font-size: 2.5rem; font-weight: 800; text-shadow: 2px 2px 4px rgba(0,0,0,0.9); margin: 0; }
#modal-description { padding: 20px 30px; font-size: 1.1rem; color: #ccc; line-height: 1.6; }
.modal-trailer { padding: 0 30px; margin-bottom: 20px; }
.modal-trailer iframe { width: 100%; height: 350px; border-radius: 4px; }
.modal-footer {
    padding: 20px 30px; border-top: 1px solid #333; display: flex; justify-content: space-between; align-items: center;
    background-color: #1a1a1a; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px;
}
#modal-price { font-size: 1.8rem; font-weight: bold; color: var(--color-green-success); margin: 0; }

/* --- ESTILOS DO PERFIL (ATUALIZADO) --- */

.profile-page-wrapper {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Header do Perfil */
.profile-header-card {
    background-color: #181818;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Avatar Wrapper */
.avatar-wrapper { position: relative; }
.profile-image-large {
    width: 140px; height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-red-primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.btn-upload-trigger {
    position: absolute; bottom: 5px; right: 5px;
    background: var(--color-red-primary); border: none;
    color: white; width: 40px; height: 40px; border-radius: 50%;
    cursor: pointer; font-size: 1.1rem;
    transition: transform 0.2s;
    display: flex; justify-content: center; align-items: center;
}
.btn-upload-trigger:hover { transform: scale(1.1); background: #ff0a16; }

/* Info do Usuário */
.profile-info-block h1 { font-size: 2.5rem; margin-bottom: 5px; color: white; }
.profile-info-block .user-email { color: #aaa; margin-bottom: 20px; font-size: 1rem; }

/* Estatísticas */
.profile-stats { display: flex; gap: 30px; margin-bottom: 25px; }
.stat-item { display: flex; flex-direction: column; }
.stat-value { font-size: 1.5rem; font-weight: bold; color: white; }
.stat-label { font-size: 0.8rem; color: #777; text-transform: uppercase; letter-spacing: 1px; }

/* Área de Upload */
.upload-form-container {
    background: #222; border: 1px solid #333;
    padding: 30px; border-radius: 8px; margin-bottom: 30px;
    display: none; animation: fadeIn 0.3s;
}
@keyframes fadeIn { from{opacity:0; transform: translateY(-10px);} to{opacity:1; transform: translateY(0);} }
.upload-area {
    border: 2px dashed #444; padding: 30px; text-align: center;
    border-radius: 4px; margin-bottom: 20px;
}

/* Grid de Configurações */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}
.settings-column h3 {
    font-size: 1.2rem; color: #e5e5e5; margin-bottom: 20px;
    border-bottom: 1px solid #333; padding-bottom: 10px;
}

.setting-item {
    background: #181818; padding: 20px; border-radius: 6px;
    display: flex; align-items: center; margin-bottom: 15px;
    transition: background 0.2s, transform 0.2s;
    border: 1px solid transparent;
}
.setting-item:hover {
    background: #222; border-color: #444; transform: translateX(5px);
}

.setting-icon {
    width: 40px; height: 40px; background: rgba(255,255,255,0.1);
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    margin-right: 15px; color: var(--color-red-primary);
}
.setting-content { flex-grow: 1; }
.setting-content a {
    display: block; font-weight: bold; color: white; font-size: 1rem;
}
.setting-content span { font-size: 0.85rem; color: #888; }
.setting-item .arrow { color: #444; }

/* Responsividade */
@media (max-width: 768px) {
    .profile-header-card { flex-direction: column; text-align: center; }
    .profile-stats { justify-content: center; }
    .settings-grid { grid-template-columns: 1fr; }
}

/* --- AUTH --- */
.auth-container { max-width: 450px; margin: 80px auto; padding: 60px; background-color: rgba(0, 0, 0, 0.75); border-radius: 4px; }
.auth-container h2 { font-size: 2rem; margin-bottom: 30px; }
.auth-form input, .auth-form select { width: 100%; padding: 15px; margin-bottom: 20px; border-radius: 4px; border: none; background: #333; color: white; font-size: 1rem; }
.auth-links { display: flex; justify-content: space-between; font-size: 0.9rem; color: #888; margin-top: 10px; }
.auth-links a { color: white; } 

/* --- PLAYER --- */
.player-layout { display: flex; flex-wrap: wrap; height: calc(100vh - 60px); }
.video-area { flex: 3; background: #000; display: flex; align-items: center; justify-content: center; position: relative; }
.video-area video { width: 100%; max-height: 100%; }
.sidebar-playlist {
    flex: 1; min-width: 320px; background: #1a1a1a; border-left: 1px solid #333;
    display: flex; flex-direction: column; overflow-y: auto; height: 100%;
}
.sidebar-header { padding: 20px; border-bottom: 1px solid #333; }
.lesson-item {
    padding: 15px 20px; border-bottom: 1px solid #252525; cursor: pointer; display: flex; align-items: center; color: #aaa; transition: 0.2s;
}
.lesson-item:hover { background: #2a2a2a; color: white; }
.lesson-item.active { background: #333; color: white; border-left: 4px solid var(--color-red-primary); }
.status-icon { width: 25px; text-align: center; margin-right: 10px; }
.action-bar { padding: 15px; background: #141414; margin-top: auto; }

/* --- UTIL --- */
.flashes-container { position: fixed; top: 70px; right: 20px; z-index: 1100; width: 300px; }
.alert { padding: 15px; margin-bottom: 10px; border-radius: 4px; text-align: center; color: white; font-weight: bold; box-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.alert-success { background: var(--color-green-success); color: #000; }
.alert-danger { background: var(--color-red-primary); }
.alert-warning { background: #ff9800; color: #000; }
.alert-info { background: #2196F3; }

@media (max-width: 768px) {
    .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .hero-title { font-size: 2.2rem; }
    .hero-section { height: 60vh; }
    .auth-container { margin: 40px 20px; padding: 30px; width: auto; }
    .player-layout { flex-direction: column; height: auto; }
    .video-area { height: 300px; flex: none; }
    .sidebar-playlist { height: auto; max-height: 400px; }
}

/* --- CHECKOUT PROFISSIONAL (Estilo Hotmart/Netflix) --- */

.checkout-page-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.checkout-header-title {
    text-align: center;
    margin-bottom: 40px;
}
.checkout-header-title h1 { font-size: 2rem; margin-bottom: 10px; }
.checkout-header-title p { color: #999; }

/* Grid Layout (2 Colunas) */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Esquerda maior, Direita menor */
    gap: 30px;
}

/* Card da Esquerda (Detalhes) */
.order-details-card {
    background-color: #181818;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
}

.order-image-wrapper img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid #333;
}

.order-info { padding: 30px; }
.order-info h2 { font-size: 1.8rem; margin-bottom: 15px; color: white; }
.order-description { color: #ccc; margin-bottom: 25px; line-height: 1.6; }

.order-features { list-style: none; }
.order-features li {
    margin-bottom: 10px; color: #e5e5e5; font-size: 0.95rem;
}
.order-features li i { color: #46d369; margin-right: 10px; }

/* Card da Direita (Pagamento) */
.payment-summary-card {
    background-color: #181818;
    border-radius: 8px;
    padding: 30px;
    border: 1px solid #333;
    height: fit-content; /* Ajusta altura ao conteúdo */
    position: sticky; top: 90px; /* Fica fixo ao rolar se a tela for grande */
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.payment-summary-card h3 { margin-bottom: 25px; font-size: 1.3rem; border-bottom: 1px solid #333; padding-bottom: 15px; }

.summary-row {
    display: flex; justify-content: space-between; margin-bottom: 15px; color: #ccc;
}
.price-strike { text-decoration: line-through; color: #777; }
.summary-row.highlight { color: white; font-weight: bold; }
.summary-divider { border: 0; border-top: 1px solid #333; margin: 20px 0; }

.total-row {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px;
}
.total-row span { font-size: 1.2rem; font-weight: bold; }
.total-value { font-size: 2rem; color: #46d369; }

.btn-checkout-large {
    width: 100%; padding: 18px; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px;
    background: #E50914; margin-bottom: 20px; transition: transform 0.2s;
}
.btn-checkout-large:hover { background: #ff0f1f; transform: scale(1.02); }

/* Selos de Segurança */
.security-badges { text-align: center; color: #777; font-size: 0.85rem; }
.security-badges i { margin-right: 5px; }
.payment-icons { font-size: 2rem; margin: 15px 0; display: flex; gap: 15px; justify-content: center; color: #ccc;}
.powered-by { font-size: 0.75rem; margin-top: 10px; }

.back-link-simple { color: #777; font-size: 0.9rem; }
.back-link-simple:hover { text-decoration: underline; color: white; }

/* Responsividade Mobile */
@media (max-width: 850px) {
    .checkout-grid { grid-template-columns: 1fr; } /* Vira uma coluna só */
    .order-image-wrapper img { height: 180px; }
    .payment-summary-card { position: static; }
}

/* --- LANDING PAGE DO CURSO (Estilo Cinema) --- */

.course-landing-wrapper {
    position: relative;
    min-height: 85vh; /* Ocupa quase toda a tela */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -70px; /* Compensa o menu fixo */
    padding-top: 70px;
}

/* Background com efeito Blur */
.landing-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    filter: blur(20px) brightness(0.4); /* Desfoca e escurece */
    z-index: 1;
    transform: scale(1.1); /* Evita bordas brancas do blur */
}
.landing-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, #141414 10%, transparent 100%); /* Gradiente inferior */
    z-index: 2;
}

/* Conteúdo Principal */
.landing-content {
    position: relative; z-index: 10; width: 100%; max-width: 1200px;
    padding: 40px 20px;
}

.landing-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Esquerda Texto, Direita Vídeo */
    gap: 50px;
    align-items: center;
}

/* Coluna Esquerda */
.badge-category {
    background: rgba(255,255,255,0.2); padding: 5px 10px;
    border-radius: 4px; font-size: 0.8rem; text-transform: uppercase;
    letter-spacing: 1px; color: #fff; margin-bottom: 15px; display: inline-block;
}

.landing-info h1 {
    font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.landing-description { font-size: 1.2rem; line-height: 1.6; color: #ddd; margin-bottom: 30px; }

.landing-meta {
    display: flex; gap: 20px; margin-bottom: 30px; font-size: 0.9rem; color: #46d369; font-weight: bold;
}
.landing-meta i { margin-right: 5px; }

.landing-actions {
    display: flex; flex-direction: column; align-items: flex-start; gap: 15px;
}

.price-box { margin-bottom: 5px; }
.price-label { font-size: 0.9rem; color: #aaa; display: block; }
.price-value { font-size: 2.5rem; font-weight: bold; color: var(--color-red-primary); }

.btn-lg { padding: 15px 40px; font-size: 1.2rem; border-radius: 4px; text-transform: uppercase; font-weight: bold; }
.btn-buy { background: var(--color-red-primary); width: 100%; max-width: 300px; transition: transform 0.2s; }
.btn-buy:hover { transform: scale(1.05); background: #ff0f1f; }
.btn-play { background: #fff; color: #000; width: 100%; max-width: 300px; }
.btn-play:hover { background: #ddd; }

/* Coluna Direita (Mídia) */
.landing-media { position: relative; }
.media-frame {
    width: 100%; aspect-ratio: 16/9; background: #000;
    border-radius: 8px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    border: 1px solid #333;
    position: relative;
}
.media-frame iframe, .media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Detalhes Abaixo da Dobra */
.course-details-block {
    background: #141414; padding: 60px 20px; position: relative; z-index: 10;
}
.details-container { max-width: 1000px; margin: 0 auto; }
.course-details-block h2 { font-size: 2rem; margin-bottom: 30px; border-left: 5px solid var(--color-red-primary); padding-left: 15px; }
.long-description { font-size: 1.1rem; color: #ccc; line-height: 1.8; margin-bottom: 50px; }

.benefits-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px;
}
.benefit-card {
    background: #1e1e1e; padding: 30px; border-radius: 8px; text-align: center;
    border: 1px solid #333; transition: 0.3s;
}
.benefit-card:hover { transform: translateY(-5px); border-color: var(--color-red-primary); }
.benefit-card i { font-size: 2.5rem; color: var(--color-red-primary); margin-bottom: 20px; }
.benefit-card h4 { font-size: 1.2rem; margin-bottom: 10px; color: white; }
.benefit-card p { font-size: 0.9rem; color: #aaa; }

/* Responsivo */
@media (max-width: 900px) {
    .landing-grid { grid-template-columns: 1fr; gap: 30px; }
    .landing-info { order: 2; text-align: center; }
    .landing-media { order: 1; }
    .landing-info h1 { font-size: 2.5rem; }
    .landing-meta { justify-content: center; }
    .landing-actions { align-items: center; }
    .course-landing-wrapper { height: auto; padding-bottom: 50px; }
}
/* --- LANDING PAGE (course_page.html) --- */
.course-landing-wrapper {
    position: relative; min-height: 85vh; display: flex; align-items: center; justify-content: center;
    overflow: hidden; margin-top: -70px; padding-top: 70px;
}
.landing-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    filter: blur(20px) brightness(0.4); z-index: 1; transform: scale(1.1);
}
.landing-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, #141414 10%, transparent 100%); z-index: 2;
}
.landing-content { position: relative; z-index: 10; width: 100%; max-width: 1200px; padding: 40px 20px; }
.landing-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }

/* Texto */
.badge-category { background: rgba(255,255,255,0.2); padding: 5px 10px; border-radius: 4px; font-size: 0.8rem; text-transform: uppercase; color: #fff; margin-bottom: 15px; display: inline-block; }
.landing-info h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; text-shadow: 2px 2px 10px rgba(0,0,0,0.8); }
.landing-description { font-size: 1.2rem; line-height: 1.6; color: #ddd; margin-bottom: 30px; }
.landing-meta { display: flex; gap: 20px; margin-bottom: 30px; font-size: 0.9rem; color: #46d369; font-weight: bold; }

/* Botões e Preço */
.landing-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.price-box { margin-bottom: 5px; }
.price-value { font-size: 2.5rem; font-weight: bold; color: var(--color-red-primary); }
.btn-lg { padding: 15px 40px; font-size: 1.2rem; border-radius: 4px; text-transform: uppercase; font-weight: bold; }
.btn-buy { background: var(--color-red-primary); width: 100%; max-width: 300px; }
.btn-play { background: #fff; color: #000; width: 100%; max-width: 300px; }

/* Mídia (Trailer/Capa) */
.landing-media { position: relative; }
.media-frame {
    width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 8px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8); border: 1px solid #333; position: relative;
}
.media-frame iframe, .media-frame img { width: 100%; height: 100%; object-fit: cover; }

.course-details-block { background: #141414; padding: 60px 20px; position: relative; z-index: 10; }
.details-container { max-width: 1000px; margin: 0 auto; }

@media (max-width: 900px) {
    .landing-grid { grid-template-columns: 1fr; gap: 30px; }
    .landing-info { order: 2; text-align: center; }
    .landing-media { order: 1; }
    .landing-actions { align-items: center; width: 100%; }
}

/* --- MODAIS DE PERFIL (NETFLIX STYLE) --- */

.profile-modal {
    display: none; /* Escondido por padrão */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8); /* Fundo preto transparente */
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.profile-modal-content {
    background-color: #181818;
    border: 1px solid #333;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 30px rgba(0,0,0,0.8);
}

.profile-modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: white;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin-top: -10px;
}

.close-modal:hover { color: #E50914; }

.modal-input {
    width: 100%;
    padding: 12px;
    margin: 8px 0 20px 0;
    display: inline-block;
    border: 1px solid #333;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #333;
    color: white;
}

.modal-input:focus {
    border-color: #E50914;
    outline: none;
    background-color: #444;
}

.modal-input label {
    color: #bbb;
    font-size: 0.9rem;
}

/* Lista do Histórico */
.history-item {
    display: flex;
    align-items: center;
    background: #222;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid #333;
}
.history-item img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 2px;
}
.history-info h4 {
    margin: 0;
    font-size: 1rem;
    color: white;
}
.history-info .price {
    color: #46d369;
    font-size: 0.9rem;
    font-weight: bold;
    margin-right: 10px;
}
.btn-link {
    color: #E50914;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: bold;
}
/* --- ESTRATÉGIA DE VENDAS (Index) --- */

/* Badge no Hero */
.badge-new {
    background-color: #E50914;
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 10px;
    display: inline-block;
}

/* Barra de Confiança (Trust Bar) */
.trust-bar {
    background-color: #000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px 5%;
    border-bottom: 1px solid #333;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 15; /* Acima do conteúdo */
}

.trust-item {
    color: #999;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-item i {
    color: #46d369; /* Verde Sucesso */
    font-size: 1.2rem;
    margin-right: 10px;
}

/* Seção CTA (Chamada para Ação) para Deslogados */
.cta-section {
    background: linear-gradient(45deg, #E50914, #960008);
    padding: 60px 20px;
    text-align: center;
    border-radius: 8px;
    margin: 40px 4%;
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.cta-content p {
    color: #ffd1d3;
    font-size: 1.2rem;
    margin-bottom: 25px;
}

/* Ajustes Mobile */
@media (max-width: 768px) {
    .trust-bar {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 2 por linha */
        text-align: center;
    }
    .trust-item {
        justify-content: center;
        flex-direction: column;
        gap: 5px;
    }
    .hero-title { font-size: 2rem; }
}
/* --- CORREÇÃO DO BOTÃO CTA (Caixa Vermelha) --- */

/* Quando o botão primário está dentro da seção CTA vermelha */
.cta-section .btn-primary {
    background-color: #ffffff; /* Fundo Branco */
    color: #E50914; /* Texto Vermelho */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* Uma sombra suave para destacar */
    transition: all 0.3s ease;
}

/* Quando passa o mouse nesse botão específico */
.cta-section .btn-primary:hover {
    background-color: #f2f2f2; /* Branco ligeiramente gelo */
    color: #b30009; /* Vermelho mais escuro */
    transform: translateY(-3px) scale(1.02); /* Efeito de "flutuar" ao passar o mouse */
    box-shadow: 0 8px 25px rgba(0,0,0,0.3); /* Sombra aumenta */
}
/* --- ANIMAÇÃO AMBIENTE: BORBOLETAS --- */

/* Container que fica sobre tudo, mas não bloqueia cliques */
.ambient-butterflies-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Garante que dá para clicar nas coisas embaixo */
    z-index: 999; /* Fica acima de quase tudo, exceto modais */
    overflow: hidden;
}

/* Estilo básico da borboleta */
.butterfly-wrap {
    position: absolute;
    opacity: 0; /* Começa invisível */
    color: rgba(229, 9, 20, 0.4); /* Cor vermelha da marca, bem transparente */
    filter: drop-shadow(0 0 10px rgba(229, 9, 20, 0.6)); /* Brilho suave */
}

.butterfly-svg {
    width: 100%;
    height: 100%;
}

/* Animação de movimento principal (Cruzando a tela) */
@keyframes floatAcross {
    0% {
        transform: translate(-10vw, 110vh) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    20% {
        opacity: 0.6; /* Aparece suavemente */
    }
    80% {
        opacity: 0.6;
    }
    100% {
        transform: translate(110vw, -20vh) rotate(45deg) scale(1.2);
        opacity: 0; /* Some no final */
    }
}

/* Animação secundária (O "bater de asas" / flutuação) */
@keyframes flutter {
    0%, 100% { margin-top: 0px; margin-left: 0px; }
    25% { margin-top: -15px; margin-left: 5px; }
    50% { margin-top: 0px; margin-left: 10px; }
    75% { margin-top: 15px; margin-left: 5px; }
}

/* Configuração da Borboleta 1 */
.butterfly-1 {
    width: 40px;
    height: 40px;
    left: 10%;
    /* Inicia a animação de cruzar a tela */
    animation: floatAcross 25s linear infinite;
    /* Adiciona o balanço das asas */
    animation-composition: add;
}
.butterfly-1 .butterfly-svg {
     animation: flutter 3s ease-in-out infinite;
}

/* Configuração da Borboleta 2 (Diferente para parecer natural) */
.butterfly-2 {
    width: 60px;
    height: 60px;
    left: 30%;
    color: rgba(255, 255, 255, 0.3); /* Essa é mais branquinha */
    /* Demora mais para começar e é mais lenta */
    animation: floatAcross 35s linear infinite 5s; /* o 5s no final é o atraso inicial */
}
.butterfly-2 .butterfly-svg {
     animation: flutter 5s ease-in-out infinite alternate;
}
/* --- CORREÇÃO MOBILE (RESPONSIVIDADE) --- */
@media (max-width: 768px) {
    /* Impede rolagem horizontal indesejada */
    body, html {
        overflow-x: hidden;
        width: 100%;
    }

    /* Força imagens, vídeos e iframes a caberem na tela */
    img, video, iframe, embed, object {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Ajusta containers principais */
    .container, .content-wrapper, .checkout-page-wrapper {
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin: 0 !important;
    }

    /* Se tiveres tabelas, isso adiciona barra de rolagem apenas na tabela */
    table {
        display: block;
        overflow-x: auto;
    }
}

/* --- CORREÇÃO BARRA LATERAL (SIDEBAR) --- */
.sidebar, .navbar-side {
    z-index: 9999; /* Garante que fica acima de tudo */
}

/* No celular, a barra lateral não deve empurrar o conteúdo, mas sim flutuar */
@media (max-width: 768px) {
    .sidebar-wrapper {
        position: fixed; /* Fixa na tela */
        height: 100vh; /* Altura total */
        overflow-y: auto; /* Rolagem se o menu for grande */
    }
    
    /* Se o conteúdo estiver a ficar "debaixo" da sidebar fixa */
    .main-panel, .content {
        width: 100% !important;
    }
}