/* Tema YouTube — CeproiRR Academy */
:root {
    --yt-red:           #FF0000;
    --yt-red-dark:      #CC0000;
    --yt-red-hover:     #ff1a1a;
    --yt-darker:        #0f0f0f;
    --yt-dark:          #181818;
    --yt-surface:       #212121;
    --yt-surface-2:     #282828;
    --yt-border:        #3d3d3d;
    --yt-text:          #ffffff;
    --yt-text-2:        #aaaaaa;
    --yt-blue:          #3ea6ff;
    --yt-green:         #2ba640;
}

body {
    background-color: var(--yt-darker);
    color: var(--yt-text);
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== NAVBAR ===== */
.navbar-yt {
    background-color: var(--yt-darker) !important;
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--yt-text) !important;
}
.navbar .text-danger {
    color: var(--yt-red) !important;
}

/* ===== CARDS DE SELEÇÃO DE CURSOS ===== */
.curso-card {
    background-color: var(--yt-surface);
    border: 1px solid var(--yt-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.curso-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.15);
    border-color: var(--yt-red);
}
.curso-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--yt-dark);
}
.curso-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.curso-card:hover .curso-thumb img {
    transform: scale(1.04);
}
.curso-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #212121 0%, #333333 100%);
    position: relative;
}
.curso-icone {
    color: var(--yt-red);
    font-size: 4rem;
    text-shadow: 0 0 30px rgba(255, 0, 0, 0.4);
}
.curso-thumb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 3rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.curso-card:hover .curso-thumb-overlay { opacity: 1; }
.curso-card .card-title {
    color: var(--yt-text);
    font-weight: 600;
    font-size: 1.05rem;
}
.curso-card .card-text {
    color: var(--yt-text-2);
    font-size: 0.85rem;
}
.curso-card .badge.bg-danger {
    background-color: var(--yt-red) !important;
}

/* ===== PLAYER ===== */
#videoContainer {
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.1);
    transition: all 0.3s ease;
}
#videoContainer:hover {
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.2);
}
#player iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== TELA INICIAL ===== */
#initialScreen {
    background: linear-gradient(135deg, #181818 0%, #282828 100%);
    transition: opacity 0.5s ease;
}
.cursor-pointer { cursor: pointer; }

/* ===== BOTÃO PLAY ===== */
.play-button-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.play-button {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--yt-red) 0%, var(--yt-red-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
    transition: all 0.3s ease;
    animation: pulseRed 2s infinite;
}
.play-button i {
    font-size: 3rem;
    color: white;
    margin-left: 5px;
}
.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.7);
}
@keyframes pulseRed {
    0%, 100% { box-shadow: 0 0 30px rgba(255, 0, 0, 0.5); }
    50%      { box-shadow: 0 0 50px rgba(255, 0, 0, 0.8); }
}

/* ===== LOADER ===== */
#videoLoader {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(5px);
}
.progress-bar-yt {
    background: linear-gradient(90deg, var(--yt-red), var(--yt-red-dark)) !important;
}
.spinner-border.text-danger {
    color: var(--yt-red) !important;
}

/* ===== LISTA DE AULAS ===== */
.list-group-item {
    background-color: var(--yt-surface);
    border-color: var(--yt-border);
    color: var(--yt-text);
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 1rem;
}
.list-group-item:hover {
    background-color: var(--yt-surface-2);
    transform: translateX(5px);
}
.list-group-item.aula-assistida {
    background-color: rgba(43, 166, 64, 0.12) !important;
    color: var(--yt-text) !important;
    border-left: 4px solid var(--yt-green);
}
/* ===== ITEM ATIVO (vídeo em execução) — texto branco ===== */
.list-group-item.aula-atual {
    background-color: var(--yt-surface-2) !important;  /* fundo escuro p/ contraste */
    border-left: 4px solid var(--yt-red);
    color: #ffffff !important;
}

