/*
Theme Name: Bryce Goes Fishing
Author: Bryce
Description: Dark fishing-themed WordPress site for Bryce Goes Fishing YouTube channel. Solarized Dark palette with gold accents.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: bryce-goes-fishing
*/

/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --green:       #2aa198;
  --green-light: #38c4ba;
  --green-dark:  #001e26;
  --gold:        #b58900;
  --gold-light:  #d4a200;
  --water:       #268bd2;
  --bg:          #002b36;
  --card:        #073642;
  --card-hover:  #0d4455;
  --text:        #ffffff;
  --text-muted:  #93a1a1;
  --complete:    #2aa198;
  --complete-bg: #002d29;
  --medium:      #7a5a00;
  --hard:        #8b3000;
  --radius:      8px;
  --site-header-height: 56px;
  --site-nav-height:    44px;
}

body {
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  font-weight: 800;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--green-light); text-decoration: none; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; height: auto; display: block; }

/* ── Site header ──────────────────────────────────────────────────────────── */
.site-header {
  background: var(--green-dark);
  border-bottom: 3px solid var(--gold);
  padding: 0 20px;
  height: var(--site-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
}

.site-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold-light);
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-title:hover { color: var(--gold-light); }
.site-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  pointer-events: none;
  -webkit-touch-callout: none;
}

/* ── Hamburger button ─────────────────────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius);
  transition: background 0.15s;
}
.nav-toggle:hover { background: rgba(255,255,255,0.08); }

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: background 0.15s;
}
.nav-toggle:hover .hamburger-bar { background: var(--text); }

/* ── Site nav ─────────────────────────────────────────────────────────────── */
.site-nav {
  background: var(--green-dark);
  border-bottom: 1px solid var(--green);
}

.primary-menu {
  list-style: none;
  display: flex;
  align-items: stretch;
  padding: 0 12px;
  margin: 0;
}

.primary-menu > li {
  position: relative;
}

.primary-menu > li > a,
.primary-menu > li > span {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.primary-menu > li > a:hover,
.primary-menu > li:hover > a {
  color: var(--text);
}

.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-ancestor > a {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

/* ── Dropdown submenu ─────────────────────────────────────────────────────── */
.sub-menu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card);
  border: 1px solid var(--green);
  border-radius: 0 0 var(--radius) var(--radius);
  min-width: 180px;
  padding: 4px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 300;
}

.menu-item-has-children:hover .sub-menu,
.menu-item-has-children:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li a {
  display: block;
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.1s, background 0.1s;
}

.sub-menu li a:hover {
  color: var(--gold-light);
  background: var(--card-hover);
}

/* Submenu toggle button (injected by nav.js on mobile) */
.submenu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.15s;
}
.submenu-toggle:hover { color: var(--text); }

/* ── Main layout ──────────────────────────────────────────────────────────── */
.site-content {
  flex: 1;
  display: flex;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px;
  width: 100%;
}

.main-content { flex: 1; min-width: 0; }

.sidebar {
  width: 260px;
  flex-shrink: 0;
}

/* ── Carousel ─────────────────────────────────────────────────────────────── */
.carousel {
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--gold);
}

.carousel-track {
  display: grid;
  min-height: 460px;
}

.carousel-slide {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: var(--green-dark);
  background-size: cover;
  background-position: center;
  position: relative;
}
.carousel-slide.active { opacity: 1; z-index: 1; }

.carousel-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,30,38,0.88) 0%, rgba(0,30,38,0.45) 100%);
}

.carousel-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 56px 24px;
  max-width: 720px;
  width: 100%;
}

.carousel-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--gold-light);
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  margin-bottom: 12px;
  line-height: 1.15;
}

.carousel-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 28px;
  line-height: 1.5;
}

.hero-cta {
  display: inline-block;
  background: var(--green);
  color: var(--text);
  border: none;
  border-radius: var(--radius);
  padding: 11px 28px;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.hero-cta:hover { background: var(--green-light); color: var(--text); transform: scale(1.03); }

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,43,54,0.75);
  border: 1px solid var(--green);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  padding: 0;
}
.carousel-prev:hover,
.carousel-next:hover { background: var(--card); }
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--gold-light);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.carousel-dot.active { background: var(--gold-light); }

/* ── Channel stats section ────────────────────────────────────────────────── */
.channel-stats-section {
  background: var(--green-dark);
  border-bottom: 1px solid var(--green);
  padding: 40px 20px;
}

.channel-stats-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.channel-stats-left {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.stats-headline {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--gold-light);
  line-height: 1.2;
}

.sub-count-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.sub-count-number {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}

.sub-count-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ff0000;
  color: #fff;
  border-radius: var(--radius);
  padding: 11px 26px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.subscribe-btn:hover { background: #cc0000; color: #fff; transform: scale(1.03); }

.channel-stats-right {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Homepage sections ────────────────────────────────────────────────────── */
.home-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 16px;
}

.section-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--green-dark);
}

/* ── Latest video ─────────────────────────────────────────────────────────── */
.video-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 28px 16px;
}

.video-section-label {
  margin-bottom: 12px;
}

