/**
 * Live Page CSS - GAINTRADER LAB
 * Estilos da página de live
 */

.live-page {
    padding: 40px 0 60px;
}

.live-header {
    text-align: center;
    margin-bottom: 40px;
}

.live-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.live-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

.live-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* ============================================
   EMBED DO YOUTUBE
   ============================================ */

.live-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.live-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   SIDEBAR
   ============================================ */

.live-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.live-info-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.live-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.live-dot-big {
    width: 14px;
    height: 14px;
    background: #ff0000;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.live-text {
    font-weight: 600;
    color: #ff0000;
    font-size: 16px;
}

.live-info-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.live-info-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.btn-youtube {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #ff0000;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-youtube:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
    color: #fff;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* ============================================
   AGENDA
   ============================================ */

.live-schedule {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.live-schedule h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.live-schedule ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.live-schedule li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color-light);
}

.live-schedule li:last-child {
    border-bottom: none;
}

.schedule-day {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 70px;
}

.schedule-time {
    color: var(--text-secondary);
    min-width: 60px;
}

.schedule-title {
    color: var(--text-secondary);
}

/* ============================================
   RODAPÉ DA PÁGINA
   ============================================ */

.live-ranking-link {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 30px;
    border-top: 1px solid var(--border-color-light);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: var(--gold);
}

/* ============================================
   ANIMAÇÃO DO PONTO
   ============================================ */

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* ============================================
   RESPONSIVO
   ============================================ */

@media (max-width: 1024px) {
    .live-main {
        grid-template-columns: 1fr;
    }
    
    .live-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .live-page {
        padding: 20px 0 40px;
    }
    
    .live-header h1 {
        font-size: 28px;
    }
    
    .live-header p {
        font-size: 16px;
    }
    
    .live-sidebar {
        grid-template-columns: 1fr;
    }
    
    .live-ranking-link {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .live-header h1 {
        font-size: 22px;
    }
    
    .live-info-card {
        padding: 16px;
    }
    
    .live-schedule {
        padding: 16px;
    }
    
    .live-schedule li {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .schedule-day {
        min-width: 50px;
        font-size: 13px;
    }
    
    .schedule-time {
        min-width: 50px;
        font-size: 13px;
    }
}

/* ============================================
   MODO ESCURO
   ============================================ */

body.dark-mode .live-info-card,
body.dark-mode .live-schedule {
    background: var(--bg-card);
    border-color: var(--border-color);
}

body.dark-mode .live-info-card h3 {
    color: var(--text-primary);
}

body.dark-mode .live-info-card p {
    color: var(--text-secondary);
}

body.dark-mode .schedule-day {
    color: var(--text-primary);
}

body.dark-mode .schedule-time,
body.dark-mode .schedule-title {
    color: var(--text-secondary);
}

body.dark-mode .btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-color);
}

body.dark-mode .btn-secondary:hover {
    border-color: var(--gold);
}