/* =================================================================
   style.css - Music Virgin | Articles Section
   Matches the main site visual identity.
   Separate from styles.css intentionally - article pages do not
   need tool-specific code (BPM, EQ, piano etc).
================================================================= */

/* --- Variables (identical to main site) ------------------------- */
:root {
  --bg:         #0a0a0c;
  --surface:    #111116;
  --panel:      #17171e;
  --border:     #2a2a38;
  --accent:     #e63946;
  --accent2:    #ff6b35;
  --gold:       #c9a84c;
  --text:       #cccccc;
  --muted:      #aaaaaa;
  --white:      #f4f4f8;
  --glow:       rgba(230, 57, 70, 0.35);
  --max-width:  1200px;
  --max-narrow: 780px;
  --radius:     4px;
}

/* --- Reset ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* --- Body -------------------------------------------------------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Mono', monospace;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Grain overlay - matches main site */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

/* --- Header ------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(10,10,12,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  color: var(--white);
  text-decoration: none;
}
.logo span { color: var(--accent); }

/* --- Hamburger --------------------------------------------------- */
.menu-wrap { position: relative; }

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.28s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Dropdown nav ------------------------------------------------ */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 200px;
  background: #15151c;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0,0,0,0.75);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.nav-dropdown a {
  display: block;
  padding: 0.85rem 1.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover { background: var(--panel); color: var(--accent); padding-left: 1.6rem; }
.nav-dropdown a.nav-active {
  color: var(--accent);
  background: var(--panel);
  padding-left: 1.6rem;
  border-left: 2px solid var(--accent);
}

/* --- Footer ------------------------------------------------------ */
/* Footer styles moved to bottom of file */

/* --- Layout ------------------------------------------------------ */
.site-main {
  flex: 1;
  position: relative;
  z-index: 1;
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
  width: 100%;
}
.container--narrow {
  max-width: var(--max-narrow);
}

/* --- Page hero --------------------------------------------------- */
.page-hero {
  margin-bottom: 2.5rem;
}
.page-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.page-hero h1 span { color: var(--accent); }
.page-hero p {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Article grid ------------------------------------------------ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.article-card {
  background: var(--surface);
  transition: background 0.15s;
}
.article-card:hover { background: var(--panel); }
.article-card a { display: block; }
.article-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
}
.article-card__body {
  padding: 1.4rem;
  border-left: 3px solid transparent;
  transition: border-left-color 0.2s;
}
.article-card:hover .article-card__body {
  border-left-color: var(--accent);
}
.article-card__cat {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.article-card__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  line-height: 1.15;
  margin-bottom: 0.65rem;
}
.article-card__title a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.15s;
  display: inline;
}
.article-card__title a:hover { color: var(--accent); }
.article-card__excerpt {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__date {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.55;
}

/* --- Pagination -------------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}
.pagination__btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  transition: border-color 0.2s, color 0.2s;
}
.pagination__btn:hover { border-color: var(--accent); color: var(--accent); }
.pagination__info {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.55;
}

/* --- Breadcrumb -------------------------------------------------- */
.breadcrumb { margin-bottom: 2rem; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  list-style: none;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb ol li + li::before {
  content: '/';
  margin-right: 0.3rem;
  opacity: 0.4;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--accent); }

/* --- Single article ---------------------------------------------- */
.article-single__header { margin-bottom: 2rem; }
.article-single__header h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.07em;
  color: var(--white);
  line-height: 1.1;
  margin: 0.5rem 0 1rem;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.65;
}
.article-single__hero { margin: 0 0 2.5rem; }
.article-single__hero img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}

/* --- Article body typography ------------------------------------- */
.article-body {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text);
}
.article-body h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.75rem;
  letter-spacing: 0.08em;
  color: var(--white);
  margin: 2.5rem 0 0.1rem;
  line-height: 1.1;
}
.article-body h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: var(--white);
  margin: 2rem 0 0.1rem;
  line-height: 1.2;
}
.article-body h4 {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin: 1.5rem 0 0.1rem;
}
.article-body p { margin-bottom: 0.6rem; color: var(--muted); }
/* Collapse empty paragraphs Quill inserts as spacers */
.article-body p:empty,
.article-body p > br:only-child { display: none; }
.article-body p + p { margin-top: 0; }
.article-body strong { color: var(--white); }
.article-body em { font-style: italic; }

