/*
Theme Name: BigTimesgh
Theme URI: https://bigtimesgh.com
Author: BigTimesgh Team
Author URI: https://bigtimesgh.com
Description: A modern, professional African general news and media WordPress theme. News-first design focused on Ghana, Africa, and world news with secondary Music and Videos sections. Fast, responsive, SEO-friendly, and production-ready.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bigtimesgh
Tags: news, blog, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, dark-mode, accessibility-ready

BigTimesgh - Professional African News Platform
*/

/* ==================================================
   CSS VARIABLES & THEME ROOT
   ================================================== */
:root {
  --bt-primary: #c8102e;
  --bt-primary-dark: #9a0c22;
  --bt-accent: #1a1a2e;
  --bt-dark: #0f0f1a;
  --bt-text: #1a1a1a;
  --bt-text-secondary: #555555;
  --bt-text-muted: #888888;
  --bt-bg: #ffffff;
  --bt-bg-secondary: #f7f7f9;
  --bt-bg-tertiary: #eeeeef;
  --bt-border: #e5e5e8;
  --bt-card-bg: #ffffff;
  --bt-header-bg: #0f0f1a;
  --bt-header-text: #ffffff;
  --bt-ticker-bg: #c8102e;
  --bt-success: #0a7c42;
  --bt-warning: #e6a700;
  --bt-radius: 6px;
  --bt-radius-lg: 10px;
  --bt-shadow: 0 1px 3px rgba(0,0,0,0.08);
  --bt-shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --bt-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bt-font-serif: "Merriweather", Georgia, "Times New Roman", serif;
  --bt-transition: 0.2s ease;
  --bt-max-width: 1280px;
  --bt-header-height: 70px;
  --bt-share-facebook: #1877f2;
  --bt-share-twitter: #000000;
  --bt-share-whatsapp: #25d366;
  --bt-share-telegram: #0088cc;
  --bt-share-linkedin: #0a66c2;
  --bt-share-copy: #1a1a2e;
}

/* Dark mode */
[data-theme="dark"] {
  --bt-text: #e8e8ec;
  --bt-text-secondary: #b0b0b8;
  --bt-text-muted: #888890;
  --bt-bg: #0f0f14;
  --bt-bg-secondary: #18181f;
  --bt-bg-tertiary: #22222b;
  --bt-border: #2a2a35;
  --bt-card-bg: #18181f;
  --bt-header-bg: #0a0a0e;
  --bt-shadow: 0 1px 3px rgba(0,0,0,0.3);
  --bt-shadow-md: 0 4px 12px rgba(0,0,0,0.4);
}

/* ==================================================
   RESET & BASE
   ================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--bt-font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--bt-text);
  background-color: var(--bt-bg);
  transition: background-color var(--bt-transition), color var(--bt-transition);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--bt-primary);
  text-decoration: none;
  transition: color var(--bt-transition);
}

a:hover {
  color: var(--bt-primary-dark);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--bt-text);
}

/* ==================================================
   UTILITY CLASSES
   ================================================== */
.bt-container {
  width: 100%;
  max-width: var(--bt-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.bt-section {
  padding: 32px 0;
}

.bt-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--bt-primary);
  display: inline-block;
  letter-spacing: -0.02em;
}

.bt-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 3px;
  background: var(--bt-primary);
  color: #fff;
}

.bt-badge--secondary {
  background: var(--bt-accent);
}

