/* Home layers (index.html only): UX enhancements, visual themes, advanced features. One sheet for three that always loaded
   together, in this order (2026-11-10, review/home-consolidate). Each part is unchanged; search for '==== name' to find one. */

/* ==== homepage-ux-enhancements (was _shared/homepage-ux-enhancements.css) ==== */
/* ══════════════════════════════════════════════════════════════════════════
   Homepage UX Enhancements Styles (2026-10)
   ══════════════════════════════════════════════════════════════════════════ */

/* ── 5. VITRINE GESTURE ENHANCEMENTS ── */
#master-vitrine-card {
  cursor: grab;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#master-vitrine-card:active {
  cursor: grabbing;
}

/* Enhanced view tabs for touch */
@media (hover: none), (pointer: coarse) {
  .vitrine-view-btn {
    min-height: 48px !important;
    font-size: 0.95rem !important;
    padding: 8px 16px !important;
  }

  .vitrine-tab {
    min-height: 48px !important;
    font-size: 0.9rem !important;
    padding: 8px 12px !important;
  }
}

/* ── 6. WAVEFORM ENHANCEMENTS ── */
#real-waveform {
  position: relative;
  cursor: ew-resize;
}

/* Transcript sync highlighting */
.transcript-seg.scrub-preview {
  color: var(--color-gold-light) !important;
  font-weight: 500;
}

/* Enhanced tape-head on touch */
@media (hover: none), (pointer: coarse) {
  .tape-head {
    min-width: 44px;
    min-height: 44px;
  }

  .tape-head-line {
    width: 2px;
    box-shadow: 0 0 8px rgba(233, 195, 73, 0.5);
  }
}

/* ── 8. RESPONSIVE & ACCESSIBILITY ── */

@media (prefers-reduced-motion: reduce) {
  #master-vitrine-card {
    animation: none !important;
    transition: none !important;
  }
}

/* ==== homepage-visual-themes (was _shared/homepage-visual-themes.css) ==== */
/* ══════════════════════════════════════════════════════════════════════════
   Homepage Visual Themes & Enhancements (2026-10)
   Section identity colors, dramatic vitrine lighting, motif styling,
   animated counters, waveform visualization, breadcrumb navigation
   ══════════════════════════════════════════════════════════════════════════ */

/* Hero Section: Warm bone accent */
#main-content {
  position: relative;
  border-left: 6px solid var(--color-gold-light);
}

#main-content::before {
  content: '⬥';
  position: absolute;
  left: -16px;
  top: 20px;
  font-size: 1.2rem;
  color: var(--color-gold-light);
}

/* Observation Section: Gold divider with icon */
#constellation {
  position: relative;
  border-top: 2px dashed rgba(212, 175, 55, 0.3);
  padding-top: 3rem !important;
}

#constellation::before {
  content: '👁';
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  background: var(--color-paper);
  padding: 0 12px;
  z-index: 1;
}

#constellation h2::before {
  content: '◆ ';
  color: var(--color-gold-light);
  margin-right: 8px;
}

/* Architecture Section: Red/loss accent */
#deficit {
  position: relative;
  border-left: 4px solid var(--color-red);
  background: linear-gradient(90deg, rgba(255,107,107,0.05) 0%, transparent 8%) !important;
}

#deficit::before {
  content: '✕';
  position: absolute;
  left: -12px;
  top: 20px;
  font-size: 1.3rem;
  color: var(--color-red);
  font-weight: bold;
}

#deficit h2::before {
  content: '◉ ';
  color: var(--color-red);
  margin-right: 8px;
}

/* 53 Years Section: Timeline gradient */
#decades {
  position: relative;
  background:
    linear-gradient(90deg,
      rgba(212, 175, 55, 0.1) 0%,
      rgba(233, 195, 73, 0.05) 50%,
      transparent 100%
    ) !important;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

#decades::before {
  content: '⏱';
  position: absolute;
  left: 20px;
  top: 20px;
  font-size: 1.4rem;
}

#decades h2::before {
  content: '◈ ';
  color: var(--color-accent);
  margin-right: 8px;
}

