/* ==========================================================================
   Theme Zones — Green header/footer, white content, orange accents
   ========================================================================== */

/* ==========================================================================
   PUBLIC SITE
   ========================================================================== */
body.theme-public {
  background: #ffffff;
  color: #1a1a1a;
}

body.theme-public #appContent {
  color: #1a1a1a;
}

/* ── Text color mappings ── */
body.theme-public #appContent .text-brand-navy {
  color: #1a1a1a !important;
}
body.theme-public #appContent .text-text-2 {
  color: #6b7280 !important;
}
body.theme-public #appContent .text-brand-accent {
  color: #e96e00 !important;
}

/* ── Buttons ── */
body.theme-public #appContent .btn-primary {
  background: #e96e00 !important;
  border-color: #e96e00 !important;
  color: #fff !important;
}
body.theme-public #appContent .btn-outline {
  border-color: #e96e00 !important;
  color: #e96e00 !important;
}
body.theme-public #appContent .btn-secondary {
  border-color: #e5e7eb !important;
  color: #1a1a1a !important;
}

/* ── Surfaces ── */
body.theme-public #appContent .bg-white {
  background: #ffffff;
}
body.theme-public #appContent .border-border {
  border-color: #e5e7eb !important;
}

/* ── Dark sections (bg-brand-navy → green) ── */
body.theme-public #appContent .bg-brand-navy {
  background: #14532d !important;
}
body.theme-public #appContent .bg-brand-navy h1,
body.theme-public #appContent .bg-brand-navy h2,
body.theme-public #appContent .bg-brand-navy h3,
body.theme-public #appContent .bg-brand-navy h4,
body.theme-public #appContent .bg-brand-navy h5,
body.theme-public #appContent .bg-brand-navy h6,
body.theme-public #appContent .bg-brand-navy .text-brand-navy {
  color: #f0fdf4 !important;
}
body.theme-public #appContent .bg-brand-navy .text-text-2 {
  color: rgba(255, 255, 255, 0.65) !important;
}
body.theme-public #appContent .bg-brand-navy .text-brand-accent {
  color: #e96e00 !important;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
body.theme-public .ch-topbar {
  background: #0f3d21 !important;
}
body.theme-public .ch-topbar,
body.theme-public .ch-topbar a {
  color: rgba(255, 255, 255, 0.85) !important;
}

body.theme-public .ch-main {
  background: #ffffff !important;
  border-bottom: 1px solid #e5e7eb !important;
}

body.theme-public .ch-weather,
body.theme-public .ch-login-btn {
  color: #1a1a1a !important;
}
body.theme-public .ch-cat-btn {
  color: #1a1a1a !important;
}

body.theme-public .ch-live-btn {
  background: #dc2626 !important;
  color: #fff !important;
}

body.theme-public .ch-nav-main {
  background: #14532d !important;
  border-top: none !important;
  border-bottom: none !important;
  height: 50px !important;
}
body.theme-public .ch-nav-main .ch-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
body.theme-public .ch-menu-main {
  height: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.theme-public .ch-menu-main > li {
  height: auto !important;
}
body.theme-public .ch-menu-main > li > a {
  color: rgba(255, 255, 255, 0.9) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  padding: 8px 16px !important;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  line-height: 1 !important;
}
body.theme-public .ch-menu-main > li > a.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: transparent !important;
}

/* Disable old pseudo-elements */
body.theme-public .ch-menu-main > li > a::before,
body.theme-public .ch-menu-main > li > a::after {
  content: none !important;
  display: none !important;
}

/* Ticker */
body.theme-public .ch-ticker {
  background: #ffffff !important;
  border-top: 1px solid #f0f0f0 !important;
  border-bottom: 2px solid #f0f0f0 !important;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
body.theme-public footer.bg-brand-navy {
  background: #14532d !important;
}

/* ==========================================================================
   PLAYER
   ========================================================================== */
body.theme-public #playerBar.player-bar {
  background: #0a0a0a !important;
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: none !important;
}

/* ==========================================================================
   ADMIN
   ========================================================================== */
body.theme-admin .bg-brand-navy {
  background: #14532d !important;
}
body.theme-admin .text-brand-navy {
  color: #1a1a1a !important;
}
body.theme-admin .bg-brand-accent {
  background-color: #e96e00 !important;
}
body.theme-admin .text-brand-accent {
  color: #e96e00 !important;
}
body.theme-admin .btn-primary {
  background: #e96e00 !important;
  color: #fff !important;
}

/* ==========================================================================
   Gradient Overrides (flatten to solid colors)
   ========================================================================== */
body.theme-public [class*="from-brand-navy"],
body.theme-admin [class*="from-brand-navy"] {
  background-color: #14532d !important;
}
body.theme-public [class*="from-brand-accent"],
body.theme-admin [class*="from-brand-accent"] {
  background-color: #e96e00 !important;
}
body.theme-public [class*="from-white"],
body.theme-admin [class*="from-white"] {
  background-color: #ffffff !important;
}
