/* =========================================================
   Funkatopia — main stylesheet
   Bold retro-groovy funk aesthetic. Mobile-first.
   ========================================================= */

:root {
  --bg: oklch(20% 0.045 300);
  --bg2: oklch(26% 0.06 302);
  --panel: oklch(24% 0.05 300);
  --cream: oklch(96% 0.02 80);
  --cream-dim: oklch(85% 0.03 80);
  --orange: oklch(72% 0.19 45);
  --pink: oklch(70% 0.19 350);
  --gold: oklch(80% 0.14 88);
  --line: oklch(40% 0.05 300);
  --dark-ink: oklch(18% 0.02 40);
  --radius: 16px;
  --radius-lg: 22px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
}

h1, h2, h3, .display {
  font-family: "Righteous", "Space Grotesk", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.3px;
  margin: 0 0 0.5em;
  color: var(--cream);
}

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

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--orange); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.skip-link {
  z-index: 100000;
  left: -9999px;
}
.skip-link:focus {
  left: 8px; top: 8px;
  width: auto; height: auto;
  padding: 12px 18px;
  background: var(--orange);
  color: var(--bg);
  border-radius: 8px;
  clip: auto;
}

/* ---------- layout helpers ---------- */
.section {
  padding: 40px 20px;
  max-width: var(--container);
  margin: 0 auto;
}
.section-alt { background: var(--bg2); max-width: none; }
.section-alt > * { max-width: var(--container); margin-left: auto; margin-right: auto; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title { font-size: 22px; margin: 0 0 20px; }
.link-arrow { font-weight: 700; font-size: 14px; white-space: nowrap; }

/* ---------- pills / tags ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.pill-solid { background: var(--orange); color: var(--bg); }
.pill-outline { background: transparent; border: 2px solid var(--cream); color: var(--cream); }
.pill-dark { background: var(--dark-ink); color: var(--cream); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tag-pink { background: var(--pink); color: var(--bg); }
.tag-gold { background: var(--gold); color: var(--bg); }
.tag-outline { background: transparent; border: 1px solid var(--line); color: var(--cream-dim); }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 50;
}
.site-header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-logo {
  font-family: "Righteous", sans-serif;
  font-size: 20px;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.site-logo:hover { color: var(--cream); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cream);
  margin: 0 auto;
}

.primary-nav {
  display: none;
  align-items: center;
  gap: 28px;
}
.primary-nav.is-open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  align-items: stretch;
  padding: 10px 20px 22px;
  gap: 14px;
}
.primary-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.primary-menu-list a {
  color: var(--cream);
  font-weight: 600;
  font-size: 15px;
}
.cart-icon { position: relative; color: var(--cream); display: inline-flex; }
.cart-count {
  position: absolute;
  top: -8px; right: -10px;
  background: var(--pink);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 6px;
}
.listen-live-btn { align-self: flex-start; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 20px 50px;
}
.hero-rings {
  position: absolute;
  right: -220px;
  top: -220px;
  opacity: 0.45;
  pointer-events: none;
}
.hero-rings svg { width: 460px; height: 460px; }
.hero-content { position: relative; z-index: 2; max-width: 660px; }
.hero-content h1 { font-size: 34px; line-height: 1.1; margin-bottom: 18px; }
.hero-lede { font-size: 16px; color: var(--cream-dim); margin: 0 0 26px; max-width: 480px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.radio-player-wrap { position: relative; z-index: 3; margin-top: 36px; max-width: 620px; }
.radio-widget {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.radio-widget-embed { width: 100%; }
.radio-widget-embed iframe { width: 100%; border: 0; border-radius: 12px; }
.radio-play-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.radio-widget-text { flex: 1; min-width: 0; }
.radio-widget-label {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 4px;
}
.radio-widget-title {
  font-size: 15px; font-weight: 600; color: var(--cream);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.eq-bars { display: flex; align-items: flex-end; gap: 4px; height: 28px; flex-shrink: 0; }
.eq-bars span {
  width: 4px;
  background: var(--pink);
  border-radius: 2px;
  animation: eq-bounce 1.1s ease-in-out infinite;
}
.eq-bars span:nth-child(1) { height: 40%; background: var(--pink); animation-delay: 0s; }
.eq-bars span:nth-child(2) { height: 90%; background: var(--gold); animation-delay: 0.15s; }
.eq-bars span:nth-child(3) { height: 60%; background: var(--orange); animation-delay: 0.3s; }
.eq-bars span:nth-child(4) { height: 100%; background: var(--pink); animation-delay: 0.45s; }
.eq-bars span:nth-child(5) { height: 35%; background: var(--gold); animation-delay: 0.6s; }
@keyframes eq-bounce {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .eq-bars span { animation: none; }
}

/* ---------- cards / grids ---------- */
.trending-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card {
  display: block;
  background: var(--panel);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  color: var(--cream);
}
.card:hover { color: var(--cream); border-color: var(--orange); }
.card-media { aspect-ratio: 16/10; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--orange), var(--pink)); }
.card-body { padding: 20px 22px; }
.card-feature h3 { font-size: 22px; }
.card-feature p { font-size: 14px; color: var(--cream-dim); margin: 0; line-height: 1.6; }
.card-small h3 { font-size: 16px; line-height: 1.35; margin: 0; }

