/* ═════════════════════════════════════════
   GAKUYA JAZZ — Sophisticated Dark Theme
   ジャズ専用 CSS（他カテゴリに影響なし）
   ═════════════════════════════════════════ */

body.jazz-theme {
  background: #0d0d0d;
  color: #e8e0d0;
}

/* ─── Texture Overlay ─── */
body.jazz-theme::before {
  opacity: 0.08;
}

/* ═════════════════════════════════════════
   NAVIGATION
   ═════════════════════════════════════════ */

body.jazz-theme .navbar {
  background: #111;
  border-bottom: 1px solid #2a2a2a;
}

body.jazz-theme .nav-logo {
  color: #e8e0d0;
  letter-spacing: 0.05em;
}

body.jazz-theme .nav-logo-text > span {
  color: #c4a84f;
}

body.jazz-theme .hamburger span {
  background: #e8e0d0;
}

/* ─── Sidebar ─── */
body.jazz-theme .sidebar {
  background: linear-gradient(180deg, #111 0%, #151515 100%);
  border-left: 1px solid #2a2a2a;
}

body.jazz-theme .sidebar-title {
  color: #e8e0d0;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.1em;
}

body.jazz-theme .sidebar-label {
  color: #c4a84f;
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

body.jazz-theme .sidebar a {
  color: #d4c4b8;
  border-bottom: 1px solid #1a1a1a;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

body.jazz-theme .sidebar a:hover {
  color: #c4a84f;
}

body.jazz-theme .sidebar-close {
  color: #888;
}

body.jazz-theme .sidebar-close:hover {
  color: #c4a84f;
}

/* ─── Overlay ─── */
body.jazz-theme .nav-overlay {
  background: rgba(0, 0, 0, 0.8);
}

/* ═════════════════════════════════════════
   MAIN CONTENT
   ═════════════════════════════════════════ */

body.jazz-theme main,
body.jazz-theme .category-section {
  background: #0d0d0d;
  color: #e8e0d0;
}

body.jazz-theme .divider {
  background: linear-gradient(90deg, transparent, #2a2a2a, transparent);
}

/* ─── Term Header ─── */
body.jazz-theme .term-header {
  border: 1px solid #1e1e1e;
  background: linear-gradient(135deg, rgba(196, 168, 79, 0.04) 0%, transparent 100%);
}

body.jazz-theme .term-category {
  color: #c4a84f;
  border: 1px solid #2a2a2a;
  background: rgba(196, 168, 79, 0.08);
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

body.jazz-theme h1 {
  color: #e8e0d0;
  font-weight: 300;
  font-size: clamp(2.5rem, 8vw, 3.5rem);
}

body.jazz-theme h2,
body.jazz-theme h3 {
  color: #c4a84f;
  font-weight: 400;
}

body.jazz-theme p {
  color: #e8e0d0;
  line-height: 1.6;
}

/* ─── Core Definition ─── */
body.jazz-theme .core-def {
  background: rgba(196, 168, 79, 0.04);
  border: 1px solid #1e1e1e;
  border-left: 3px solid #c4a84f;
  padding: 1.5rem;
}

body.jazz-theme .definition-main {
  color: #e8e0d0;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ─── Two Column Sections ─── */
body.jazz-theme .two-col {
  gap: 2rem;
}

body.jazz-theme .col-section {
  background: rgba(196, 168, 79, 0.02);
  border: 1px solid #1a1a1a;
  border-left: 3px solid #c4a84f;
  padding: 1.5rem;
}

body.jazz-theme .col-section h3 {
  color: #c4a84f;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

body.jazz-theme .col-section p {
  color: #d4c4b8;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ─── Section Label ─── */
body.jazz-theme .section-label {
  color: #c4a84f;
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-bottom: 2px solid #2a2a2a;
  padding-bottom: 0.8rem;
  margin-bottom: 1.5rem;
}

/* ═════════════════════════════════════════
   CATEGORY LIST (INDEX)
   ═════════════════════════════════════════ */

body.jazz-theme .alpha-tabs {
  border-bottom: 1px solid #1a1a1a;
  margin: 2rem auto 3rem;
  gap: 1rem;
}

body.jazz-theme .alpha-tab {
  color: #888;
  border: 1px solid #2a2a2a;
  background: transparent;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.6rem 1rem;
  transition: all 0.3s;
}

body.jazz-theme .alpha-tab:hover,
body.jazz-theme .alpha-tab.active {
  color: #c4a84f;
  border-color: #c4a84f;
  background: rgba(196, 168, 79, 0.1);
}

/* ─── Alphabet Section Headers ─── */
body.jazz-theme .az-section {
  margin-bottom: 2rem;
}

body.jazz-theme .az-letter {
  color: #c4a84f;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #2a2a2a;
}

body.jazz-theme .term-list {
  display: flex;
  flex-direction: column;
}

/* ─── Term Rows ─── */
body.jazz-theme .term-row {
  display: flex;
  gap: 1.5rem;
  padding: 1rem;
  border-bottom: 1px solid #1a1a1a;
  color: #d4c4b8;
  transition: background 0.3s;
  align-items: flex-start;
  background: #111;
}

body.jazz-theme .term-row:last-child {
  border-bottom: none;
}

body.jazz-theme .term-row:hover {
  background: rgba(196, 168, 79, 0.12);
}

body.jazz-theme .row-name {
  color: #c4a84f;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  font-weight: 600;
  min-width: 150px;
  flex-shrink: 0;
}

body.jazz-theme .row-reading {
  color: #d4c4b8;
  font-family: 'Noto Serif JP', serif;
  font-size: 0.85rem;
  min-width: 120px;
  flex-shrink: 0;
}

body.jazz-theme .row-desc {
  color: #a09880;
  font-family: 'Noto Serif JP', serif;
  font-size: 0.8rem;
  flex: 1;
  line-height: 1.5;
}

body.jazz-theme .row-cat {
  color: #888;
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 100px;
  text-align: right;
  flex-shrink: 0;
}

/* ═════════════════════════════════════════
   RELATED SECTION
   ═════════════════════════════════════════ */

body.jazz-theme .related-section {
  border-top: 1px solid #2a2a2a;
  padding-top: 2rem;
  margin-top: 2rem;
}

body.jazz-theme .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

body.jazz-theme .tag {
  color: #d4c4b8;
  border: 1px solid #2a2a2a;
  background: rgba(196, 168, 79, 0.05);
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.8rem;
  transition: all 0.3s;
  text-decoration: none;
}

body.jazz-theme .tag:hover {
  color: #c4a84f;
  border-color: #c4a84f;
  background: rgba(196, 168, 79, 0.15);
}

/* ═════════════════════════════════════════
   WORKS SECTION
   ═════════════════════════════════════════ */

body.jazz-theme .works-section {
  margin-top: 2rem;
}

body.jazz-theme .works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

body.jazz-theme .work-card {
  background: #111;
  border: 1px solid #1e1e1e;
  border-left: 3px solid #c4a84f;
  padding: 1rem 1.2rem;
}

body.jazz-theme .work-composer {
  color: #c4a84f;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

body.jazz-theme .work-title {
  color: #e8e0d0;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

body.jazz-theme .work-detail {
  color: #a09880;
  font-size: 0.8rem;
  line-height: 1.5;
}

/* ═════════════════════════════════════════
   SVG VISUALIZATIONS
   ═════════════════════════════════════════ */

body.jazz-theme svg {
  filter: invert(0.05) brightness(1.1);
}

/* ═════════════════════════════════════════
   FOOTER
   ═════════════════════════════════════════ */

body.jazz-theme footer {
  background: linear-gradient(180deg, #111 0%, #0d0d0d 100%);
  border-top: 1px solid #2a2a2a;
  color: #888;
}

body.jazz-theme .footer-text {
  color: #888;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* ═════════════════════════════════════════
   RESPONSIVE
   ═════════════════════════════════════════ */

@media (max-width: 768px) {
  body.jazz-theme .term-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  body.jazz-theme .row-name {
    min-width: auto;
  }

  body.jazz-theme .row-reading {
    min-width: auto;
  }

  body.jazz-theme .row-cat {
    min-width: auto;
    text-align: left;
  }

  body.jazz-theme h1 {
    font-size: 2rem;
  }

  body.jazz-theme .col-section {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  body.jazz-theme main,
  body.jazz-theme .category-section {
    padding: 5.5rem 0.8rem 1.5rem;
  }

  body.jazz-theme h1 {
    font-size: 1.5rem;
  }

  body.jazz-theme .term-row {
    padding: 0.8rem;
    gap: 0.3rem;
  }

  body.jazz-theme .row-name {
    font-size: 0.85rem;
  }

  body.jazz-theme .row-reading {
    font-size: 0.75rem;
  }

  body.jazz-theme .row-desc {
    font-size: 0.7rem;
  }
}
