/* ==================================================== */
/* =============== RESET E BASE ======================= */
/* ==================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: url('../imagens/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 200px;
    background-attachment: fixed;
}

/* Marca d'água semitransparente */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

/* ==================================================== */
/* ================== HEADER COM VÍDEO ================ */
/* ==================================================== */
.hero-video {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Imagem de fallback se o vídeo falhar */
.hero-video {
    background-image: url('../images/fallback.jpg');
    background-size: cover;
    background-position: center;
}

.video-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.video-text h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.video-text p {
    font-size: 18px;
}

/* Slider text (alternativo) */
.slider-text, .video-text {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 5px;
}

/* ==================================================== */
/* ==================== LOGO ========================== */
/* ==================================================== */
.logo {
    width: 15%;
    height: 15%;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* ==================================================== */
/* ================== CONTROLES DE CABEÇALHO =========== */
/* ==================================================== */
.header-controls {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 8px 20px;
    z-index: 1000;
    width: 100%;
}

.lang-btn, .theme-btn {
    background: #1a237e;
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover, .theme-btn:hover {
    background: #3949ab;
    transform: scale(1.05);
}

.theme-btn.dark {
    background: #616161;
}

.theme-btn.dark:hover {
    background: #757575;
}

/* ==================================================== */
/* ================== TICKER DE NOTÍCIAS ============== */
/* ==================================================== */
#panorama-ticker-container {
    background: linear-gradient(to right, #1a237e, #311b92);
    color: white;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
}

#panorama-ticker-text {
    display: inline-block;
    padding: 0 20px;
    animation: ticker-scroll 15s linear infinite;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

#panorama-ticker-text a {
    color: #ffeb3b;
    text-decoration: none;
    font-weight: bold;
}

#panorama-ticker-text a:hover {
    text-decoration: underline;
}

@keyframes ticker-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Pausa ao passar o mouse */
#panorama-ticker-container:hover #panorama-ticker-text {
    animation-play-state: paused;
}

/* Container opcional para limitar largura */
.ticker-container {
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* ==================================================== */
/* ==================== MENU ========================== */
/* ==================================================== */
nav {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-menu li a {
    text-decoration: none;
    color: #1a73e8;
    font-weight: bold;
    transition: color 0.3s;
    cursor: pointer;
}

.nav-menu li a:hover {
    color: #4285f4;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: #1a73e8;
    cursor: pointer;
}

/* Menu mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }
}

/* ==================================================== */
/* ================== CONTEÚDO PRINCIPAL =============== */
/* ==================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

.content {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ==================================================== */
/* ================== PLAYERS (RÁDIO E TV) ============= */
/* ==================================================== */
.player-container {
    width: 100%;
    height: 300px;
    background: #000;
    border-radius: 5px;
    overflow: hidden;
    margin: 10px auto;
}

.radio-player, .tv-player, .video-player {
    width: 100%;
    height: 100%;
}

.titulo-player {
    margin-bottom: 20px;
}

/* ==================================================== */
/* ================== ANÚNCIOS ========================= */
/* ==================================================== */
.ads {
    background: #f8f9fa;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

/* ==================================================== */
/* ================== VERSÍCULO DO DIA ================= */
/* ==================================================== */
.daily-verse {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.daily-verse h2 {
    font-size: 24px;
    color: #FA8072;
    margin-bottom: 14px;
}

.daily-verse blockquote {
    font-style: italic;
    color: #6495ED;
    font-size: 16px;
}

#verse-text {
    background-color: #FFF9E6;
    padding: 25px;
    border-left: 5px solid #FFD700;
    color: #8A2BE2 !important;
}

/* ==================================================== */
/* ================== ENQUETES ========================= */
/* ==================================================== */
.voto-btn {
    background-color: #e74c3c;
    color: white;
    padding: 15px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-right: 10px;
}

.voto-btn:hover {
    background-color: #c0392b;
}

.barra-progresso {
    height: 20px;
    background-color: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.barra-progresso-fill {
    height: 100%;
    width: 0%;
    background-color: #2ecc71;
    transition: width 0.5s ease-in-out;
}

.agradecimento {
    display: none;
    margin-top: 20px;
    padding: 15px;
    background-color: #2ecc71;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    transition: opacity 0.5s ease-in-out;
}

/* Botões de ação */
.voto-btn, .whatsapp-btn {
    background-color: #1a73e8;
    color: white;
    padding: 15px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 10px;
}

.voto-btn:hover, .whatsapp-btn:hover {
    background-color: #4285f4;
}

.telegram-btn {
    background-color: #29b6f6;
    color: white;
    padding: 15px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 10px;
}

.telegram-btn:hover {
    background-color: #0288d1;
}

.text-center {
    text-align: center;
}

/* ==================================================== */
/* ================== AVISO ROTATIVO =================== */
/* ==================================================== */
#aviso-box {
    margin-top: 30px;
    padding: 15px;
    background-color: #e74c3c;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    transition: opacity 0.5s ease-in-out;
}

/* ==================================================== */
/* ================== POP-UP =========================== */
/* ==================================================== */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: #f0f881;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    font-family: Arial, sans-serif;
}

.popup-content h2 {
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.popup-content p {
    font-size: 16px;
    margin: 10px 0;
}

.instructions {
    text-align: left;
    margin: 15px 0;
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 10px;
    font-size: 15px;
}

.link {
    color: #007BFF;
    text-decoration: underline;
}

/* ==================================================== */
/* ================== RODAPÉ =========================== */
/* ==================================================== */
.footer {
    background: #333;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: auto;
}

.social-links {
    margin-top: 10px;
}

.social-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-size: 24px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #1a73e8;
}

/* ==================================================== */
/* ================== SCROLL DE TEXTO ================== */
/* ==================================================== */
.scroll-left {
    height: 50px;
    overflow: hidden;
    position: relative;
    background: black;
    color: orange;
    border: 1px solid orange;
}

.scroll-left p {
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
    line-height: 50px;
    text-align: center;
    transform: translateX(100%);
    animation: scroll-left 30s linear infinite;
}

@keyframes scroll-left {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ==================================================== */
/* ================== TABELA DE PROGRAMAÇÃO ============ */
/* ==================================================== */
th, td {
    padding: 10px;
    border: 1px solid #ccc;
}

thead tr {
    background-color: #e74c3c;
    color: white;
}

.ativo {
    background-color: #fff3cd !important;
    font-weight: bold;
}

/* ==================================================== */
/* ================== DARK MODE ======================== */
/* ==================================================== */
body.light-mode {
    background-color: #f5f5f5;
    color: #111;
}

body.light-mode #panorama-ticker-container,
body.light-mode .header-controls {
    background: linear-gradient(to right, #e3f2fd, #bbdefb) !important;
    color: #000;
}

body.light-mode .lang-btn,
body.light-mode .theme-btn {
    background: #1565c0;
    color: white;
}

body.light-mode .ticker-item a {
    color: #0d47a1 !important;
}

body.light-mode .theme-btn {
    background: #616161;
}

body.light-mode .theme-btn:hover {
    background: #757575;
}