/* Obsessions Section: Pattern theme */
#motifs {
  position: relative;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(212, 175, 55, 0.02) 10px,
      rgba(212, 175, 55, 0.02) 20px
    ),
    linear-gradient(180deg, rgba(14,14,16,0.6), rgba(14,14,16,0.3)) !important;
}

#motifs::before {
  content: '🔄';
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 1.4rem;
  opacity: 0.6;
}

#motifs h2::before {
  content: '◆◆ ';
  color: var(--color-accent-highlight);
  margin-right: 8px;
}

/* Juxtaposition Section: Alternating zones */
#serendipity {
  position: relative;
  background:
    linear-gradient(90deg,
      rgba(19, 19, 21, 0.5) 0%,
      rgba(19, 19, 21, 0.2) 25%,
      rgba(19, 19, 21, 0.5) 50%,
      rgba(19, 19, 21, 0.2) 75%,
      rgba(19, 19, 21, 0.5) 100%
    ) !important;
  border-top: 2px solid rgba(212, 175, 55, 0.15);
}

#serendipity::before {
  content: '⇄';
  position: absolute;
  left: 50%;
  top: -24px;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: var(--color-accent);
  background: var(--color-paper);
  padding: 0 12px;
  z-index: 1;
}

#serendipity h2::before {
  content: '◈ ';
  color: var(--color-gold-light);
  margin-right: 8px;
}

/* ── 2. VITRINE MUSEUM DISPLAY ENHANCEMENT ── */

#master-vitrine-card {
  position: relative;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(242, 202, 80, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: box-shadow 300ms ease, transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

#master-vitrine-card::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 4px;
  background: radial-gradient(
    ellipse 80% 50% at 50% 0%,
    rgba(242, 202, 80, 0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 400ms ease;
}

#master-vitrine-card:hover::before {
  opacity: 1;
}

#master-vitrine-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2px;
  box-shadow:
    inset 0 0 20px rgba(242, 202, 80, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 2;
}

/* Bloom effect when switching view modes */
#master-vitrine-img.view-raking,
#master-vitrine-img.view-verso,
#master-vitrine-img.view-uv {
  animation: vitrineBloom 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes vitrineBloom {
  0% {
    filter: brightness(1) drop-shadow(0 0 0 rgba(242, 202, 80, 0));
  }
  50% {
    filter: brightness(1.02) drop-shadow(0 0 20px rgba(242, 202, 80, 0.4));
  }
  100% {
    filter: brightness(1) drop-shadow(0 0 0 rgba(242, 202, 80, 0));
  }
}

/* Golden pulse on stat cards */
#deficit h3,
#decades h2 {
  position: relative;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

/* ── 5. WAVEFORM VISUALIZATION ENHANCEMENT ── */

#real-waveform {
  position: relative;
  background:
    linear-gradient(90deg,
      rgba(242, 202, 80, 0.05) 0%,
      rgba(233, 195, 73, 0.02) 50%,
      rgba(212, 175, 55, 0.05) 100%
    );
  border-radius: 2px;
  padding: 8px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Frequency spectrum visualization behind waveform */
#real-waveform::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
    var(--color-motif-guernica) 0%,
    var(--color-motif-guernica-hover) 15%,
    var(--color-accent) 30%,
    var(--color-accent-highlight) 50%,
    var(--color-motif-warplanes) 70%,
    var(--color-motif-warplanes-hover) 85%,
    var(--color-motif-guernica) 100%
  );
  opacity: 0.08;
  border-radius: 2px;
  filter: blur(12px);
  z-index: 0;
}

.wave-bar {
  position: relative;
  z-index: 1;
}

/* ── 7. BREADCRUMB NAVIGATION — "YOU ARE HERE" ── */

.breadcrumb-nav {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 40;
  background: var(--color-glass-solid);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 24px;
  padding: 8px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  backdrop-filter: blur(8px);
  display: flex;
  gap: 8px;
  align-items: center;
  opacity: 0;
  animation: breadcrumbFadeIn 400ms ease-out 300ms forwards;
  pointer-events: auto;
}

