/* ==========================================================================
   MYTHICS CREATURE DETAIL — Editorial Layout, Power Profile, Evidence
   ========================================================================== */

.detail-view {
  padding: 2.5rem 0 5rem;
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.detail-breadcrumb a {
  color: var(--text-secondary);
}

.detail-breadcrumb a:hover {
  color: var(--gold-500);
}

/* Detail Hero Section (2 Columns) */
.detail-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

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

/* Left: Imagery Column */
.detail-image-box {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.detail-primary-img {
  width: 100%;
  aspect-ratio: 4 / 3.5;
  object-fit: cover;
  display: block;
}

.detail-image-meta {
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.detail-image-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Right: Header Column */
.detail-header-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-badge-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.detail-canonical-name {
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.detail-original-script {
  font-size: 1.1rem;
  color: var(--gold-500);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.detail-short-summary {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Quick Stats Bar */
.detail-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.5rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
}

.spec-cell {
  display: flex;
  flex-direction: column;
}

.spec-key {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.spec-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.detail-header-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==================== MODE SWITCHER (Story vs Expert) ==================== */
.mode-switch-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem;
  border-radius: var(--radius-full);
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.mode-btn {
  flex: 1;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mode-btn.active {
  background: var(--gold-500);
  color: #0c0d12;
  box-shadow: 0 2px 10px var(--gold-glow);
}

/* ==================== STORY MODE (TL;DR) ==================== */
.story-mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.story-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--gold-500);
}

.story-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-500);
  margin-bottom: 0.5rem;
}

.story-card-body {
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.55;
}

/* ==================== DID YOU KNOW (Trivia) ==================== */
.did-you-know-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(56, 189, 248, 0.04));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  margin-bottom: 3.5rem;
}

.did-you-know-icon {
  font-size: 2rem;
  line-height: 1;
}

.did-you-know-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold-500);
  margin-bottom: 0.35rem;
}

.did-you-know-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ==================== DETAILED LORE & CONTEXT ==================== */
.detail-section-block {
  margin-bottom: 3.5rem;
}

.detail-block-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.detail-prose-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

/* ==================== ABILITIES & POWER PROFILE ==================== */
.abilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.ability-card {
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  position: relative;
}

.ability-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.ability-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-primary);
}

.evidence-badge {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.ability-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.ability-source-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Power Profile Panel */
.power-profile-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 3.5rem;
}

.power-profile-disclaimer-box {
  padding: 0.85rem 1.2rem;
  background: rgba(212, 175, 55, 0.08);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.power-dimensions-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.power-dim-row {
  display: grid;
  grid-template-columns: 160px 1fr 50px;
  align-items: center;
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .power-dim-row {
    grid-template-columns: 120px 1fr 40px;
    gap: 0.75rem;
  }
}

.power-dim-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: capitalize;
}

.power-dim-track {
  height: 10px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.power-dim-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-500), var(--accent-crimson));
  border-radius: var(--radius-full);
  transition: width 800ms var(--transition-smooth);
}

.power-dim-score {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-500);
  text-align: right;
}

.power-basis-list {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Sources & Image Credits */
.sources-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.source-item-card {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.source-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.source-item-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* ==================== CONTENT TIER BADGES ==================== */
.tier-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tier-badge.tier-archive {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-500);
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.tier-badge.tier-rich {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.tier-badge.tier-core {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

/* ==================== ETYMOLOGY PANEL ==================== */
.etymology-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 3.5rem;
}

.etymology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.etymology-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.etymology-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
}

.etymology-val {
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 600;
}

/* ==================== ABILITY MATRIX ==================== */
.ability-matrix-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2.5rem;
  overflow-x: auto;
}

.ability-matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.ability-matrix-table th {
  padding: 0.85rem 1rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-medium);
}

.ability-matrix-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.ability-matrix-table tr:hover td {
  background: var(--bg-surface);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-strongly-documented {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-documented {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.status-uncertain {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-not-documented {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

/* ==================== HISTORICAL TIMELINE ==================== */
.timeline-stream {
  position: relative;
  border-left: 2px solid var(--border-medium);
  margin-left: 1.25rem;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.timeline-node {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color var(--transition-fast);
}

.timeline-node:hover {
  border-color: var(--border-glow);
}

.timeline-marker {
  position: absolute;
  left: -2.65rem;
  top: 1.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-500);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 8px var(--gold-glow);
}

.timeline-node-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.timeline-period-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-500);
  font-weight: 700;
}

.timeline-earliest-badge {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-500);
  border: 1px solid var(--border-glow);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}

.timeline-node-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.timeline-node-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== POP CULTURE CONTRAST ==================== */
.contrast-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 3.5rem;
}

.contrast-summaries-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

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

.contrast-box {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

.contrast-box.tradition {
  border-left: 3px solid var(--gold-500);
}

.contrast-box.modern {
  border-left: 3px solid var(--accent-cyan);
}

.contrast-box-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contrast-box.tradition .contrast-box-title {
  color: var(--gold-500);
}

.contrast-box.modern .contrast-box-title {
  color: var(--accent-cyan);
}

.diff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.diff-table th {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-medium);
  text-align: left;
}

.diff-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  line-height: 1.5;
}

/* ==================== CLAIMS PROVENANCE ==================== */
.claims-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 3.5rem;
  overflow-x: auto;
}

.claims-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.claims-table th {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-medium);
}

.claims-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.source-hierarchy-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
}

.source-hierarchy-badge.Primary {
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-500);
  border: 1px solid var(--border-glow);
}

.source-hierarchy-badge.Scholarly {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.source-hierarchy-badge.Institutional {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.source-hierarchy-badge.Reference {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

/* ==================== STORIES, PLACES & VARIANTS ==================== */
.stories-grid,
.places-grid,
.variants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.archive-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.archive-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 700;
}

.archive-card-sub {
  font-size: 0.78rem;
  color: var(--gold-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.archive-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==================== GRAPH WRAPPER ==================== */
.graph-container-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 3.5rem;
}

