/* ============================================================
   AUDIO CHAIN HIFI — THEME VARIABLES
   To retheme the entire site, edit only this section.
   ============================================================ */
:root {
  /* ── Colors ── */
  --bg:           #141414;   /* Page background      */
  --bg-card:      #1e1e1e;   /* Article cards        */
  --bg-nav:       #161616;   /* Navigation bar       */
  --bg-sidebar:   #1a1a1a;   /* Sidebar background   */
  --accent:       #d4a94c;   /* Gold accent color    */
  --accent-hover: #f0c96a;   /* Accent on hover      */
  --text:         #f0f0f0;   /* Primary body text    */
  --text-muted:   #9a9a9a;   /* Dates, meta info     */
  --text-head:    #ffffff;   /* Headings             */
  --border:       #333333;   /* Borders, dividers    */
  --tag-bg:       #272727;   /* Category tag pill bg */

  /* ── Typography ── */
  --font-head:    'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --size-body:    18px;
  --size-sm:      15px;
  --line-body:    1.85;

  /* ── Layout ── */
  --max-width:    1200px;
  --article-width: 740px;
  --radius:       5px;
  --nav-height:   68px;
}

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

html { font-size: var(--size-body); scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: var(--line-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

/* ============================================================
   NETWORK TOP BAR
   ============================================================ */
.network-bar {
  background: #0e0e0e;
  border-bottom: 1px solid #222;
  padding: .4rem 1.5rem;
}

.network-bar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.network-bar__label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: .04em;
}

.network-bar a {
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: .04em;
  transition: color .2s;
}

.network-bar a:hover { color: var(--accent-hover); }

.network-bar__dot {
  color: #333;
  font-size: 11px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.nav__logo img { height: 38px; width: auto; }

.nav__logo-text {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--text-head);
  letter-spacing: .01em;
  white-space: nowrap;
}

.nav__logo-text span { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav__links a {
  color: var(--text-muted);
  font-size: var(--size-sm);
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: color .2s;
}

.nav__links a:hover { color: var(--accent); }

/* Hamburger (mobile) */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  flex-direction: column;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all .3s;
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg-nav);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 1.25rem;
    align-items: flex-start;
  }
  .nav__links.is-open { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #181808 0%, #221a08 50%, #181808 100%);
  border-bottom: 1px solid var(--border);
  padding: 5rem 1.5rem;
  text-align: center;
}

.hero__eyebrow {
  font-size: var(--size-sm);
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  color: var(--text-head);
  line-height: 1.2;
  max-width: 780px;
  margin: 0 auto 1.25rem;
}

.hero__subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* ============================================================
   AD SLOTS
   ============================================================ */
.ad-slot {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  text-align: center;
}

.ad-slot__label {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .4rem;
}

/* Placeholder styling (shown when AdSense not yet active) */
.ad-slot__placeholder {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: .5rem 1.5rem;
  color: var(--text-muted);
  font-size: 11px;
  display: inline-block;
  min-width: 200px;
  max-width: 100%;
}

@media (max-width: 768px) {
  .ad-slot__placeholder { min-width: 0; width: 100%; }
}

.ad-slot--inline { margin: 2rem auto; }
.ad-slot--sidebar { padding: 0; }

/* ============================================================
   LAYOUT WRAPPERS
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 2rem 0; }
.section--sm { padding: 1rem 0; }

.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.section__title {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--text-head);
}

.section__link {
  font-size: var(--size-sm);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .04em;
}

/* ============================================================
   ARTICLE CARDS (GRID)
   ============================================================ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1000px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .article-grid { grid-template-columns: 1fr; } }

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s;
}

.article-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.article-card__img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a1a, #252011);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.article-card__img img { width: 100%; height: 100%; object-fit: cover; }

.article-card__body {
  padding: 1.4rem 1.5rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card__tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 3px;
  margin-bottom: .85rem;
  border: 1px solid var(--border);
}

.article-card__title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--text-head);
  line-height: 1.35;
  margin-bottom: .65rem;
  flex: 1;
}

.article-card__title a { color: inherit; }
.article-card__title a:hover { color: var(--accent); }

.article-card__excerpt {
  font-size: var(--size-sm);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-size: 13px;
  color: var(--text-muted);
}

.article-card__meta-dot { color: var(--border); }

/* ============================================================
   FEATURED ARTICLE
   ============================================================ */
.featured {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 3rem;
}

@media (max-width: 768px) { .featured { grid-template-columns: 1fr; } }