.review-grid, .related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.review-card {
  display: block;
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  color: var(--cream);
}
.review-card:hover { color: var(--cream); border-color: var(--orange); }
.review-card .card-body { padding: 16px 18px; }
.review-card h3 { font-size: 15px; line-height: 1.3; margin: 0; }
.card-excerpt { font-size: 13px; color: var(--cream-dim); margin-top: 6px; }

.rating-badge {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold); font-size: 13px; font-weight: 700;
  margin-bottom: 8px;
}

.video-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.video-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}
.video-card img { width: 100%; height: 100%; object-fit: cover; }
.video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, oklch(15% 0.02 300 / 0.8), transparent 60%);
}
.video-title {
  position: absolute; left: 16px; bottom: 14px; right: 16px;
  font-weight: 600; font-size: 14px; color: var(--cream);
}
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: oklch(100% 0 0 / 0.85);
  display: flex; align-items: center; justify-content: center;
  color: var(--dark-ink);
}

.supporter-cta {
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--orange), var(--pink));
  padding: 36px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.supporter-cta h2 { color: var(--dark-ink); font-size: 22px; }
.supporter-cta p { color: oklch(22% 0.02 40 / 0.85); margin: 0; font-size: 15px; line-height: 1.6; }
.supporter-cta .pill-dark { align-self: flex-start; }

/* ---------- article ---------- */
.single-article, .single-page { max-width: 760px; margin: 0 auto; padding: 36px 20px 0; }
.article-header h1 { font-size: 30px; line-height: 1.15; }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.article-byline { display: flex; align-items: center; gap: 12px; margin: 18px 0 30px; }
.byline-avatar img { border-radius: 50%; }
.byline-name { font-size: 14px; font-weight: 700; }
.byline-meta { font-size: 13px; color: var(--cream-dim); }

.article-hero { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.article-hero img { border-radius: var(--radius-lg); }

.article-rating-wrap {
  max-width: 760px; margin: -28px auto 0; padding: 0 20px;
  display: flex; justify-content: flex-end; position: relative; z-index: 2;
}
.rating-block {
  background: var(--gold);
  border-radius: 14px;
  padding: 12px 18px;
  text-align: center;
  box-shadow: 0 10px 30px oklch(0% 0 0 / 0.35);
}
.rating-score { font-family: "Righteous"; font-size: 22px; color: var(--dark-ink); }
.rating-label { font-size: 9px; font-weight: 700; letter-spacing: 1px; color: var(--dark-ink); text-transform: uppercase; }

.article-body {
  max-width: 760px; margin: 0 auto; padding: 28px 20px 0;
  font-size: 17px; line-height: 1.75; color: var(--cream-dim);
}
.article-body p { margin: 0 0 22px; }
.article-body a { text-decoration: underline; }
.article-body blockquote {
  border-left: 4px solid var(--orange);
  margin: 30px 0;
  padding: 4px 0 4px 22px;
  font-family: "Righteous";
  font-size: 20px;
  line-height: 1.4;
  color: var(--cream);
}
.article-body img { border-radius: var(--radius); }
.article-body figure { margin: 24px 0; }
.article-body h2, .article-body h3 { color: var(--cream); margin-top: 1.4em; }

.article-footer {
  max-width: 760px; margin: 0 auto; padding: 20px 20px 40px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap; gap: 16px;
}
.article-tag-list { display: flex; gap: 8px; flex-wrap: wrap; }
.share-icons { display: flex; gap: 14px; }
.share-icons a { color: var(--cream-dim); }
.share-icons a:hover { color: var(--orange); }

.related-section { max-width: var(--container); }

/* ---------- comments ---------- */
.comments-area { max-width: 760px; margin: 0 auto; padding: 40px 20px 60px; }
.comments-title { font-size: 20px; margin-bottom: 20px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.comment-list ol.children { list-style: none; padding-left: 20px; }
.comment-reply-link { color: var(--gold); font-size: 13px; font-weight: 700; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--cream);
  font-family: inherit;
  margin-bottom: 14px;
}
.comment-form label { font-size: 13px; color: var(--cream-dim); display: block; margin-bottom: 6px; }

/* ---------- archive / search ---------- */
.archive-header { padding-bottom: 0; }
.archive-title { font-size: 28px; }
.archive-title span { color: var(--gold); }
.archive-desc { color: var(--cream-dim); margin-top: 8px; }
.not-found { text-align: center; padding: 80px 20px; }
.not-found h1 { font-size: 30px; margin: 14px 0; }
.not-found p { color: var(--cream-dim); margin-bottom: 24px; }

.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 10px;
  border-radius: 10px; border: 1px solid var(--line);
  color: var(--cream-dim); font-weight: 600; font-size: 14px;
}
.pagination .page-numbers.current { background: var(--orange); color: var(--bg); border-color: var(--orange); }
.pagination .page-numbers:hover { border-color: var(--orange); color: var(--cream); }