.bt-meta {
  font-size: 0.8rem;
  color: var(--bt-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.bt-meta a {
  color: var(--bt-text-muted);
}

.bt-meta a:hover {
  color: var(--bt-primary);
}

.bt-excerpt {
  color: var(--bt-text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}

.bt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--bt-radius);
  transition: all var(--bt-transition);
  border: 2px solid transparent;
}

.bt-btn--primary {
  background: var(--bt-primary);
  color: #fff;
}

.bt-btn--primary:hover {
  background: var(--bt-primary-dark);
  color: #fff;
}

.bt-btn--outline {
  border-color: var(--bt-primary);
  color: var(--bt-primary);
  background: transparent;
}

.bt-btn--outline:hover {
  background: var(--bt-primary);
  color: #fff;
}

.bt-btn--dark {
  background: var(--bt-accent);
  color: #fff;
}

.bt-btn--sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==================================================
   TOP BAR
   ================================================== */
.bt-topbar {
  background: var(--bt-dark);
  color: #fff;
  font-size: 0.8rem;
  padding: 6px 0;
}

.bt-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bt-topbar__date {
  white-space: nowrap;
  opacity: 0.85;
}

.bt-topbar__social {
  display: flex;
  gap: 12px;
}

.bt-topbar__social a {
  color: #fff;
  opacity: 0.8;
  transition: opacity var(--bt-transition);
}

.bt-topbar__social a:hover {
  opacity: 1;
}

/* ==================================================
   HEADER
   ================================================== */
.bt-header {
  background: var(--bt-header-bg);
  color: var(--bt-header-text);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.bt-header__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--bt-header-height);
  gap: 20px;
}

.bt-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.bt-logo:hover {
  color: #fff;
}

.bt-logo__mark {
  background: var(--bt-primary);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
}

.bt-logo__text span {
  color: var(--bt-primary);
}

.bt-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bt-search-toggle,
.bt-theme-toggle,
.bt-menu-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 50%;
  transition: background var(--bt-transition);
}

.bt-search-toggle:hover,
.bt-theme-toggle:hover,
.bt-menu-toggle:hover {
  background: rgba(255,255,255,0.1);
}

.bt-subscribe-btn {
  display: none;
}

@media (min-width: 768px) {
  .bt-subscribe-btn {
    display: inline-flex;
  }
}

/* Primary Navigation */
.bt-nav {
  background: var(--bt-header-bg);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.bt-nav__list {
  display: none;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 992px) {
  .bt-nav__list {
    display: flex;
  }
  .bt-menu-toggle {
    display: none;
  }
}

.bt-nav__list a {
  display: block;
  padding: 12px 14px;
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--bt-transition), background var(--bt-transition);
}

.bt-nav__list a:hover,
.bt-nav__list .current-menu-item > a {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* Mobile Menu */
.bt-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bt-dark);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 20px;
}

.bt-mobile-menu.is-open {
  transform: translateX(0);
}

.bt-mobile-menu__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.bt-mobile-menu__close {
  width: 44px;
  height: 44px;
  color: #fff;
  font-size: 1.5rem;
}

