/**
 * HELLO & MEOW — GUIDE MULTIMEDIA & NEO-BRUTALIST SEO STYLING
 * Enhances evergreen guide pages with matching anime hero illustrations,
 * interactive inline audio players, table of contents jump links, and FAQ styling.
 */

/* ── GUIDE HERO FIGURE ── */
.guide-hero-figure {
  margin: 1.75rem 0 2.5rem 0;
  border: 2.5px solid #0f172a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 6px 6px 0px #0f172a;
  background: #090d16;
  position: relative;
}

.guide-hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  border-bottom: 2px solid #0f172a;
}

.guide-hero-caption {
  padding: 0.85rem 1.25rem;
  background: var(--bg-secondary, #1e293b);
  color: var(--text-secondary, #94a3b8);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.guide-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #cf0f5c;
  color: #ffffff;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1.5px solid #0f172a;
}

/* ── TABLE OF CONTENTS (TOC) JUMP NAVIGATION ── */
.guide-toc {
  margin: 2rem 0 2.5rem 0;
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border: 2.5px solid #0f172a;
  border-radius: 14px;
  box-shadow: 4px 4px 0px #0f172a;
  color: #0f172a;
}

[data-theme="dark"] .guide-toc {
  background: #111827;
  color: #f1f5f9;
  border-color: #38bdf8;
  box-shadow: 4px 4px 0px #38bdf8;
}

.guide-toc-header {
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guide-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.guide-toc-link {
  min-height: var(--target); min-width: var(--target);
  font-size: 0.88rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
}

[data-theme="dark"] .guide-toc-link {
  color: #38bdf8;
}

.guide-toc-link:hover {
  color: #cf0f5c;
  transform: translateX(4px);
  text-decoration: underline;
}

/* ── INLINE AUDIO PLAYER CARD ── */
.guide-audio-box {
  margin: 1.75rem 0;
}

.gab-card {
  background: #0f172a;
  color: #ffffff;
  border: 2.5px solid #0f172a;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 4px 4px 0px #cf0f5c;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gab-card:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0px #38bdf8;
}

.gab-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.gab-play-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #cf0f5c;
  color: #ffffff;
  border: 2.5px solid #0f172a;
  box-shadow: 2.5px 2.5px 0px #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 1.35rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.gab-play-btn:hover {
  transform: scale(1.08);
  background: #be123c;
}

.gab-play-btn.playing {
  background: #047857;
  animation: pulsePlay 1.5s infinite alternate;
}

@keyframes pulsePlay {
  from { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  to { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}

.gab-info {
  flex: 1;
  min-width: 0;
}

.gab-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.gab-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gab-badge.fgc {
  background: #cf0f5c;
  color: #ffffff;
}

.gab-badge.hz {
  background: #0369a1;
  color: #ffffff;
}

.gab-badge.live {
  background: rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}

.gab-title {
  margin: 0 0 0.25rem 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.3;
}

.gab-desc {
  margin: 0;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.gab-progress-wrap {
  margin: 1rem 0 0.85rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gab-progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.gab-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #cf0f5c, #38bdf8);
  border-radius: 9999px;
  transition: width 0.1s linear;
}

.gab-time {
  font-size: 0.72rem;
  font-weight: 700;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
  min-width: 65px;
  text-align: right;
}

.gab-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gab-footer-hint {
  font-size: 0.75rem;
  font-weight: 700;
  color: #facc15;
}

.gab-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gab-btn {
  box-sizing: border-box; min-height: var(--target); min-width: var(--target);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.15s ease;
  border: 1.5px solid #0f172a;
}

.gab-btn.studio {
  background: #38bdf8;
  color: #0f172a;
}

.gab-btn.studio:hover {
  background: #0369a1;
  color: #ffffff;
  transform: translateY(-1px);
}

.gab-btn.translate {
  background: #ffffff;
  color: #0f172a;
}

.gab-btn.translate:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .gab-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .gab-play-btn {
    width: 48px;
    height: 48px;
    font-size: 1.15rem;
  }
  .gab-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .gab-actions {
    width: 100%;
  }
  .gab-btn {
    flex: 1;
    justify-content: center;
  }
}

/* ── FAQ ACCORDION SECTION ── */
.guide-faq-section {
  margin: 2.5rem 0;
}

.guide-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}

.guide-faq-item {
  background: var(--bg-secondary, #1e293b);
  border: 2px solid var(--border, #334155);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.guide-faq-item[open] {
  border-color: #38bdf8;
  box-shadow: 3px 3px 0px #38bdf8;
}

.guide-faq-question {
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary, #f8fafc);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
}

.guide-faq-question::-webkit-details-marker {
  display: none;
}

.guide-faq-question::after {
  content: "▾";
  font-size: 1.1rem;
  font-weight: 900;
  color: #cf0f5c;
  transition: transform 0.2s ease;
}

.guide-faq-item[open] .guide-faq-question::after {
  transform: rotate(180deg);
  color: #38bdf8;
}

.guide-faq-answer {
  padding: 0 1.25rem 1.25rem 1.25rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-secondary, #94a3b8);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.guide-faq-answer p {
  margin: 0.75rem 0 0 0;
}


/* Keep text readable on the dark audio cards even when a theme sets a global paragraph colour. */
.gab-card p,
.gab-card .gab-desc { color: #cbd5e1 !important; } /* themes set a global paragraph colour that is unreadable on this dark card */
.gab-card .gab-title { color: #ffffff !important; }
body[data-theme] .gab-card p,
body[data-theme] .gab-card .gab-desc { color: #cbd5e1 !important; }