/* search form */
.search-form { display: flex; gap: 10px; max-width: 420px; margin: 20px auto 0; }
.search-form input[type="search"] {
  flex: 1; background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; color: var(--cream); font-family: inherit;
}
.search-form input[type="submit"] {
  background: var(--orange); color: var(--bg); border: none;
  border-radius: 10px; padding: 12px 18px; font-weight: 700; cursor: pointer;
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; }
.site-footer-inner {
  max-width: var(--container); margin: 0 auto; padding: 36px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
}
.footer-logo { font-family: "Righteous"; font-size: 18px; }
.footer-menu-list, .footer-widgets { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-menu-list a { color: var(--cream-dim); font-size: 14px; }
.footer-copy { font-size: 13px; color: var(--cream-dim); }

/* =========================================================
   WooCommerce — reskin default markup to match the brand.
   Deliberately does NOT override WooCommerce's PHP templates,
   only restyles the classes it outputs, so cart/checkout/
   AJAX behavior stays exactly as WooCommerce intends.
   ========================================================= */
.woocommerce-wrap { padding-top: 30px; }
.shop-hero { margin-bottom: 24px; }
.shop-hero h1 { font-size: 30px; }

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none !important; }
.woocommerce ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  clear: none !important;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0 0 18px;
  position: relative;
}
.woocommerce ul.products li.product img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 14px;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--cream);
  padding: 0 16px;
  margin: 0 0 6px;
}
.woocommerce ul.products li.product .price {
  padding: 0 16px;
  color: var(--cream);
  font-weight: 700;
  font-size: 16px;
}
.woocommerce ul.products li.product .price ins { color: var(--gold); text-decoration: none; }
.woocommerce ul.products li.product .price del { color: var(--cream-dim); opacity: 0.7; }
.woocommerce span.onsale {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--cream);
  color: var(--dark-ink);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-height: 0; line-height: 1.4;
}
.woocommerce a.button, .woocommerce button.button, .woocommerce .add_to_cart_button, .woocommerce #respond input#submit {
  background: var(--orange);
  color: var(--bg);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  border: none;
  font-family: inherit;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce #respond input#submit:hover {
  background: var(--pink);
  color: var(--bg);
}
.woocommerce ul.products li.product .button {
  margin: 12px 16px 0;
  width: calc(100% - 32px);
  text-align: center;
}
.woocommerce nav.woocommerce-pagination ul { border-color: var(--line); }
.woocommerce nav.woocommerce-pagination ul li { border-right-color: var(--line); }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  background: var(--panel); color: var(--cream-dim);
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--orange); color: var(--bg); }

.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .summary { color: var(--cream-dim); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--cream); }
.woocommerce form.cart .quantity input { background: var(--panel); border: 1px solid var(--line); color: var(--cream); border-radius: 8px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  background: var(--panel);
  border-top-color: var(--orange);
  color: var(--cream);
}
.woocommerce-message::before { color: var(--orange); }

/* ---------- responsive: tablet + up ---------- */
@media (min-width: 720px) {
  .site-header-inner { padding: 20px 32px; }
  .nav-toggle { display: none; }
  .primary-nav { display: flex; }
  .primary-menu-list { flex-direction: row; gap: 26px; }
  .listen-live-btn { align-self: auto; }

  .section { padding: 60px 32px; }
  .hero { padding: 90px 32px 70px; }
  .hero-content h1 { font-size: 48px; }
  .hero-rings { right: -140px; top: -180px; }
  .hero-rings svg { width: 640px; height: 640px; }

  .trending-grid { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .card-feature { grid-column: 1; grid-row: 1 / span 2; }
  .card-small:nth-child(2) { grid-column: 2; grid-row: 1; }
  .card-small:nth-child(3) { grid-column: 2; grid-row: 2; }
  .review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- responsive: desktop ---------- */
@media (min-width: 1040px) {
  .hero-content h1 { font-size: 58px; }
  .review-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .woocommerce ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