.bt-mobile-menu nav a {
  display: block;
  padding: 14px 0;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ==================================================
   BREAKING NEWS TICKER
   ================================================== */
.bt-breaking {
  background: var(--bt-ticker-bg);
  color: #fff;
  padding: 8px 0;
  overflow: hidden;
}

.bt-breaking__inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bt-breaking__label {
  background: #fff;
  color: var(--bt-primary);
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.bt-breaking__track {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.bt-breaking__items {
  display: flex;
  gap: 40px;
  animation: bt-ticker 30s linear infinite;
  white-space: nowrap;
}

.bt-breaking__items:hover {
  animation-play-state: paused;
}

.bt-breaking__item a {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.bt-breaking__item a:hover {
  text-decoration: underline;
}

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

/* ==================================================
   SEARCH OVERLAY
   ================================================== */
.bt-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 3000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.bt-search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.bt-search-form {
  width: 90%;
  max-width: 640px;
  position: relative;
}

.bt-search-form input {
  width: 100%;
  padding: 18px 60px 18px 24px;
  font-size: 1.25rem;
  border: none;
  border-radius: var(--bt-radius-lg);
  background: #fff;
  color: #1a1a1a;
}

.bt-search-form button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  color: var(--bt-primary);
}

.bt-search-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  color: #fff;
  font-size: 1.8rem;
}

/* ==================================================
   HOMEPAGE - FEATURED GRID
   ================================================== */
.bt-featured {
  padding: 24px 0 32px;
}

.bt-featured__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .bt-featured__grid {
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
  }
}

.bt-featured__main {
  position: relative;
  border-radius: var(--bt-radius-lg);
  overflow: hidden;
  background: var(--bt-card-bg);
  box-shadow: var(--bt-shadow);
}

.bt-featured__main .bt-post-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.bt-featured__main .bt-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.bt-featured__main:hover .bt-post-thumb img {
  transform: scale(1.04);
}

.bt-featured__main .bt-post-content {
  padding: 20px;
}

.bt-featured__main .bt-post-title {
  font-size: 1.5rem;
  margin: 10px 0 12px;
}

@media (min-width: 768px) {
  .bt-featured__main .bt-post-title {
    font-size: 1.85rem;
  }
}

.bt-featured__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bt-featured__side .bt-post-card {
  display: flex;
  gap: 14px;
  background: var(--bt-card-bg);
  border-radius: var(--bt-radius);
  overflow: hidden;
  box-shadow: var(--bt-shadow);
  transition: box-shadow var(--bt-transition);
}

.bt-featured__side .bt-post-card:hover {
  box-shadow: var(--bt-shadow-md);
}

.bt-featured__side .bt-post-thumb {
  width: 110px;
  flex-shrink: 0;
  aspect-ratio: 1;
  overflow: hidden;
}

.bt-featured__side .bt-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bt-featured__side .bt-post-content {
  padding: 12px 12px 12px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bt-featured__side .bt-post-title {
  font-size: 0.95rem;
  margin: 4px 0;
  line-height: 1.35;
}

/* ==================================================
   POST CARDS
   ================================================== */
.bt-post-card {
  background: var(--bt-card-bg);
  border-radius: var(--bt-radius);
  overflow: hidden;
  box-shadow: var(--bt-shadow);
  transition: box-shadow var(--bt-transition), transform var(--bt-transition);
}

.bt-post-card:hover {
  box-shadow: var(--bt-shadow-md);
}

.bt-post-thumb {
  position: relative;
  overflow: hidden;
  background: var(--bt-bg-tertiary);
}

.bt-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.bt-post-card:hover .bt-post-thumb img {
  transform: scale(1.03);
}

.bt-post-content {
  padding: 16px;
}

.bt-post-title {
  font-size: 1.1rem;
  margin: 8px 0;
  line-height: 1.35;
}

.bt-post-title a {
  color: var(--bt-text);
}

.bt-post-title a:hover {
  color: var(--bt-primary);
}

/* Latest News List */
.bt-latest-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bt-latest-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bt-border);
}

@media (min-width: 576px) {
  .bt-latest-item {
    grid-template-columns: 180px 1fr;
    gap: 20px;
  }
}

.bt-latest-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bt-latest-item .bt-post-thumb {
  aspect-ratio: 4/3;
  border-radius: var(--bt-radius);
  overflow: hidden;
}

.bt-latest-item .bt-post-title {
  font-size: 1.15rem;
  margin: 6px 0 8px;
}

/* Category Grids */
.bt-news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 576px) {
  .bt-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .bt-news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bt-news-grid .bt-post-thumb {
  aspect-ratio: 16/10;
}

/* Trending */
.bt-trending-list {
  counter-reset: trending;
}

.bt-trending-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--bt-border);
  counter-increment: trending;
}

.bt-trending-item:last-child {
  border-bottom: none;
}

.bt-trending-item::before {
  content: counter(trending);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bt-primary);
  line-height: 1;
  min-width: 32px;
}

.bt-trending-item .bt-post-title {
  font-size: 0.95rem;
  margin: 0 0 4px;
}

.bt-trending-views {
  font-size: 0.75rem;
  color: var(--bt-text-muted);
}

/* ==================================================
   LAYOUT WITH SIDEBAR
   ================================================== */
.bt-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 992px) {
  .bt-layout {
    grid-template-columns: 1fr 320px;
  }
}

.bt-sidebar .widget {
  background: var(--bt-card-bg);
  border-radius: var(--bt-radius);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--bt-shadow);
}

.bt-sidebar .widget-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bt-primary);
}

/* ==================================================
   SINGLE ARTICLE
   ================================================== */
.bt-single {
  padding: 24px 0 48px;
}

.bt-single__header {
  max-width: 800px;
  margin-bottom: 24px;
}

.bt-single__category {
  margin-bottom: 12px;
}

.bt-single__title {
  font-size: 1.85rem;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .bt-single__title {
    font-size: 2.5rem;
  }
}

