/*
Theme Name:        StreetBallNG Child
Theme URI:         https://streetballng.com
Description:       CSS-only child theme for StreetBallNG. Restyles the existing header, footer and layout in brand green/gold — no structural changes, no bleedthrough, keeps all data and templates intact.
Author:            StreetBallNG
Template:          streetballng-theme
Version:           3.0.0
Text Domain:       streetballng-child
*/

/* ════════════════════════════════════════════════════════════
   STREETBALLNG CHILD — CSS ONLY
   Restyles parent theme's existing elements:
   #top-bar, #site-header, #main-nav, #site-footer
   Brand: green #0F6E56 · gold #F0A500
   ════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Barlow:ital,wght@0,400;0,500;0,600;1,400&family=Barlow+Condensed:wght@500;600;700&display=swap');

:root {
  --sbn-green:       #0F6E56;
  --sbn-green-light: #1a9a72;
  --sbn-green-pale:  #e6f4f0;
  --sbn-gold:        #F0A500;
  --sbn-gold-light:  #ffc93c;
  --sbn-dark:        #080f0c;
  --sbn-surface:     #111a15;
  --sbn-text:        #1c2e25;
  --sbn-muted:       #5a7060;
  --sbn-border:      #d4e6dd;
  --sbn-white:       #ffffff;
  --sbn-off:         #f5f9f7;
  --sbn-font-display:'Oswald', sans-serif;
  --sbn-font-body:   'Barlow', sans-serif;
  --sbn-font-cond:   'Barlow Condensed', sans-serif;
}

/* ── BODY & TYPOGRAPHY (gentle, non-destructive) ──────────── */
body {
  font-family: var(--sbn-font-body);
  color: var(--sbn-text);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--sbn-font-display);
  letter-spacing: 0.01em;
}

/* ════════════════════════════════════════════════════════════
   TOP BAR  (#top-bar)
   ════════════════════════════════════════════════════════════ */
#top-bar {
  background: var(--sbn-dark) !important;
  border-bottom: 2px solid var(--sbn-gold) !important;
  padding: 7px 0 !important;
}
#top-bar .top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
#top-bar .top-bar-tagline {
  font-family: var(--sbn-font-cond);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}
#top-bar .top-bar-tagline .highlight {
  color: var(--sbn-gold);
  font-weight: 700;
}
#top-bar .top-bar-social {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
#top-bar .top-bar-social a {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  border-radius: 4px;
  transition: all 0.15s;
  font-size: 13px;
}
#top-bar .top-bar-social a:hover {
  color: var(--sbn-gold);
  background: rgba(255,255,255,0.06);
}

/* ════════════════════════════════════════════════════════════
   HEADER  (#site-header)
   ════════════════════════════════════════════════════════════ */
#site-header {
  background: var(--sbn-surface) !important;
  border-bottom: 3px solid var(--sbn-green) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.35) !important;
  position: sticky !important;
  top: 0;
  z-index: 1000;
}
#site-header .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
}

/* Logo */
#site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
#site-logo img {
  height: 52px !important;
  width: auto !important;
  object-fit: contain;
}

/* Navigation */
#main-nav ul,
#main-nav #primary-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
#main-nav li { position: relative; }
#main-nav a {
  font-family: var(--sbn-font-cond);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72) !important;
  padding: 8px 14px;
  border-radius: 4px;
  transition: all 0.15s;
  white-space: nowrap;
  display: block;
}
#main-nav a:hover,
#main-nav .current-menu-item > a,
#main-nav .current_page_item > a {
  color: var(--sbn-white) !important;
  background: rgba(15,110,86,0.35);
}

/* Submenu dropdowns */
#main-nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--sbn-surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 6px;
  min-width: 200px;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 1001;
}
#main-nav li:hover > ul { display: flex; }
#main-nav ul ul a { font-size: 12px; }

/* Hamburger */
#menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 9px 8px;
  cursor: pointer;
}
#menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--sbn-white);
  transition: all 0.2s;
}

/* ════════════════════════════════════════════════════════════
   FOOTER  (#site-footer)
   ════════════════════════════════════════════════════════════ */
#site-footer {
  background: var(--sbn-dark) !important;
  border-top: 3px solid var(--sbn-green) !important;
  color: rgba(255,255,255,0.6) !important;
  margin-top: 40px;
}
#site-footer .footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}
#site-footer .footer-about img {
  height: 48px;
  width: auto;
  margin-bottom: 14px;
}
#site-footer .footer-about p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin-bottom: 16px;
}
#site-footer .footer-social {
  display: flex;
  gap: 10px;
}
#site-footer .footer-social a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  color: rgba(255,255,255,0.5);
  transition: all 0.15s;
}
#site-footer .footer-social a:hover {
  border-color: var(--sbn-gold);
  color: var(--sbn-gold);
}
#site-footer .footer-col-title {
  font-family: var(--sbn-font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sbn-gold) !important;
  margin-bottom: 14px;
}
#site-footer .footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
#site-footer .footer-links li {
  margin-bottom: 8px;
}
#site-footer .footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.5) !important;
  transition: color 0.15s;
}
#site-footer .footer-links a:hover {
  color: var(--sbn-white) !important;
}
#site-footer .footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}
#site-footer .footer-bottom a {
  color: var(--sbn-gold) !important;
}

/* ════════════════════════════════════════════════════════════
   LINKS & BUTTONS (site-wide accent)
   ════════════════════════════════════════════════════════════ */
a { color: var(--sbn-green); }
a:hover { color: var(--sbn-green-light); }

.button, button:not(#menu-toggle):not(.sng-date-nav):not(.sng-date-btn),
input[type="submit"] {
  background: var(--sbn-green);
  border-color: var(--sbn-green);
}
.button:hover, input[type="submit"]:hover {
  background: var(--sbn-green-light);
  border-color: var(--sbn-green-light);
}

/* Post titles / links accent */
.entry-title a:hover,
.post-title a:hover { color: var(--sbn-green) !important; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE NAV
   ════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  #menu-toggle { display: flex !important; }
  #main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sbn-surface);
    border-bottom: 2px solid var(--sbn-green);
    padding: 12px;
    z-index: 999;
  }
  #main-nav.active,
  #main-nav.open,
  #site-header.menu-open #main-nav { display: block; }
  #main-nav ul,
  #main-nav #primary-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  #main-nav ul ul {
    position: static;
    display: flex;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,0.03);
    margin-left: 12px;
  }
  #site-header .header-inner { position: relative; }
}

@media (max-width: 600px) {
  #top-bar .top-bar-tagline {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
  }
  #site-footer .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 420px) {
  #site-footer .footer-top { grid-template-columns: 1fr; }
}
