/* ===== RESPONSIVE STYLES ===== */

/* Tablet */
@media (max-width: 1024px) {
  .chapter-container {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero-ctas {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
  }

  .fight-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .hero-subheading {
    font-size: clamp(0.875rem, 2.5vw, 1.125rem);
  }
}

/* Large mobile */
@media (max-width: 768px) {
  .header-inner {
    padding: var(--space-sm) 0;
    height: 3.5rem;
  }

  .header-left .header-name {
    display: none;
  }

  .header-nav {
    display: none;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .chapter-headline--large {
    font-size: clamp(2rem, 6vw, 3.5rem);
  }

  .chapter-subheading {
    font-size: clamp(0.875rem, 2.5vw, 1.125rem);
  }

  .narrative-statement {
    font-size: clamp(1.25rem, 5vw, 2.5rem);
  }

  .chapter-subheading,
  .narrative-statement {
    font-size: clamp(0.875rem, 2.5vw, 1.25rem);
  }

  .fight-chapter {
    padding: 2rem 0;
  }

  .fight-number {
    font-size: 2.5rem;
  }

  .timeline-record {
    font-size: clamp(2.5rem, 8vw, 5rem);
  }

  .partner-cta .btn {
    display: block;
    width: 100%;
    margin-bottom: var(--space-sm);
  }

  .partner-cta .btn:last-child {
    margin-bottom: 0;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .u-container {
    width: 90%;
    padding-inline: 1rem;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 0.75rem;
  }

  .chapter-label {
    font-size: 0.625rem;
    letter-spacing: 0.2em;
  }

  .chapter-headline {
    font-size: 1.75rem;
  }

  .chapter-headline--large {
    font-size: 2rem;
  }

  .timeline-stat .number {
    font-size: 1.75rem;
  }

  .hero-ctas {
    gap: 0.5rem;
  }

  .hero-ctas .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
  }
}

/* Landscape mobile */
@media (max-height: 700px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
  }

  .chapter-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .hero-scroll-indicator {
    display: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .chapter-label {
    opacity: 0.9;
  }

  .u-muted {
    opacity: 0.7;
  }
}

/* Dark mode (optional enhancement) */
@media (prefers-color-scheme: dark) {
  :root {
    --color-black: #050505;
    --color-deep-black: #090909;
    --color-charcoal: #121212;
  }
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 2000;
}

.scroll-progress-bar {
  height: 100%;
  background: var(--color-crimson);
  width: 0%;
  transition: width 0.1s ease-out;
}

/* Scrollbar styling */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-crimson) var(--color-black);
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: var(--color-black);
}

*::-webkit-scrollbar-thumb {
  background: var(--color-crimson);
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--color-deep-red);
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .fight-chapter:hover {
    transform: none;
  }

  .partner-logo:hover {
    opacity: 0.4;
    transform: none;
  }

  .hero-ctas {
    gap: 1rem;
  }
}

/* Loading states */
[data-loading] {
  opacity: 0;
  transition: opacity 0.5s ease;
}

[data-loading].loaded {
  opacity: 1;
}

/* Focus states for accessibility */
a:focus,
button:focus,
input:focus {
  outline: 2px solid var(--color-crimson);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--color-crimson);
  color: var(--color-white);
  padding: 8px;
  text-decoration: none;
  z-index: 3000;
}

.skip-link:focus {
  top: 6px;
}