.video-embed-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 2px solid var(--green);
  background: var(--card);
}
.video-embed-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-placeholder {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Block editor content area ────────────────────────────────────────────── */
.homepage-editor-content {
  border-top: 1px solid var(--green-dark);
  border-bottom: 1px solid var(--green-dark);
}

/* ── Post cards & listings ────────────────────────────────────────────────── */
.post-card {
  background: var(--card);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  transition: border-color 0.15s;
}
.post-card:hover { border-color: var(--green-light); }

.post-card-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-card-body { padding: 16px 20px; }

.post-card-meta {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.post-card-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.post-card-title a { color: var(--text); text-decoration: none; }
.post-card-title a:hover { color: var(--gold-light); }

.post-card-excerpt {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.read-more {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-light);
  text-decoration: none;
  transition: color 0.15s;
}
.read-more:hover { color: var(--gold-light); }

/* Latest posts grid (homepage) */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* ── Single post ──────────────────────────────────────────────────────────── */
.post-header { margin-bottom: 24px; }

.post-title {
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--gold-light);
  margin-bottom: 8px;
  line-height: 1.2;
}

.post-meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.post-meta a { color: var(--green-light); }
.post-meta a:hover { color: var(--gold-light); }

.post-thumbnail {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--green);
}

.post-content {
  font-weight: 600;
  line-height: 1.7;
  font-size: 0.95rem;
}

.post-content h2, .post-content h3, .post-content h4 {
  color: var(--gold-light);
  margin: 24px 0 10px;
}

.post-content p { margin-bottom: 16px; }

.post-content a { color: var(--green-light); text-decoration: underline; }
.post-content a:hover { color: var(--gold-light); }

.post-content ul, .post-content ol {
  padding-left: 1.5em;
  margin-bottom: 16px;
}

.post-content blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  color: var(--text-muted);
  margin: 20px 0;
  font-style: italic;
}

.post-content img {
  border-radius: var(--radius);
  margin: 16px 0;
}

.post-content code {
  background: var(--card);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
}

.post-content pre {
  background: var(--card);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
  margin-bottom: 16px;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--green-dark);
}

.post-navigation a {
  background: var(--card);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  max-width: 45%;
}
.post-navigation a:hover { background: var(--card-hover); color: var(--text); }

/* ── Archive / search / 404 pages ─────────────────────────────────────────── */
.page-header {
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--green-dark);
}

.page-title {
  font-size: 1.4rem;
  color: var(--gold-light);
}

.archive-description {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 6px;
}

.not-found-message {
  text-align: center;
  padding: 48px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.not-found-message h2 {
  font-size: 2rem;
  color: var(--gold-light);
  margin-bottom: 12px;
}

/* Search form */
.search-form {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.search-field {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  color: var(--text);
  padding: 9px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
}
.search-field:focus { outline: 2px solid var(--gold); border-color: transparent; }

.search-submit {
  background: var(--green);
  border: none;
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 9px 18px;
  transition: background 0.15s;
}
.search-submit:hover { background: var(--green-light); }

/* ── Pagination ───────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 7px 13px;
  border-radius: var(--radius);
  border: 1px solid var(--green);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.pagination a:hover { background: var(--card); color: var(--text); }
.pagination .current { background: var(--green); border-color: var(--green-light); color: var(--text); }

/* ── Sidebar widgets ──────────────────────────────────────────────────────── */
.widget {
  background: var(--card);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}

.widget-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--green-dark);
}

.widget ul { list-style: none; }
.widget ul li { padding: 4px 0; border-bottom: 1px solid var(--green-dark); }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }
.widget ul li a:hover { color: var(--gold-light); }

/* ── WooCommerce ──────────────────────────────────────────────────────────── */
.woocommerce .page-title,
.woocommerce-page .page-title { color: var(--gold-light); margin-bottom: 20px; }

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce ul.products li.product {
  background: var(--card);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.1s;
}
.woocommerce ul.products li.product:hover {
  border-color: var(--green-light);
  transform: translateY(-2px);
}

.woocommerce ul.products li.product a img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
  padding: 12px 12px 4px;
}

.woocommerce ul.products li.product .price {
  display: block;
  padding: 0 12px 8px;
  color: var(--gold-light);
  font-size: 1rem;
  font-weight: 800;
}

.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: block;
  width: calc(100% - 24px);
  margin: 0 12px 12px;
  background: var(--green);
  border: none;
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 8px 16px;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover { background: var(--green-light); }

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info {
  background: var(--card);
  border-top-color: var(--green);
  color: var(--text);
  font-size: 0.9rem;
  border-radius: 0 0 var(--radius) var(--radius);
}

.woocommerce .woocommerce-error {
  background: var(--card);
  border-top-color: #cc4400;
  color: var(--text);
}

.woocommerce table.shop_table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.88rem;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--green-dark);
  color: var(--text);
  text-align: left;
}
.woocommerce table.shop_table th { color: var(--gold); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; }

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  background: var(--card);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 9px 12px;
  width: 100%;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus { outline: 2px solid var(--gold); border-color: transparent; }