.bt-single__subheadline {
  font-size: 1.15rem;
  color: var(--bt-text-secondary);
  font-weight: 400;
  margin-bottom: 16px;
  line-height: 1.5;
}

.bt-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--bt-border);
  border-bottom: 1px solid var(--bt-border);
  margin-bottom: 24px;
}

.bt-single__author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bt-single__author img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.bt-single__featured {
  margin-bottom: 28px;
  border-radius: var(--bt-radius-lg);
  overflow: hidden;
}

.bt-single__featured img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.bt-single__content {
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.75;
}

.bt-single__content p {
  margin-bottom: 1.25em;
}

.bt-single__content h2,
.bt-single__content h3 {
  margin: 1.6em 0 0.7em;
}

.bt-single__content img {
  border-radius: var(--bt-radius);
  margin: 1.5em 0;
}

.bt-single__content blockquote {
  border-left: 4px solid var(--bt-primary);
  padding: 12px 20px;
  margin: 1.5em 0;
  background: var(--bt-bg-secondary);
  font-style: italic;
}

.bt-single__updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--bt-text-muted);
  background: var(--bt-bg-secondary);
  padding: 4px 10px;
  border-radius: 4px;
  margin-top: 8px;
}

.bt-share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.bt-share a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--bt-radius);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: #555;
}

.bt-share a.facebook { background: var(--bt-share-facebook, #1877f2); }
.bt-share a.twitter { background: var(--bt-share-twitter, #000); }
.bt-share a.whatsapp { background: var(--bt-share-whatsapp, #25d366); }
.bt-share a.linkedin { background: var(--bt-share-linkedin, #0a66c2); }
.bt-share a.telegram { background: var(--bt-share-telegram, #0088cc); }

/* Related */
.bt-related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--bt-border);
}

.bt-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 576px) {
  .bt-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .bt-related__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==================================================
   ARCHIVE / CATEGORY
   ================================================== */
.bt-archive-header {
  padding: 28px 0 16px;
  border-bottom: 1px solid var(--bt-border);
  margin-bottom: 28px;
}

.bt-archive-title {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.bt-archive-desc {
  color: var(--bt-text-secondary);
  max-width: 640px;
}

/* ==================================================
   AUTHOR PAGE
   ================================================== */
.bt-author-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 32px 0;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--bt-border);
}

@media (min-width: 576px) {
  .bt-author-header {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }
}

.bt-author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.bt-author-name {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.bt-author-title {
  color: var(--bt-primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.bt-author-bio {
  color: var(--bt-text-secondary);
  max-width: 560px;
}

.bt-author-social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

/* ==================================================
   VIDEOS
   ================================================== */
.bt-video-card {
  background: var(--bt-card-bg);
  border-radius: var(--bt-radius);
  overflow: hidden;
  box-shadow: var(--bt-shadow);
}

.bt-video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #111;
  overflow: hidden;
}

.bt-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.bt-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: var(--bt-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform var(--bt-transition);
}

.bt-video-card:hover .bt-video-play {
  transform: translate(-50%, -50%) scale(1.1);
}

.bt-video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
}

/* ==================================================
   MUSIC
   ================================================== */
.bt-music-card {
  display: flex;
  gap: 14px;
  background: var(--bt-card-bg);
  border-radius: var(--bt-radius);
  padding: 14px;
  box-shadow: var(--bt-shadow);
}

.bt-music-cover {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bt-bg-tertiary);
}

.bt-music-info {
  flex: 1;
  min-width: 0;
}

.bt-music-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bt-music-artist {
  font-size: 0.85rem;
  color: var(--bt-text-secondary);
}

/* ==================================================
   NEWSLETTER
   ================================================== */
.bt-newsletter {
  background: var(--bt-accent);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}

.bt-newsletter h2 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.bt-newsletter p {
  opacity: 0.85;
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.bt-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .bt-newsletter-form {
    flex-direction: row;
  }
}

.bt-newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: var(--bt-radius);
  font-size: 1rem;
}

.bt-newsletter-form button {
  padding: 14px 24px;
  background: var(--bt-primary);
  color: #fff;
  font-weight: 700;
  border-radius: var(--bt-radius);
  white-space: nowrap;
}

.bt-newsletter-form button:hover {
  background: var(--bt-primary-dark);
}

/* ==================================================
   FOOTER
   ================================================== */
.bt-footer {
  background: var(--bt-dark);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 0;
  font-size: 0.9rem;
}

.bt-footer a {
  color: rgba(255,255,255,0.75);
}

.bt-footer a:hover {
  color: #fff;
}

.bt-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

@media (min-width: 576px) {
  .bt-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .bt-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.bt-footer__brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.bt-footer__brand span {
  color: var(--bt-primary);
}

.bt-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bt-footer ul li {
  margin-bottom: 8px;
}

.bt-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .bt-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.bt-footer__social {
  display: flex;
  gap: 14px;
}

/* ==================================================
   MOBILE BOTTOM NAV
   ================================================== */
.bt-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bt-header-bg);
  border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 900;
  padding: 6px 0 env(safe-area-inset-bottom);
}

@media (max-width: 991px) {
  .bt-bottom-nav {
    display: flex;
    justify-content: space-around;
  }
  body {
    padding-bottom: 64px;
  }
}

.bt-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: rgba(255,255,255,0.65);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 6px 10px;
  min-width: 56px;
}

.bt-bottom-nav a svg {
  width: 22px;
  height: 22px;
}

.bt-bottom-nav a.is-active,
.bt-bottom-nav a:hover {
  color: #fff;
}

/* ==================================================
   AD SLOTS
   ================================================== */
.bt-ad {
  text-align: center;
  margin: 24px 0;
  min-height: 50px;
}

.bt-ad--header {
  margin: 0;
  padding: 10px 0;
  background: var(--bt-bg-secondary);
}

.bt-ad--in-content {
  margin: 32px 0;
}

.bt-ad img {
  margin: 0 auto;
}

/* ==================================================
   PAGINATION
   ================================================== */
.bt-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0 20px;
  flex-wrap: wrap;
}

.bt-pagination a,
.bt-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--bt-radius);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--bt-bg-secondary);
  color: var(--bt-text);
}