.article-body ul,
.article-body ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0 0 1.4rem;
}
.article-body ul li,
.article-body ol li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.7;
}
.article-body ul li::before {
  content: '\203a';
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1.4;
  flex-shrink: 0;
  font-weight: bold;
}
.article-body ol { counter-reset: ol-counter; }
.article-body ol li { counter-increment: ol-counter; }
.article-body ol li::before {
  content: counter(ol-counter) '.';
  color: var(--accent);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  line-height: 1.35;
  flex-shrink: 0;
  min-width: 1.2rem;
}
.article-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(230,57,70,0.35);
  transition: border-color 0.2s, opacity 0.2s;
}
.article-body a:hover { opacity: 0.8; border-color: var(--accent); }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.4rem;
  margin: 1.8rem 0;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--muted);
}
.article-body img {
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
  margin: 1.5rem 0;
}
.article-body code {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 0.15em 0.45em;
  border-radius: 2px;
  font-size: 0.85em;
  font-family: 'Space Mono', monospace;
  color: var(--gold);
}
.article-body pre {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.4rem;
}
.article-body pre code { border: none; padding: 0; background: none; }

/* --- FAQ section (accordion) ------------------------------------- */
.faq-section { margin-top: 3rem; }
.faq-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.faq-heading span { color: var(--accent); }
.faq-subheading {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.6rem;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Space Mono', monospace;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  color: var(--white);
  transition: background 0.15s, color 0.15s;
}
.faq-question:hover { background: var(--panel); color: var(--accent); }
.faq-question[aria-expanded="true"] { color: var(--accent); background: var(--panel); }
.faq-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.2rem;
}
.faq-answer.open {
  max-height: 600px;
  padding: 0 1.2rem 1.1rem;
}
.faq-answer p {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
  margin: 0;
}

/* --- Article footer ---------------------------------------------- */
.article-single__footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* --- Buttons ----------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #c1121f; box-shadow: 0 0 20px var(--glow); }
.btn--secondary { background: var(--panel); color: var(--text); border: 1px solid var(--border); }
.btn--secondary:hover { border-color: var(--accent); color: var(--accent); }

/* --- Empty state ------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 5rem 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.55;
}

/* --- Responsive -------------------------------------------------- */
@media (max-width: 768px) {
  .site-header { padding: 0 1.2rem; }
  .container { padding: 2rem 1.2rem 3rem; }
  .article-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 2rem; }
}
@media (max-width: 480px) {
  .article-single__header h1 { font-size: 1.8rem; }
  .article-meta { gap: 0.75rem; }
  .faq-question { font-size: 0.8rem; }
}

/* --- Related articles -------------------------------------------- */
.related-articles {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.related-articles__heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1;
}
.related-articles__heading span { color: var(--accent); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 640px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* =================================================================
   FOOTER - matches main site footer.js injected styles
================================================================= */

footer.site-footer {
  background: #0d0d10;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 3rem 2rem 2.5rem;
  font-family: inherit;
}

.footer-inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-col-tools { flex: 0 0 auto; }

.footer-col-brand {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.footer-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.footer-brand-name { font-size: 1.6rem; }
.footer-accent { color: #e94560; }

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li { margin-bottom: 0.55rem; }

.footer-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.5;
  transition: color 0.2s;
}

.footer-links a:hover { color: #e94560; }

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
}

a.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.25s, background 0.25s, box-shadow 0.25s, border-color 0.25s, transform 0.18s;
}

a.footer-social:hover { transform: translateY(-2px); }

.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding: 1.5rem 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.04em;
  line-height: 1.8;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding: 0;
  }
  .footer-col-tools {
    width: 100%;
    text-align: left;
  }
  .footer-col-brand {
    margin-left: 0;
    width: 100%;
    align-items: center;
    text-align: center;
  }
  .footer-links--right li { text-align: center; }
  .footer-socials { justify-content: center; }
  .footer-bottom { padding: 1.5rem 0 0; }
}