.featured__img {
  background: linear-gradient(135deg, #1a1505, #2a1e05);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.featured__img img { width: 100%; height: 100%; object-fit: cover; }

.featured__body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

.featured__title {
  font-family: var(--font-head);
  font-size: 1.85rem;
  color: var(--text-head);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.featured__title a { color: inherit; }
.featured__title a:hover { color: var(--accent); }

.featured__excerpt {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: .97rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #0d0d0d;
  font-weight: 700;
  font-size: var(--size-sm);
  letter-spacing: .05em;
  padding: .65rem 1.4rem;
  border-radius: var(--radius);
  transition: background .2s;
  align-self: flex-start;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent-hover); color: #0d0d0d; }

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn--outline:hover { background: var(--accent); color: #0d0d0d; }

/* ============================================================
   ARTICLE PAGE LAYOUT (single)
   ============================================================ */
.article-layout {
  display: grid;
  grid-template-columns: var(--article-width) 1fr;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  align-items: start;
}

@media (max-width: 1040px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
}

.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.article-header__tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 3px;
  margin-bottom: 1.1rem;
  border: 1px solid var(--border);
}

.article-header__title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  color: var(--text-head);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.article-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  font-size: var(--size-sm);
  color: var(--text-muted);
  align-items: center;
}

.article-header__meta-dot { color: var(--border); }

/* ── Article prose ── */
.article-body {
  font-size: var(--size-body);
  line-height: var(--line-body);
  color: var(--text);
}

.article-body h2 {
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: var(--text-head);
  margin: 2.5rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

.article-body h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--text-head);
  margin: 2rem 0 .75rem;
}

.article-body p { margin-bottom: 1.5rem; }

.article-body ul,
.article-body ol {
  margin: 0 0 1.5rem 1.5rem;
}

.article-body li { margin-bottom: .4rem; }

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-style: italic;
}

.article-body strong { color: var(--text-head); font-weight: 600; }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: var(--size-sm);
}

.article-body th {
  background: var(--bg-card);
  color: var(--accent);
  font-weight: 600;
  text-align: left;
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-body td {
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  color: var(--text);
}

.article-body tr:nth-child(even) td { background: var(--bg-card); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.article-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-widget__title {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--text-head);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: .02em;
}

.sidebar-recent a {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.sidebar-recent a:last-child { border-bottom: none; }
.sidebar-recent a:hover { color: var(--accent); }
.sidebar-recent__title { font-size: var(--size-sm); line-height: 1.4; font-weight: 500; }
.sidebar-recent__meta  { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   AMAZON PRODUCT CARD
   ============================================================ */
.amazon-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin: 2rem 0;
  transition: border-color .2s;
}

.amazon-card:hover { border-color: var(--accent); }

.amazon-card__badge {
  background: #FF9900;
  color: #111;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .5rem;
  border-radius: 2px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: .1rem;
}

.amazon-card__content { flex: 1; }

.amazon-card__name {
  font-weight: 600;
  color: var(--text-head);
  margin-bottom: .4rem;
  font-size: 1rem;
  line-height: 1.4;
}

.amazon-card__desc {
  font-size: var(--size-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: .85rem;
}

.amazon-card__price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: .85rem;
}

.amazon-btn {
  display: inline-block;
  background: #FF9900;
  color: #111111;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .03em;
  padding: .5rem 1.1rem;
  border-radius: var(--radius);
  transition: background .2s, opacity .2s;
}

.amazon-btn:hover { background: #ffaa22; color: #111; }

.amazon-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-style: italic;
}

/* ============================================================
   LIST PAGE (category archive)
   ============================================================ */
.list-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.list-header__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}

.list-header__title {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--text-head);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  padding: 2.5rem 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  font-size: var(--size-sm);
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all .2s;
}

.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); color: #0d0d0d; border-color: var(--accent); font-weight: 700; }

/* ============================================================
   STATIC PAGES (about, contact, privacy)
   ============================================================ */
.static-page {
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.static-page h1 {
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: var(--text-head);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.static-page h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--text-head);
  margin: 2.5rem 0 1rem;
}

.static-page p  { margin-bottom: 1.25rem; color: var(--text); }
.static-page ul { margin: 0 0 1.25rem 1.5rem; }
.static-page li { margin-bottom: .4rem; color: var(--text); }

/* ── Contact form ── */
.contact-form { margin-top: 2rem; }

.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  font-size: var(--size-sm);
  font-weight: 600;
  color: var(--text-head);
  margin-bottom: .5rem;
  letter-spacing: .03em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--size-sm);
  outline: none;
  transition: border-color .2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea { resize: vertical; min-height: 140px; }

/* ============================================================
   COOKIE CONSENT
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #1a1a1a;
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 999;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform .4s ease;
}

.cookie-banner.is-visible { transform: translateY(0); }

.cookie-banner__text {
  font-size: var(--size-sm);
  color: var(--text-muted);
  flex: 1;
  min-width: 200px;
}

.cookie-banner__text a { color: var(--accent); }

.cookie-banner__actions {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-nav);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 500px) {
  .footer__grid { grid-template-columns: 1fr; }
}

.footer__brand p {
  font-size: var(--size-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: .75rem;
  max-width: 300px;
}

.footer__logo-text {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--text-head);
}

.footer__logo-text span { color: var(--accent); }

.footer__col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-head);
  margin-bottom: 1rem;
}

.footer__col ul { list-style: none; }

.footer__col li { margin-bottom: .6rem; }

.footer__col a {
  font-size: var(--size-sm);
  color: var(--text-muted);
  transition: color .2s;
}

.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer__disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 480px;
  text-align: right;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .footer__disclaimer { text-align: left; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Tag colors per category */
.tag--guide   { color: #7eb8e0; }
.tag--gear    { color: #e0b07e; }
.tag--reviews { color: #90e09e; }
.tag--feature { color: #c97eb8; }