@keyframes breadcrumbFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.breadcrumb-sep {
  color: var(--color-accent);
  margin: 0 4px;
}

@media (max-width: 1024px) {
  .breadcrumb-nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #master-vitrine-card {
    animation: none;
  }

  #master-vitrine-img.view-raking,
  #master-vitrine-img.view-verso,
  #master-vitrine-img.view-uv {
    animation: none;
  }

  
  
  .breadcrumb-nav {
    animation: none;
    opacity: 1;
  }
}

@media (prefers-color-scheme: light) {
  #main-content {
    border-left-color: var(--color-accent);
  }

  #main-content::before {
    color: var(--color-accent);
  }

  }

/* ==== homepage-advanced-features (was _shared/homepage-advanced-features.css) ==== */
/* ══════════════════════════════════════════════════════════════════════════
   Homepage Advanced Features Styles (2026-10)
   Keyboard navigation hints, quick-jump menu, what's new spotlight
   ══════════════════════════════════════════════════════════════════════════ */

/* ── 1. KEYBOARD NAVIGATION HINTS ── */

.keyboard-hint {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-glass-solid);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 8px;
  padding: 16px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  z-index: 100;
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}

.keyboard-hint.show {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .keyboard-hint {
    transition: none;
  }
}

/* ── 2. QUICK-JUMP SECTION MENU ── */

.quick-jump-menu {
  position: fixed;
  bottom: 100px;
  left: 24px;
  z-index: 45;
  background: var(--color-glass-solid);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  padding: 12px;
  width: 240px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
}

.quick-jump-menu.open {
  max-height: 500px;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.quick-jump-header {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  padding: 8px 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.quick-jump-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quick-jump-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 4px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 150ms ease;
  color: var(--color-gold-light);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-align: left;
}

.quick-jump-item:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--color-gold-light);
  color: var(--color-gold-light);
}

.quick-jump-icon {
  font-size: 1.1rem;
  display: inline-block;
  width: 20px;
  text-align: center;
}

.quick-jump-label {
  flex: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

.quick-jump-shortcut {
  font-size: 0.65rem;
  color: rgba(242, 202, 80, 0.85);
  letter-spacing: 0.08em;
}

@media (max-width: 1024px) {
  .quick-jump-menu {
    display: none;
  }
}

/* ── 3. WHAT'S NEW FEATURE SPOTLIGHT ── */

.spotlight-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.spotlight-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.spotlight-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.spotlight-card {
  position: relative;
  z-index: 10;
  background: var(--color-paper);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 40px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  animation: spotlightCardIn 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes spotlightCardIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.spotlight-header {
  margin-bottom: 32px;
  text-align: center;
}

.spotlight-header h2 {
  font-family: 'Newsreader', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--color-gold-light);
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.spotlight-header p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(242, 202, 80, 0.7);
  margin: 0;
}

.spotlight-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

@media (max-width: 600px) {
  .spotlight-features {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .spotlight-card {
    padding: 24px;
  }
}

.spotlight-feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 6px;
  opacity: 0;
  animation: spotlightFeatureIn 500ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes spotlightFeatureIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.spotlight-icon {
  font-size: 1.8rem;
  display: block;
}

.spotlight-title {
  font-family: 'Newsreader', serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-gold-light);
  line-height: 1.3;
}

.spotlight-desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: rgba(242, 202, 80, 0.7);
  line-height: 1.4;
}

.spotlight-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.spotlight-close {
  background: var(--color-gold-light);
  border: none;
  color: var(--color-paper);
  padding: 12px 32px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease;
}

.spotlight-close:hover {
  background: var(--color-accent-highlight);
  transform: scale(1.05);
}

.spotlight-close:active {
  transform: scale(0.98);
}

/* ── KEYBOARD ARIA LABELS ── */
/* Hidden but read by screen readers */
[aria-label] {
  /* Screen readers will announce these on focus */
}

@media (prefers-reduced-motion: reduce) {
  .spotlight-modal,
  .spotlight-card,
  .spotlight-feature,
  .quick-jump-menu,
  .quick-jump-item {
    animation: none !important;
    transition: none !important;
  }
}