/* Garante que TODOS os textos do item ativo fiquem brancos */
.list-group-item.aula-atual .fw-bold,
.list-group-item.aula-atual small,
.list-group-item.aula-atual .text-muted,
.list-group-item.aula-atual i {
    color: #ffffff !important;
}

/* Ícone do item ativo */
.list-group-item.aula-atual .aula-icon {
    background-color: var(--yt-red);
    color: #ffffff;
}

/* ===== ÍCONES DE STATUS ===== */
.aula-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}
.aula-pendente {
    background-color: #333;
    color: #aaa;
}
.aula-assistida-icon {
    background-color: var(--yt-green);
    color: white;
}
.aula-atual-icon {
    background-color: var(--yt-red);
    color: rgb(233, 200, 12);
    animation: pulseRed 1.5s infinite;
}

/* ===== CARDS / MODAL ===== */
.card {
    background-color: var(--yt-surface);
    border-color: var(--yt-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.card-header {
    background-color: var(--yt-dark);
    border-color: var(--yt-border);
}
.card-footer {
    background-color: var(--yt-dark);
    border-color: var(--yt-border);
}
.modal-content.modal-yt {
    background: linear-gradient(135deg, #181818 0%, #282828 100%);
}
.modal-content {
    background-color: var(--yt-surface);
    border: 1px solid var(--yt-border);
}
.modal-header { border-bottom-color: var(--yt-border); }
.modal-footer { border-top-color: var(--yt-border); }

/* ===== BOTÕES AO ESTILO YOUTUBE ===== */
.btn-danger {
    background: linear-gradient(135deg, var(--yt-red), var(--yt-red-dark));
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.4);
    background: linear-gradient(135deg, var(--yt-red-hover), var(--yt-red));
}
.btn-outline-light:hover {
    background-color: var(--yt-red);
    border-color: var(--yt-red);
    color: #fff;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--yt-darker); }
::-webkit-scrollbar-thumb { background: var(--yt-red-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--yt-red); }

/* ===== ANIMAÇÕES ===== */
.fade-in { animation: fadeIn 0.5s ease; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 991px) {
    #videoContainer { margin-bottom: 2rem; }
}
@media (max-width: 576px) {
    .curso-icone { font-size: 3rem; }
    .play-button { width: 64px; height: 64px; }
    .play-button i { font-size: 2.2rem; }
}
/* ===== PLAYER VIA IFRAME (embed direto do YouTube) ===== */
#player {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#player iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #000;
}

/* ===== BOTÃO RESETAR MÓDULO (final de cada módulo) ===== */
.list-group-item-footer-modulo {
    background-color: var(--yt-dark);
    border-top: 1px solid var(--yt-border) !important;
    padding: 10px 12px;
}

.list-group-item-footer-modulo .btn-outline-warning {
    border-color: #f9a825;
    color: #f9a825;
    font-weight: 600;
}

.list-group-item-footer-modulo .btn-outline-warning:hover {
    background-color: #f9a825;
    color: #1e1e1e;
    border-color: #f9a825;
}

/* ===== BOTÃO RESETAR CURSO (barra de título do curso) ===== */
#btnResetarCurso {
    border-color: var(--yt-red);
    color: var(--yt-red);
    font-weight: 600;
}

#btnResetarCurso:hover {
    background-color: var(--yt-red);
    color: #ffffff;
    border-color: var(--yt-red);
}

/* Check de módulo concluído nas abas de seleção */
#seletorModulos .btn .text-success {
    margin-left: 2px;
}

/* FOOTER_ONE */
.footer_one {
    background-color: #6f42c1; /* Fundo roxo */
    color: #ffffff;             /* Fonte branca */
    text-align: center;         /* Texto centralizado */

    border-radius: 5%;          /* Bordas arredondadas */

    /* Compatibilidade com navegadores */
    -webkit-border-radius: 5%;  /* Chrome, Safari e navegadores WebKit */
    -moz-border-radius: 5%;     /* Firefox */
    -ms-border-radius: 5%;      /* Compatibilidade legada */
    -o-border-radius: 5%;       /* Compatibilidade legada */

    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}