/* ============================================================
   DcSoundOp Theme — main.css
   Dark industrial pro audio aesthetic
   ============================================================ */

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

:root {
  --bg:       #111213;
  --bg2:      #1a1c1e;
  --bg3:      #222527;
  --border:   rgba(255,255,255,0.08);
  --border2:  rgba(255,255,255,0.14);
  --amber:    #f5a623;
  --amber2:   #ffbe4d;
  --red:      #e8412b;
  --text:     #e8e4dc;
  --muted:    #8a8680;
  --tag-bg:   rgba(245,166,35,0.12);
  --tag-col:  #f5a623;
  --card-bg:  #1a1c1e;
  --radius:   6px;
  --font-disp: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --content-width: 1100px;
  --post-width: 780px;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
p { margin-bottom: 1.25rem; }

/* ── UTILITY ── */
.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

.post-wrap {
  max-width: var(--post-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── SIGNAL METER BAR ── */
.meter-bar {
  height: 3px;
  background: linear-gradient(90deg, #e8412b 0%, #f5a623 40%, #a8d444 70%, #4db8a0 100%);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ── SITE HEADER ── */
.site-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 3px;
  z-index: 99;
}

.site-header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
}

.site-logo {
  font-family: var(--font-disp);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  text-transform: uppercase;
  white-space: nowrap;
}
.site-logo span { color: var(--amber); }
.site-logo:hover { color: var(--text); }

/* Primary nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex-wrap: wrap;
}

.primary-nav li { position: relative; }

.primary-nav > li > a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  padding: 6px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
  display: block;
}
.primary-nav > li > a:hover,
.primary-nav > li.current-menu-item > a {
  color: var(--text);
  border-color: var(--border2);
}

/* Dropdown */
.primary-nav li ul {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  min-width: 220px;
  padding: 6px;
  list-style: none;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.primary-nav li:hover > ul { display: block; }
.primary-nav li ul li a {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 4px;
  transition: background 0.12s, color 0.12s;
}
.primary-nav li ul li a:hover {
  background: var(--bg3);
  color: var(--text);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border2);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
}

/* Search */
.header-search {
  display: flex;
  align-items: center;
}
.header-search input[type="search"] {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 5px 10px;
  width: 160px;
  outline: none;
  transition: border-color 0.15s, width 0.2s;
}
.header-search input:focus {
  border-color: var(--amber);
  width: 200px;
}
.header-search input::placeholder { color: var(--muted); }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--amber);
  color: #111;
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius);
  display: inline-block;
  transition: background 0.15s, transform 0.1s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--amber2); transform: translateY(-1px); color: #111; }

.btn-ghost {
  color: var(--text);
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 11px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border2);
  display: inline-block;
  transition: border-color 0.15s, color 0.15s, transform 0.1s;
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-1px); }

.btn-amazon {
  background: var(--amber);
  color: #111;
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--radius);
  display: inline-block;
  transition: background 0.15s;
}
.btn-amazon:hover { background: var(--amber2); color: #111; }

/* ── SECTION TITLES ── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 12px;
}

.section-title {
  font-family: var(--font-disp);
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--amber);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-link {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--amber);
  white-space: nowrap;
}
.section-link:hover { opacity: 0.75; }

/* ── TAGS / BADGES ── */
.post-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--tag-col);
  background: var(--tag-bg);
  display: inline-block;
  padding: 2px 7px;
  border-radius: 3px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── CARD GRID ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.post-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
}

.post-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg3);
}

.post-card-body {
  padding: 14px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-title {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--text);
  flex: 1;
}
.post-card:hover .post-card-title { color: var(--amber); }

.post-card-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 10px;
}

/* ── ARCHIVE PAGE ── */
.archive-header {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.archive-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--amber);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.archive-title {
  font-family: var(--font-disp);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin-bottom: 10px;
}

.archive-desc {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 560px;
}

.archive-section { padding: 48px 0 64px; }

/* Pagination */
.pagination {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 8px 14px;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--muted);
  transition: border-color 0.15s, color 0.15s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  border-color: var(--amber);
  color: var(--amber);
}

/* ── SINGLE POST ── */
.post-header {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}

.post-header-inner {
  max-width: var(--post-width);
  margin: 0 auto;
  padding: 0 24px;
}

