/* ===========================================================
   BomFuturo TV — CSS próprio e autocontido.
   O app.css global (Tailwind) é um build estático que não escaneia
   este tema, então NENHUMA classe utilitária (grid/flex/px-5/etc.)
   funciona aqui — por isso todo o layout do tema vive neste arquivo,
   sem depender de nenhuma classe externa.
   =========================================================== */

.btv-page, .btv-page * { box-sizing: border-box; }

.btv-page {
    background-color: #0a1628;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #f1f5f9;
    font-family: 'Inter', 'Open Sans', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
}

.btv-page a { color: inherit; text-decoration: none; }
.btv-page img { max-width: 100%; display: block; }

.btv-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Vidro (glassmorphism) — usado em todos os painéis ---------- */
.btv-glass {
    background: rgba(15, 31, 56, .45);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, .08);
}

/* ---------- Header ---------- */
.btv-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 22, 40, .55);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.btv-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
}

.btv-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btv-logo img { height: 34px; width: auto; max-width: 220px; object-fit: contain; }
.btv-logo-text { font-size: 21px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.btv-logo-text span { color: #68AD59; }

.btv-nav { display: none; align-items: center; gap: 28px; }
.btv-nav a { font-size: 14px; font-weight: 600; color: #94a3b8; transition: color .15s; white-space: nowrap; }
.btv-nav a:hover { color: #fff; }

.btv-cta {
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 999px;
    color: #fff;
    background: #68AD59;
    transition: opacity .15s;
    white-space: nowrap;
}
.btv-cta:hover { opacity: .9; }

.btv-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .15);
    background: transparent;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

@media (min-width: 860px) {
    .btv-nav { display: flex; }
    .btv-cta { display: inline-flex; }
    .btv-menu-toggle { display: none; }
}

/* ---------- Vídeo em destaque ---------- */
.btv-hero { padding: 40px 0; }
.btv-hero-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #68AD59;
    margin-bottom: 12px;
}

.btv-hero-link {
    position: relative;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #000;
}

.btv-hero-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.btv-hero-link:hover img { transform: scale(1.02); }

.btv-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .85), transparent 55%);
    pointer-events: none;
}

.btv-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    background: rgba(104, 173, 89, .78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform .2s;
}
.btv-hero-link:hover .btv-play { transform: translate(-50%, -50%) scale(1.08); }

.btv-hero-caption { position: absolute; left: 24px; right: 24px; bottom: 22px; }
.btv-hero-title { display: block; color: #fff; font-size: 22px; font-weight: 800; line-height: 1.25; margin-bottom: 4px; }
.btv-hero-duration { color: #cbd5e1; font-size: 13px; }

@media (min-width: 700px) {
    .btv-hero-title { font-size: 28px; }
}

/* ---------- Stories (Destaques) ---------- */
.btv-stories-section { padding: 40px 0; }
.btv-stories-title { color: #fff; font-size: 19px; font-weight: 800; margin: 0 0 20px; }

.btv-stories-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 6px 6px 10px;
    scrollbar-width: none;
}
.btv-stories-track::-webkit-scrollbar { display: none; }

.btv-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    width: 78px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.btv-avatar-ring {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #68AD59, #22d3ee);
}
.btv-avatar-ring-inner {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 2px;
    background: rgba(10, 22, 40, .6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.btv-avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.btv-avatar-label {
    font-size: 11px;
    font-weight: 600;
    color: #e2e8f0;
    max-width: 78px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}

/* Visualizador em tela cheia */
.btv-viewer {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: #000;
    display: none;
}
.btv-viewer.is-open { display: block; }

.btv-bars { position: absolute; top: 0; left: 0; right: 0; z-index: 20; display: flex; gap: 4px; padding: 12px; }
.btv-bars .btv-bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.btv-bars .btv-bar i { display: block; height: 100%; width: 0; background: #fff; }

.btv-close {
    position: absolute;
    top: 32px;
    right: 16px;
    z-index: 20;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    background: rgba(0, 0, 0, .4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 0;
    cursor: pointer;
}

.btv-prev, .btv-next {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 33%;
    z-index: 10;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, .8);
    font-size: 26px;
    transition: color .15s;
}
.btv-prev:hover, .btv-next:hover { color: #fff; }
.btv-prev { left: 0; justify-content: flex-start; padding-left: 16px; }
.btv-next { right: 0; justify-content: flex-end; padding-right: 16px; }

.btv-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: opacity .2s;
}

.btv-viewer-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    padding: 24px 24px 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, .92), rgba(0, 0, 0, .5) 60%, transparent);
}

.btv-viewer-logo { height: 26px; width: auto; max-width: 180px; object-fit: contain; margin-bottom: 12px; display: block; }

.btv-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
    color: #fff;
    background: #68AD59;
}

.btv-story-title { color: #fff; font-size: 24px; font-weight: 800; line-height: 1.25; margin: 0 0 10px; }

.btv-story-excerpt {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 18px;
    max-width: 560px;
}

.btv-story-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #68AD59;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 999px;
}

/* ---------- Grade de Notícias ---------- */
.btv-news-section { padding: 56px 0; }
.btv-news-title { color: #fff; font-size: 19px; font-weight: 800; margin: 0 0 28px; }

.btv-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) { .btv-news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .btv-news-grid { grid-template-columns: repeat(3, 1fr); } }

.btv-card {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(15, 31, 56, .45);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, .08);
    transition: transform .2s, background .2s;
}
.btv-card:hover { transform: translateY(-3px); background: rgba(15, 31, 56, .62); }