.woocommerce form .form-row label { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 4px; display: block; }

/* Single product */
.woocommerce div.product .product_title { color: var(--gold-light); }
.woocommerce div.product p.price { color: var(--gold-light); font-size: 1.4rem; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--text-muted); font-size: 0.9rem; }

.milestone-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.milestone-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.milestone-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text);
}

.milestone-target {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.progress-track {
  position: relative;
  height: 14px;
  background: var(--bg);
  border: 1px solid var(--green-dark);
  border-radius: 99px;
  overflow: visible;
}

.progress-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s ease;
  min-width: 4px;
}

.progress-fill--gold {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  box-shadow: 0 0 8px rgba(181,137,0,0.4);
}

.progress-fill--green {
  background: linear-gradient(90deg, var(--green) 0%, var(--green-light) 100%);
  box-shadow: 0 0 8px rgba(42,161,152,0.4);
}

.progress-tick {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 20px;
  background: var(--green-dark);
  border: 1px solid var(--green);
  border-radius: 1px;
  transform: translateX(-50%);
}

.progress-milestone-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0 1px;
}

.milestone-stat {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ── Avatar poses ─────────────────────────────────────────────────────────── */
.pose-wrap {
  position: relative;
  display: inline-block;
  user-select: none;
  -webkit-user-select: none;
}

/* Background-image div — no <img> tag, kills right-click Save */
.pose-img {
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom center;
}

/* Transparent overlay captures right-clicks and drag events */
.pose-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: default;
}

/* 404 shrug */
.pose-404 .pose-img {
  width: 180px;
  height: 220px;
  margin: 0 auto;
}

/* Thumbs down — search/empty states */
.pose-empty .pose-img {
  width: 140px;
  height: 170px;
  margin: 0 auto;
}

/* Thumbs up — channel stats */
.pose-stats .pose-img {
  width: 130px;
  height: 160px;
}

/* Welcome — carousel fallback */
.pose-welcome .pose-img {
  width: 160px;
  height: 195px;
  margin: 0 auto;
}

/* ── Site footer ──────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--green-dark);
  border-top: 1px solid var(--green);
  padding: 20px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.site-footer a { color: var(--green-light); }
.site-footer a:hover { color: var(--gold-light); }

/* ── Comments ─────────────────────────────────────────────────────────────── */
.comments-area { margin-top: 40px; }

.comments-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--green-dark);
}

.comment-list { list-style: none; }

.comment-body {
  background: var(--card);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}

.comment-author { font-size: 0.88rem; color: var(--gold-light); margin-bottom: 4px; }
.comment-meta { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 8px; }
.comment-content { font-size: 0.88rem; font-weight: 600; color: var(--text); }

.comment-form input,
.comment-form textarea {
  background: var(--card);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 9px 12px;
  width: 100%;
  margin-bottom: 10px;
}
.comment-form input:focus,
.comment-form textarea:focus { outline: 2px solid var(--gold); border-color: transparent; }

.comment-form label { font-size: 0.78rem; color: var(--text-muted); display: block; margin-bottom: 4px; }

.comment-form input[type="submit"] {
  background: var(--green);
  border: none;
  cursor: pointer;
  font-weight: 800;
  transition: background 0.15s;
  width: auto;
}
.comment-form input[type="submit"]:hover { background: var(--green-light); }

/* ── Responsive: Mobile nav ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    border-bottom: none;
  }
  .site-nav[data-open="true"] {
    display: block;
    border-bottom: 1px solid var(--green);
  }

  .primary-menu {
    flex-direction: column;
    padding: 8px 0;
  }

  .primary-menu > li > a {
    padding: 12px 20px;
    border-bottom: none;
    border-left: 3px solid transparent;
  }
  .primary-menu > li.current-menu-item > a,
  .primary-menu > li.current-menu-ancestor > a {
    border-left-color: var(--gold);
    border-bottom-color: transparent;
  }

  .primary-menu > li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .primary-menu > li > a { flex: 1; }

  .submenu-toggle { display: inline-flex; align-items: center; padding: 12px 16px; }

  .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    border-top: 1px solid var(--green-dark);
    background: #041f28;
    width: 100%;
    display: none;
    padding: 0;
  }

  .menu-item-has-children:hover .sub-menu,
  .menu-item-has-children:focus-within .sub-menu { display: none; }

  .menu-item-has-children[data-expanded="true"] .sub-menu { display: block; }

  .sub-menu li a { padding: 10px 20px 10px 32px; }

  /* Layout */
  .site-content { flex-direction: column; padding: 16px 12px; }
  .sidebar { width: 100%; }

  .home-section { padding: 20px 12px; }
  .posts-grid { grid-template-columns: 1fr; }

  /* Carousel */
  .carousel-track { min-height: 320px; }
  .carousel-prev, .carousel-next { width: 36px; height: 36px; font-size: 1.4rem; }

  /* Channel stats */
  .channel-stats-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .channel-stats-right { min-width: 0; width: 100%; }

  .post-navigation { flex-direction: column; }
  .post-navigation a { max-width: 100%; }

  .woocommerce ul.products { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