.post-categories {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.post-cat-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--tag-col);
  background: var(--tag-bg);
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-title {
  font-family: var(--font-disp);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.post-meta-row {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--muted);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.post-meta-row span::before {
  content: '// ';
  color: var(--border2);
}

/* Featured image */
.post-featured-image {
  width: 100%;
  max-width: var(--post-width);
  margin: 0 auto 36px;
  padding: 0 24px;
}
.post-featured-image img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* Post content */
.post-content {
  max-width: var(--post-width);
  margin: 0 auto;
  padding: 0 24px;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  font-family: var(--font-disp);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text);
  margin: 2rem 0 0.75rem;
  line-height: 1.2;
}
.post-content h2 { font-size: 1.6rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.post-content h3 { font-size: 1.25rem; color: var(--amber); }
.post-content h4 { font-size: 1rem; }

.post-content p { color: #c8c4bc; line-height: 1.8; margin-bottom: 1.3rem; }

.post-content a {
  color: var(--amber);
  border-bottom: 1px solid rgba(245,166,35,0.3);
  transition: border-color 0.15s;
}
.post-content a:hover { border-color: var(--amber); }

.post-content ul,
.post-content ol {
  margin: 0 0 1.3rem 1.5rem;
  color: #c8c4bc;
  line-height: 1.8;
}
.post-content li { margin-bottom: 0.4rem; }

.post-content blockquote {
  border-left: 3px solid var(--amber);
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  background: var(--bg2);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  font-style: italic;
}

.post-content img {
  border-radius: 6px;
  border: 1px solid var(--border);
  margin: 1.5rem 0;
}

.post-content iframe,
.post-content .wp-block-embed {
  margin: 1.5rem 0;
}

/* Make YouTube embeds responsive */
.post-content .wp-block-embed__wrapper,
.post-content .video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.post-content .wp-block-embed__wrapper iframe,
.post-content .video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.post-content pre,
.post-content code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
}
.post-content pre { padding: 1rem 1.25rem; overflow-x: auto; margin-bottom: 1.3rem; }
.post-content code { padding: 0.1em 0.4em; }
.post-content pre code { background: none; border: none; padding: 0; }

/* Affiliate callout — style for links with class "affiliate-link" */
.affiliate-box {
  background: linear-gradient(135deg, #1a1510 0%, #1e1a10 100%);
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.affiliate-box-text {
  font-family: var(--font-disp);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.affiliate-box-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 3px;
}

/* Post footer / related posts */
.post-footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding-top: 40px;
  max-width: var(--post-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.related-posts { padding: 48px 0 64px; background: var(--bg2); margin-top: 48px; }
.related-posts .wrap {}

/* ── BRANDS STRIP ── */
.brands-strip {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.brands-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.brands-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.brand-pill {
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--border2);
  border-radius: 40px;
  color: var(--text);
  transition: border-color 0.15s, color 0.15s;
}
.brand-pill:hover { border-color: var(--amber); color: var(--amber); }

/* ── SHOP BANNER ── */
.shop-banner {
  background: linear-gradient(135deg, #1a1510 0%, #1e1a10 100%);
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: 10px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 0 0 56px;
}
.shop-banner-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--amber);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.shop-banner-title {
  font-family: var(--font-disp);
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 8px;
}
.shop-banner-desc {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 380px;
}

/* ── SITE FOOTER ── */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-name {
  font-family: var(--font-disp);
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.footer-brand-name span { color: var(--amber); }

.footer-brand-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.footer-col-title {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--amber); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.footer-affiliate {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  text-align: right;
}

/* ── WIDGETS ── */
.widget {
  margin-bottom: 32px;
}
.widget-title {
  font-family: var(--font-disp);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  border-left: 3px solid var(--amber);
  padding-left: 10px;
  margin-bottom: 14px;
}
.widget ul { list-style: none; }
.widget ul li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
}
.widget ul li a { color: var(--muted); transition: color 0.15s; }
.widget ul li a:hover { color: var(--amber); }

/* ── SEARCH RESULTS ── */
.search-header { padding: 40px 0 32px; }
.search-title {
  font-family: var(--font-disp);
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
}
.search-title em { font-style: normal; color: var(--amber); }

/* ── 404 ── */
.not-found {
  text-align: center;
  padding: 80px 24px;
}
.not-found-code {
  font-family: var(--font-disp);
  font-size: 8rem;
  font-weight: 800;
  color: var(--bg3);
  line-height: 1;
  margin-bottom: 16px;
}
.not-found-msg {
  font-family: var(--font-disp);
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.not-found-sub { color: var(--muted); margin-bottom: 28px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shop-banner { flex-direction: column; text-align: center; }
  .shop-banner-desc { max-width: 100%; }
}

@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .primary-nav { display: none; }
  .menu-toggle { display: block; }
  .primary-nav.open { display: flex; flex-direction: column; position: fixed; inset: 59px 0 0; background: var(--bg2); padding: 16px; overflow-y: auto; z-index: 98; }
  .primary-nav.open li ul { display: block; position: static; border: none; box-shadow: none; padding-left: 12px; }
  .post-title { font-size: 1.8rem; }
  .header-search { display: none; }
  .shop-banner { padding: 24px 20px; }
}