.bt-pagination a:hover {
  background: var(--bt-primary);
  color: #fff;
}

.bt-pagination .current {
  background: var(--bt-primary);
  color: #fff;
}

/* ==================================================
   404
   ================================================== */
.bt-404 {
  text-align: center;
  padding: 80px 20px;
}

.bt-404 h1 {
  font-size: 4rem;
  color: var(--bt-primary);
  margin-bottom: 12px;
}

/* ==================================================
   COMMENTS
   ================================================== */
.bt-comments {
  margin-top: 48px;
  max-width: 720px;
}

.bt-comments h3 {
  margin-bottom: 24px;
}

.comment-list {
  margin-bottom: 32px;
}

.comment {
  padding: 16px 0;
  border-bottom: 1px solid var(--bt-border);
}

.comment-author {
  font-weight: 700;
}

.comment-meta {
  font-size: 0.8rem;
  color: var(--bt-text-muted);
  margin-bottom: 8px;
}

/* ==================================================
   ACCESSIBILITY
   ================================================== */
:focus-visible {
  outline: 2px solid var(--bt-primary);
  outline-offset: 2px;
}

/* ==================================================
   PRINT
   ================================================== */
@media print {
  .bt-header,
  .bt-topbar,
  .bt-breaking,
  .bt-bottom-nav,
  .bt-sidebar,
  .bt-share,
  .bt-newsletter,
  .bt-footer,
  .bt-ad {
    display: none !important;
  }
  body {
    padding: 0;
  }
}
/* ==================================================
   ANIMATIONS & MOTION
   ================================================== */

/* Page load */
body {
  opacity: 0;
  transition: opacity 0.35s ease;
}
body.bt-loaded {
  opacity: 1;
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body { opacity: 1; }
  .bt-reveal { opacity: 1; transform: none; }
}

/* Scroll reveal */
.bt-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--bt-delay, 0s);
}
.bt-reveal.bt-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Header scroll states */
.bt-header {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.bt-header--scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}
.bt-header--hidden {
  transform: translateY(-100%);
}
@media (min-width: 992px) {
  .bt-header--hidden {
    transform: none; /* keep header visible on desktop */
  }
}

