/* css/style.css - TV Descalvado (Estilos Globais e Responsivos) */

:root {
    --bg-color: #0d0d0d;
    --text-color: #ffffff;
    --accent-red: #28a745; /* Tom Verde da TV Descalvado */
    --border-color: #222222;
    --card-bg: #161616;
    --text-muted: #aaaaaa;
}

[data-theme="light"] {
    --bg-color: #f4f4f5;
    --text-color: #111111;
    --border-color: #e4e4e7;
    --card-bg: #ffffff;
    --text-muted: #666666;
}

*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background-color: var(--bg-color); 
    color: var(--text-color); 
    transition: background 0.3s, color 0.3s; 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
}

a, a:visited, a:active { color: var(--text-color); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-red); }

/* TRAVA DE SEGURANÇA GLOBAL PARA A LOGO */
header img, 
.logo-area img, 
.header-left img, 
img.header-logo {
    max-height: 50px !important;
    height: 50px !important;
    width: auto !important;
    display: block;
    object-fit: contain;
}

/* CABEÇALHO PADRONIZADO */
header { padding: 15px 20px; border-bottom: 3px solid var(--accent-red); background: #000000; }
.header-top { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; gap: 15px; }
.header-left { flex: 1; display: flex; justify-content: flex-start; align-items: center; }
.header-center { flex: 1; text-align: center; }
.header-right { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 15px; }

.channel-title { font-size: 24px; font-weight: 900; letter-spacing: 1.5px; color: #ffffff; text-transform: uppercase; white-space: nowrap; }
.channel-title span { color: var(--accent-red); }
.link-seu-programa { font-size: 12px; font-weight: bold; color: var(--accent-red); white-space: nowrap; }

.theme-toggle-btn { background: #222; color: #fff; border: 1px solid #444; padding: 6px 12px; cursor: pointer; border-radius: 4px; font-size: 11px; font-weight: bold; }

/* MENU DE NAVEGAÇÃO */
nav.menu-barra { background: #000000; padding: 0; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; }
nav.menu-barra ul { display: flex; justify-content: center; list-style: none; flex-wrap: wrap; max-width: 1280px; margin: 0 auto; }
nav.menu-barra ul li a { color: #fff !important; text-decoration: none; padding: 14px 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; display: block; border-bottom: 3px solid transparent; transition: 0.2s; }
nav.menu-barra ul li a:hover, nav.menu-barra ul li a.active { border-bottom-color: var(--accent-red); background: rgba(40, 167, 69, 0.15); }
.menu-btn-mobile { display: none; }

.container { max-width: 1200px; margin: 25px auto; padding: 0 15px; flex: 1; width: 100%; box-sizing: border-box; }

/* ESTRUTURA DA TV AO VIVO & PUBLICIDADE LATERAL */
.layout-tv-live { display: flex; gap: 20px; flex-wrap: wrap; width: 100%; align-items: flex-start; }
.area-player { flex: 2; min-width: 320px; position: relative; overflow: hidden; border-radius: 8px; }

/* PAINEL LATERAL PUBLICITÁRIO (6 SLOTS - 2 COLUNAS) */
.area-publicidade-side {
    flex: 1;
    min-width: 320px;
    background: #111111;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pub-side-header {
    background: #000;
    color: #ffc107;
    text-align: center;
    padding: 10px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    border: 1px solid #222;
}

.grid-slots-publicidade {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.slot-adv-box {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #a00000 0%, #d00000 100%);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.slot-banner-item {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.slot-banner-item.active {
    display: flex;
}

.slot-banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slot-placeholder-inner {
    color: #ffffff;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.slot-placeholder-inner span {
    font-size: 13px;
    font-weight: 800;
}

.slot-placeholder-inner small {
    font-size: 10px;
    font-weight: 400;
}

.slot-placeholder-inner strong {
    font-size: 20px;
    font-weight: 900;
    color: #ffea00;
    display: block;
}

.btn-anuncie-aqui-side {
    display: block;
    width: 100%;
    background: #28a745;
    color: #ffffff !important;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(40,167,69,0.3);
}

.btn-anuncie-aqui-side:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* PLAYER E EPG */
.player-wrapper { position: relative; width: 100%; background: #000; border-radius: 8px; overflow: hidden; border: 2px solid var(--border-color); box-shadow: 0 10px 30px rgba(0,0,0,0.8); margin-bottom: 25px; }
.player-controls-info { background: var(--card-bg); padding: 15px 20px; border-radius: 6px; border: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.badge-live { background: var(--accent-red); color: #fff; padding: 4px 10px; font-size: 11px; font-weight: bold; border-radius: 3px; display: inline-flex; align-items: center; gap: 5px; text-transform: uppercase; }
.badge-live::before { content: ""; width: 8px; height: 8px; background: #fff; border-radius: 50%; display: inline-block; animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }

/* OVERLAY GUIA EPG */
#epgDrawer { position: absolute; top: 0; bottom: 0; right: -100%; width: 80%; max-width: 450px; background: rgba(0,0,0,0.95); z-index: 90; transition: right 0.4s ease, visibility 0.4s ease; padding: 20px; color: #fff; border-left: 2px solid var(--accent-red); overflow-y: auto; visibility: hidden; }
#epgDrawer.open { right: 0; visibility: visible; }
.btn-epg-toggle { background: #222; color: #fff; border: 1px solid var(--accent-red); padding: 8px 14px; border-radius: 4px; font-size: 12px; font-weight: bold; cursor: pointer; }

/* COMPARTILHAMENTO */
.share-bar { display: flex; gap: 8px; margin: 15px 0; flex-wrap: wrap; }
.btn-share { padding: 8px 12px; border-radius: 4px; color: #fff !important; font-size: 11px; font-weight: bold; border: none; cursor: pointer; text-decoration: none; }

/* RODAPÉ PADRONIZADO (TV DESCALVADO) */
.site-footer {
    background: #0a0a0a;
    color: #e0e0e0;
    border-top: 3px solid #28a745;
    padding: 40px 20px 20px 20px;
    margin-top: 50px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr 1fr;
    gap: 30px;
    align-items: start;
}

.footer-col h4 {
    color: #ffc107;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 15px;
    border-bottom: 2px solid #222;
    padding-bottom: 6px;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #bbb; text-decoration: none; font-size: 12px; transition: color 0.2s; }
.footer-col ul li a:hover { color: #28a745 !important; }

.footer-center-brand { text-align: center; }
.footer-logo-big { max-height: 110px; width: auto; object-fit: contain; transition: transform 0.3s; }
.footer-logo-big:hover { transform: scale(1.05); }

.channel-title-footer { font-size: 18px; font-weight: 900; color: #fff; margin-top: 10px; letter-spacing: 1px; }
.channel-title-footer span { color: #28a745; }

.social-icons { display: flex; gap: 12px; margin-bottom: 20px; }
.social-icons a { width: 40px; height: 40px; border-radius: 50%; background: #1e1e1e; display: flex; align-items: center; justify-content: center; color: #fff; transition: all 0.3s; border: 1px solid #333; }
.social-icons .icon-fb:hover { background: #1877f2; border-color: #1877f2; transform: translateY(-3px); }
.social-icons .icon-ig:hover { background: #e4405f; border-color: #e4405f; transform: translateY(-3px); }
.social-icons .icon-yt:hover { background: #ff0000; border-color: #ff0000; transform: translateY(-3px); }
.social-icons .icon-wa:hover { background: #25d366; border-color: #25d366; transform: translateY(-3px); }

.btn-app-android { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #1e1e1e 0%, #111 100%); border: 1px solid #28a745; padding: 10px 15px; border-radius: 8px; color: #fff; text-decoration: none; transition: all 0.3s; }
.btn-app-android:hover { background: #28a745; color: #000; box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4); }
.btn-app-android small { display: block; font-size: 9px; opacity: 0.8; }
.btn-app-android strong { font-size: 13px; }

.footer-bottom { max-width: 1200px; margin: 30px auto 0 auto; padding-top: 15px; border-top: 1px solid #1f1f1f; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #777; flex-wrap: wrap; gap: 10px; }
.footer-links-terms a { color: #777; text-decoration: none; }
.footer-links-terms a:hover { color: #ffc107; }

/* RESPONSIVO */
@media (max-width: 992px) {
    .header-top { flex-direction: column; text-align: center; gap: 10px; }
    .header-left, .header-center, .header-right { justify-content: center; text-align: center; width: 100%; }
    .menu-btn-mobile { display: block !important; background: #000; color: #fff; padding: 14px; width: 100%; border: none; font-weight: bold; cursor: pointer; text-transform: uppercase; }
    nav.menu-barra ul { display: none; flex-direction: column; width: 100%; }
    nav.menu-barra ul.active { display: flex; }
    .layout-tv-live { flex-direction: column; }
    .area-publicidade-side { width: 100%; min-width: 100%; }
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-center-brand { grid-column: span 2; order: -1; margin-bottom: 20px; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-center-brand { grid-column: span 1; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
/* =========================================================
   ESTILIZAÇÃO DE FORMULÁRIOS E CAMPOS (TV DESCALVADO)
   ========================================================= */

.form-container {
    background: #161616 !important;
    padding: 30px !important;
    border-radius: 8px !important;
    border: 1px solid #222222 !important;
    max-width: 800px !important;
    margin: 20px auto !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
}

.form-container h2 {
    color: #28a745 !important;
    font-size: 20px !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* BOX INFORMATIVO (DENTRO DOS FORMULÁRIOS) */
.info-box, .alert-info {
    background: #1e1b00 !important;
    border-left: 4px solid #ffc107 !important;
    padding: 15px !important;
    border-radius: 4px !important;
    margin-bottom: 25px !important;
    color: #e0e0e0 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.info-box strong, .alert-info strong {
    color: #ffc107 !important;
}

.info-box ul {
    margin-top: 8px !important;
    padding-left: 20px !important;
}

.info-box li {
    margin-bottom: 5px !important;
}

/* RÓTULOS (LABELS) */
.form-group label, label {
    display: block !important;
    font-size: 13px !important;
    font-weight: bold !important;
    margin-bottom: 6px !important;
    color: #ffffff !important;
}

/* INPUTS, SELECTS E TEXTAREAS */
.form-control, 
input[type="text"], 
input[type="email"], 
input[type="tel"], 
input[type="url"], 
input[type="password"], 
select, 
textarea {
    width: 100% !important;
    padding: 12px 15px !important;
    background-color: #0d0d0d !important;
    color: #ffffff !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    outline: none !important;
    box-sizing: border-box !important;
    display: block !important;
    transition: border-color 0.2s !important;
}

.form-control:focus, 
input:focus, 
select:focus, 
textarea:focus {
    border-color: #28a745 !important;
}

textarea.form-control, textarea {
    min-height: 100px !important;
    resize: vertical !important;
}

/* BOTÃO DE ENVO (VERDE TV DESCALVADO) */
.btn-submit, button[type="submit"] {
    background: #28a745 !important;
    color: #ffffff !important;
    padding: 14px 25px !important;
    border: none !important;
    font-weight: bold !important;
    font-size: 15px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    width: 100% !important;
    margin-top: 15px !important;
    transition: background 0.2s, transform 0.1s !important;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3) !important;
}

.btn-submit:hover, button[type="submit"]:hover {
    background: #218838 !important;
    transform: translateY(-1px) !important;
}