.btv-card-media { aspect-ratio: 16/10; overflow: hidden; background: rgba(22, 35, 61, .6); }
.btv-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.btv-card:hover .btv-card-media img { transform: scale(1.06); }

.btv-card-body { padding: 16px; }
.btv-card-cat { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #68AD59; margin-bottom: 6px; }
.btv-card-title { color: #fff; font-size: 16px; font-weight: 800; line-height: 1.35; margin: 0 0 8px; }
.btv-card-excerpt {
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Footer ---------- */
.btv-footer {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 48px 0 0;
    background: rgba(7, 15, 31, .6);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.btv-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
}

.btv-footer-brand-col { display: flex; flex-direction: column; align-items: center; }

.btv-footer-logo { display: inline-flex; align-items: center; margin-bottom: 10px; }
.btv-footer-logo img { height: 30px; width: auto; max-width: 200px; object-fit: contain; }

.btv-footer-brand { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.btv-footer-brand span { color: #68AD59; }
.btv-footer-tag { color: #94a3b8; font-size: 14px; margin: 0 0 16px; }

.btv-socials { display: flex; align-items: center; justify-content: center; gap: 14px; }
.btv-social {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #cbd5e1;
    background: rgba(255, 255, 255, .06);
    transition: color .15s, background .15s;
}
.btv-social:hover { color: #fff; background: rgba(255, 255, 255, .12); }

.btv-footer-col-title { color: #fff; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; }
.btv-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.btv-footer-links a { color: #94a3b8; font-size: 14px; transition: color .15s; }
.btv-footer-links a:hover { color: #fff; }
.btv-footer-contact { color: #94a3b8; font-size: 14px; display: flex; flex-direction: column; gap: 9px; }
.btv-footer-contact a { color: #94a3b8; transition: color .15s; }
.btv-footer-contact a:hover { color: #fff; }

.btv-copy {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 36px;
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: #64748b;
}

@media (min-width: 700px) {
    .btv-footer-grid {
        grid-template-columns: 1.3fr 1fr 1fr 1fr;
        text-align: left;
    }
    .btv-footer-brand-col { align-items: flex-start; }
    .btv-socials { justify-content: flex-start; }
}

/* ---------- Página de notícia individual ---------- */
.btv-article { padding: 40px 0 64px; min-height: 60vh; }

.btv-article-panel {
    max-width: 820px;
    margin: 0 auto;
    padding: 32px;
    border-radius: 20px;
    background: rgba(15, 31, 56, .5);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, .08);
}
@media (min-width: 700px) { .btv-article-panel { padding: 44px; } }

.btv-article-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #68AD59;
    margin-bottom: 20px;
}
.btv-article-back:hover { text-decoration: underline; }

.btv-article-cat { margin-bottom: 16px; }

.btv-article-title {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 12px;
}
@media (min-width: 700px) { .btv-article-title { font-size: 36px; } }

.btv-article-meta { color: #94a3b8; font-size: 13px; margin: 0 0 24px; }

.btv-article-cover { border-radius: 16px; overflow: hidden; margin-bottom: 28px; aspect-ratio: 16/9; background: rgba(22, 35, 61, .6); }
.btv-article-cover img { width: 100%; height: 100%; object-fit: cover; }

.btv-article-body { color: #e2e8f0; font-size: 17px; line-height: 1.8; }
.btv-article-body p { margin: 0 0 20px; }
.btv-article-body h2, .btv-article-body h3 { color: #fff; margin: 32px 0 14px; line-height: 1.35; }
.btv-article-body img { border-radius: 10px; margin: 20px 0; }
.btv-article-body a { color: #68AD59; text-decoration: underline; }
.btv-article-body ul, .btv-article-body ol { margin: 0 0 20px; padding-left: 22px; }

.btv-article-source {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: #94a3b8;
    font-size: 13px;
}
.btv-article-source a { color: #cbd5e1; }