/* Card hover lift */
.bt-post-card,
.bt-video-card,
.bt-music-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bt-post-card:hover,
.bt-video-card:hover,
.bt-music-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bt-shadow-md);
}

/* Featured main image zoom already present – enhance */
.bt-featured__main .bt-post-thumb img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Badge pulse on featured */
.bt-featured__main .bt-badge {
  animation: bt-badge-in 0.5s ease 0.2s both;
}
@keyframes bt-badge-in {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* Breaking ticker smoother */
.bt-breaking__items {
  animation: bt-ticker 35s linear infinite;
}
@keyframes bt-ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Button press feedback */
.bt-btn {
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.bt-btn:active {
  transform: scale(0.97);
}

/* Mobile menu slide + fade */
.bt-mobile-menu {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  opacity: 0;
}
.bt-mobile-menu.is-open {
  opacity: 1;
}

/* Search overlay */
.bt-search-overlay {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.bt-search-overlay.is-open .bt-search-form {
  animation: bt-search-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes bt-search-in {
  from { opacity: 0; transform: translateY(-20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Bottom nav fade in */
.bt-bottom-nav {
  animation: bt-bottom-in 0.4s ease 0.3s both;
}
@keyframes bt-bottom-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Trending numbers pop */
.bt-trending-item.bt-revealed::before {
  animation: bt-num-pop 0.4s ease both;
}
@keyframes bt-num-pop {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

/* Share buttons stagger on single */
.bt-share a {
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.bt-share a:hover {
  transform: translateY(-2px);
}

/* Video play button pulse */
.bt-video-play {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bt-video-card:hover .bt-video-play {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 6px 24px rgba(200, 16, 46, 0.45);
}

/* Newsletter form focus */
.bt-newsletter-form input:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Skeleton-style shimmer for loading placeholders (optional use) */
@keyframes bt-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.bt-shimmer {
  background: linear-gradient(90deg, var(--bt-bg-tertiary) 25%, var(--bt-bg-secondary) 50%, var(--bt-bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: bt-shimmer 1.4s ease infinite;
}

/* PWA install button */
#bt-pwa-install {
  display: none;
  margin-left: 8px;
}

/* ==================================================
   LIVE SEARCH RESULTS
   ================================================== */
.bt-live-search-results {
  width: 90%;
  max-width: 640px;
  margin: 12px auto 0;
  background: var(--bt-card-bg);
  border-radius: var(--bt-radius-lg);
  box-shadow: var(--bt-shadow-md);
  max-height: 60vh;
  overflow-y: auto;
  display: none;
  text-align: left;
}
.bt-live-search-results.is-visible {
  display: block;
  animation: bt-search-in 0.3s ease both;
}
.bt-live-results {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bt-live-results li a {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  color: var(--bt-text);
  border-bottom: 1px solid var(--bt-border);
  transition: background 0.15s ease;
}
.bt-live-results li a:hover {
  background: var(--bt-bg-secondary);
  color: var(--bt-text);
}
.bt-live-thumb {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bt-bg-tertiary);
}
.bt-live-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bt-live-title {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}
.bt-live-meta {
  display: block;
  font-size: 0.75rem;
  color: var(--bt-text-muted);
  margin-top: 4px;
}
.bt-live-all {
  display: block;
  padding: 14px;
  text-align: center;
  font-weight: 600;
  color: var(--bt-primary);
}
.bt-search-empty {
  padding: 24px;
  text-align: center;
  color: var(--bt-text-muted);
  margin: 0;
}

/* ==================================================
   READING PROGRESS BAR
   ================================================== */
.bt-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1100;
  background: transparent;
  pointer-events: none;
}
.bt-reading-progress__bar {
  height: 100%;
  width: 0;
  background: var(--bt-primary);
  transition: width 0.1s linear;
}

/* ==================================================
   BOOKMARK BUTTON
   ================================================== */
.bt-bookmark-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--bt-radius);
  border: 1px solid var(--bt-border);
  background: var(--bt-bg-secondary);
  color: var(--bt-text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.bt-bookmark-btn:hover {
  border-color: var(--bt-primary);
  color: var(--bt-primary);
}
.bt-bookmark-btn.is-active {
  background: var(--bt-primary);
  border-color: var(--bt-primary);
  color: #fff;
}
.bt-bookmark-btn.is-active svg {
  fill: currentColor;
}

/* ==================================================
   LOAD MORE
   ================================================== */
.bt-load-more-wrap {
  text-align: center;
  margin: 32px 0;
}
#bt-load-more {
  min-width: 160px;
}

/* ==================================================
   PUSH BANNER
   ================================================== */
.bt-push-banner {
  position: fixed;
  bottom: 80px;
  left: 16px;
  right: 16px;
  z-index: 950;
  max-width: 420px;
  margin: 0 auto;
  background: var(--bt-accent);
  color: #fff;
  border-radius: var(--bt-radius-lg);
  box-shadow: var(--bt-shadow-md);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.35s ease;
}
.bt-push-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.bt-push-banner__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  font-size: 0.9rem;
}
.bt-push-banner__inner span {
  flex: 1;
}
.bt-push-dismiss {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  opacity: 0.7;
  padding: 4px;
}
.bt-push-dismiss:hover {
  opacity: 1;
}
@media (min-width: 992px) {
  .bt-push-banner {
    bottom: 24px;
    left: auto;
    right: 24px;
  }
}

/* ==================================================
   POLLS
   ================================================== */
.bt-poll {
  background: var(--bt-card-bg);
  border: 1px solid var(--bt-border);
  border-radius: var(--bt-radius-lg);
  padding: 20px;
  margin: 24px 0;
  box-shadow: var(--bt-shadow);
}
.bt-poll__question {
  font-size: 1.15rem;
  margin: 0 0 16px;
  line-height: 1.35;
}
.bt-poll__options {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.bt-poll__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--bt-border);
  border-radius: var(--bt-radius);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.bt-poll__option:hover {
  border-color: var(--bt-primary);
  background: var(--bt-bg-secondary);
}
.bt-poll__option input {
  accent-color: var(--bt-primary);
  width: 18px;
  height: 18px;
}
.bt-poll__label {
  font-weight: 500;
  flex: 1;
}
.bt-poll__submit {
  width: 100%;
}
.bt-poll__bars {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bt-poll__bars li {
  margin-bottom: 14px;
}
.bt-poll__bar-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.bt-poll__bar-label {
  font-weight: 600;
}
.bt-poll__bar-pct {
  color: var(--bt-text-muted);
  white-space: nowrap;
}
.bt-poll__bar-track {
  height: 10px;
  background: var(--bt-bg-tertiary);
  border-radius: 5px;
  overflow: hidden;
}
.bt-poll__bar-fill {
  height: 100%;
  background: var(--bt-primary);
  border-radius: 5px;
  transition: width 0.6s ease;
  min-width: 0;
}
.bt-poll__total {
  margin: 16px 0 0;
  font-size: 0.85rem;
  color: var(--bt-text-muted);
  text-align: center;
}
.bt-poll.is-voting {
  opacity: 0.7;
  pointer-events: none;
}
.bt-poll.is-voting .bt-poll__submit {
  opacity: 0.8;
}

/* Poll share buttons */
.bt-poll__share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--bt-border);
}
.bt-poll__share-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bt-text-muted);
  margin-right: 4px;
}
.bt-poll__share-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--bt-radius);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff !important;
  background: #555;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.bt-poll__share-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: #fff !important;
}
.bt-poll__share-btn.facebook { background: var(--bt-share-facebook, #1877f2); }
.bt-poll__share-btn.twitter { background: var(--bt-share-twitter, #000); }
.bt-poll__share-btn.whatsapp { background: var(--bt-share-whatsapp, #25d366); }
.bt-poll__share-btn.telegram { background: var(--bt-share-telegram, #0088cc); }
.bt-poll__share-btn.linkedin { background: var(--bt-share-linkedin, #0a66c2); }
.bt-poll__share-btn.bt-poll__copy { background: var(--bt-share-copy, var(--bt-accent)); }
.bt-poll__share-btn.copied { background: var(--bt-success) !important; }
