/* ===========================
   Star Wars Character Watch Guide
   Shared Global Styles
   =========================== */

/* ===========================
   TYPE SCALE - DO NOT MODIFY
   ===========================
   Use ONLY these font sizes throughout the site:

   12px - Small (labels, captions, meta info)
   14px - Body small (compact UI, secondary text)
   16px - Body (default text, navigation)
   20px - Body large (emphasized content)
   24px - Heading small (card titles, section labels)
   32px - Heading medium (page sections)
   48px+ - Heading large (hero titles, requires approval)

   For sizes >48px, discuss before adding.
   =========================== */

/* CSS Variables */
:root {
  /* Star Wars iconic yellow (opening crawl) */
  --gold: #FFE81F;

  /* Deep space backgrounds */
  --bg: #000000;
  --bg2: rgba(0, 0, 0, 0.6);

  /* Text - cool gray tones */
  --text: #d4dce8;
  --text-dim: #9ca3af;

  /* Content colors - hologram blue & lightsaber purple */
  --movie-color: #00d9ff;
  --tv-color: #e580ff;

  /* Borders with blue tint instead of yellow */
  --border: rgba(100,120,160,0.25);
  --border-hover: rgba(0,217,255,0.35);

  /* ===========================
     Line Length Standards
     Based on Apple/Google best practices: 50-75 characters optimal
     Calculated at ~65 characters per line for readability
     =========================== */

  /* Large text (20-24px): ~700px = 65 chars */
  --line-length-large: 700px;

  /* Body text (16-18px): ~650px = 65 chars */
  --line-length-body: 650px;

  /* Small text (14-15px): ~580px = 70 chars */
  --line-length-small: 580px;

  /* Narrow (12-13px): ~500px = 75 chars */
  --line-length-narrow: 500px;
}

/* Prevent flash of untranslated content (FOUC) */
html.i18n-loading [data-i18n],
html.i18n-loading .content-section,
html.i18n-loading .featured-section,
html.i18n-loading .about-section {
  visibility: hidden;
}

html:not(.i18n-loading) [data-i18n],
html:not(.i18n-loading) .content-section,
html:not(.i18n-loading) .featured-section,
html:not(.i18n-loading) .about-section {
  visibility: visible;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===========================
   Typography - Line Length Standards
   Applied to base elements for universal readability
   =========================== */

/* Body text elements (16-18px) */
p,
.text-body {
  max-width: var(--line-length-body);
}

/* List items */
li {
  max-width: var(--line-length-body);
}

/* Small text (14-15px) */
small,
.text-small {
  max-width: var(--line-length-small);
}

/* Large text (20-24px) */
.text-large {
  max-width: var(--line-length-large);
}

/* Override: Full width when needed */
.text-full {
  max-width: none;
}

/* Override: Headings don't get line length limits */
h1, h2, h3, h4, h5, h6 {
  max-width: none;
}

/* Override: Cards and constrained containers are their own width constraints */
.feature-card p,
.feature-card li,
.info-card p,
.info-card li,
.card p,
.card li {
  max-width: none;
}

/* Navigation */
.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  gap: 12px;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: -64px;
  margin-bottom: 40px;
}

.nav-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: transparent;
  border: none;
  padding: 10px 0;
  cursor: pointer;
  transition: color 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav-logo:hover {
  color: var(--movie-color);
}

.nav-logo:focus {
  outline: none;
}

.nav-link {
  display: inline-block;
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 10px 16px;
  min-height: 44px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  text-decoration: none;
  line-height: 1.5;
  position: relative;
}

.nav-link:hover {
  color: var(--movie-color);
}

.nav-link:focus {
  outline: none;
}

.nav-link.primary {
  color: var(--text-dim);
}

.nav-link.primary:hover {
  color: var(--movie-color);
}

/* Language Switcher */
.lang-switcher-wrapper {
  position: relative;
  display: inline-block;
}

.lang-switcher {
  display: inline-block;
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 10px 16px;
  min-height: 44px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  text-decoration: none;
  line-height: 1.5;
  position: relative;
}

.lang-switcher:hover {
  color: var(--movie-color);
}

.lang-switcher:focus {
  outline: none;
}

.lang-switcher:focus-visible {
  outline: none;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(10, 10, 15, 0.98);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow:
    0 0 0 1px rgba(100,120,160,0.1),
    0 8px 24px rgba(0, 0, 0, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.4);
}

.lang-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 10px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  text-align: left;
}

.lang-option:hover {
  color: var(--movie-color);
}

.lang-option:focus {
  outline: none;
}

.hamburger {
  display: none;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.hamburger span {
  display: block;
  position: absolute;
  width: 24px;
  height: 2px;
  background: #ffffff;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger span:nth-child(1) {
  transform: translateY(-7px);
}

.hamburger span:nth-child(2) {
  transform: translateY(0);
}

.hamburger span:nth-child(3) {
  transform: translateY(7px);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

/* Typography */
h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  line-height: 1.2;
}

h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

/* Search */
.search-box {
  max-width: 600px;
  margin: 0 auto 48px;
}

.search-input {
  width: 100%;
  padding: 14px 20px;
  background: var(--bg2);
  border: 1.5px solid rgba(0, 217, 255, 0.35);
  border-radius: 12px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  outline: none;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow:
    0 2px 12px rgba(0, 217, 255, 0.12),
    0 1px 6px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  min-height: 48px;
}

.search-input::placeholder {
  color: var(--text-dim);
  opacity: 0.6;
}

.search-input:hover {
  border-color: rgba(0, 217, 255, 0.5);
  box-shadow:
    0 4px 16px rgba(0, 217, 255, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.search-input:focus {
  border-color: var(--movie-color);
  outline: 2px solid var(--movie-color);
  outline-offset: 2px;
  background: var(--bg2);
  box-shadow:
    0 6px 20px rgba(0,217,255,0.2),
    0 3px 12px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: scale(1.01);
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn,
.tab {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 12px 20px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg2);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  position: relative;
}

.filter-btn:hover,
.tab:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.filter-btn:focus,
.tab:focus {
  outline: 2px solid var(--movie-color);
  outline-offset: 2px;
}

.filter-btn.active,
.tab.active {
  border-color: var(--movie-color);
  color: var(--movie-color);
  background: rgba(0,217,255,0.12);
  box-shadow: 0 4px 12px rgba(0, 217, 255, 0.15);
}

/* Badges */
.badge {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.05em;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-movie {
  background: rgba(0,217,255,0.15);
  color: var(--movie-color);
}

.badge-tv {
  background: rgba(229,128,255,0.15);
  color: var(--tv-color);
}

/* Importance Badges */
.importance-badge {
  font-size: 12px;
  padding: 3px 7px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.importance-essential {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
}

.importance-supporting {
  background: rgba(100,120,160,0.15);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Timeline Dots */
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid;
  position: relative;
  z-index: 1;
}

.dot-movie {
  background: rgba(0,217,255,0.3);
  border-color: var(--movie-color);
  box-shadow: 0 0 6px rgba(0,217,255,0.4);
}

.dot-tv {
  background: rgba(229,128,255,0.3);
  border-color: var(--tv-color);
  box-shadow: 0 0 6px rgba(229,128,255,0.4);
}

/* Streaming Buttons Container */
.streaming-buttons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* Primary Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  min-height: 44px;
  text-decoration: none !important;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  transition: all 0.2s cubic-bezier(0.19, 1, 0.22, 1);
  border: 1px solid;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  text-decoration: none !important;
}

.btn:focus {
  outline: 2px solid;
  outline-offset: 2px;
  text-decoration: none !important;
}

/* Button Color Variants */
.btn-primary {
  background: rgba(0, 217, 255, 0.12);
  color: var(--movie-color);
  border-color: rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
  background: rgba(0, 217, 255, 0.18);
  border-color: var(--movie-color);
}

.btn-primary:focus {
  outline-color: var(--movie-color);
}

.btn-disney {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
}

.btn-disney:hover {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.5);
}

.btn-disney:focus {
  outline-color: #60a5fa;
}

.btn-amazon {
  background: rgba(255, 153, 0, 0.12);
  color: #ffa940;
  border-color: rgba(255, 153, 0, 0.3);
}

.btn-amazon:hover {
  background: rgba(255, 153, 0, 0.18);
  border-color: rgba(255, 153, 0, 0.5);
}

.btn-amazon:focus {
  outline-color: #ffa940;
}

/* Button Icon Styles */
.btn-icon {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
}

.btn-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Legacy class names for backwards compatibility */
.disney-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  min-height: 44px;
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  transition: all 0.2s;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.disney-btn:hover {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.5);
}

.disney-btn:focus {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.disney-icon {
  font-size: 14px;
  display: inline-flex;
  align-items: center;
}

.amazon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  min-height: 44px;
  background: rgba(255, 153, 0, 0.12);
  color: #ffa940;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  transition: all 0.2s;
  border: 1px solid rgba(255, 153, 0, 0.3);
}

.amazon-btn:hover {
  background: rgba(255, 153, 0, 0.18);
  border-color: rgba(255, 153, 0, 0.5);
}

.amazon-btn:focus {
  outline: 2px solid #ffa940;
  outline-offset: 2px;
}

.amazon-icon {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
}

.amazon-icon svg,
.disney-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Breadcrumb Navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 32px;
  font-size: 14px;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--movie-color);
  text-decoration: none;
  transition: color 0.2s;
}

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

.breadcrumb-separator {
  color: var(--text-dim);
  opacity: 0.5;
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 500;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--movie-color);
  color: var(--bg);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.5;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--text);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.back-to-top:focus {
  outline: none;
}

/* Related Characters Section */
.related-characters {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.related-characters h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 32px;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.related-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.related-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--movie-color), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.related-card:hover {
  border-color: rgba(0, 217, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  background: var(--bg2);
}

.related-card:hover::before {
  transform: scaleX(1);
}

.related-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.related-card:hover h3 {
  color: var(--movie-color);
}

.related-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-shared {
  font-size: 12px;
  color: var(--movie-color);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* Skeleton Loading States */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg2) 0%,
    var(--bg2) 50%,
    var(--bg2) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.skeleton-title {
  height: 22px;
  width: 70%;
  margin-bottom: 12px;
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
}

.skeleton-text:last-of-type {
  width: 85%;
  margin-bottom: 12px;
}

.skeleton-badge {
  height: 12px;
  width: 120px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-header {
    padding: 12px 20px;
    margin-top: -40px;
  }

  .filter-btn,
  .tab {
    padding: 7px 12px;
    font-size: 14px;
    min-height: 36px;
  }

  .search-input {
    padding: 12px 16px;
    font-size: 16px;
    min-height: 44px;
  }
}

/* Mobile Navigation - Tablets and Phones */
@media (max-width: 768px) {
  .nav-header {
    padding: 12px 20px;
    margin-top: -32px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .nav-logo {
    font-size: 16px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    gap: 0;
  }

  .nav-links.active {
    max-height: 500px; /* Increased to accommodate language dropdown */
  }

  .nav-link {
    font-size: 16px;
    padding: 12px 16px;
    min-height: 44px;
    width: 100%;
    text-align: left;
    border-top: 1px solid var(--border);
    color: #ffffff;
  }

  .nav-link:hover {
    color: var(--movie-color);
  }

  .lang-switcher-wrapper {
    width: 100%;
  }

  .lang-switcher {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    color: #ffffff;
  }

  .lang-switcher:hover {
    color: var(--movie-color);
  }

  .lang-dropdown {
    position: static;
    margin-top: 8px;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0 16px 8px 16px;
    box-shadow: none;
  }

  .lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .lang-option {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    color: #ffffff;
  }

  .lang-option:hover {
    color: var(--movie-color);
  }

  .breadcrumb {
    font-size: 14px;
    margin: 16px 0 24px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .disney-btn,
  .btn {
    font-size: 14px;
    padding: 9px 16px;
  }

  .related-characters {
    margin-top: 60px;
    padding-top: 40px;
  }

  .related-characters h2 {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .related-card {
    padding: 20px;
  }

  .related-card h3 {
    font-size: 16px;
  }
}

/* ===========================
   12-Column Grid System
   =========================== */

:root {
  /* Grid system variables */
  --grid-container: 1200px;
  --grid-gutter: 24px;
  --grid-columns: 12;
}

/* Container */
.container {
  max-width: var(--grid-container);
  margin: 0 auto;
  padding: 0 32px;
}

/* Grid Base */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gutter);
}

/* Column Spans */
.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

/* Centered Columns */
.col-centered-8 {
  grid-column: 3 / 11; /* Centers 8 columns */
}

.col-centered-10 {
  grid-column: 2 / 12; /* Centers 10 columns */
}

/* Responsive Grid Breakpoints - Apple Standards */

/* Large Desktop - iPad Pro landscape */
@media (max-width: 1366px) {
  .container {
    padding: 0 32px;
  }
}

/* Desktop / iPad landscape */
@media (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }
}

/* Tablet - iPad portrait */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  /* Stack columns on tablet */
  .col-1, .col-2, .col-3, .col-4,
  .col-5, .col-6, .col-7, .col-8,
  .col-9, .col-10, .col-11, .col-12 {
    grid-column: span 12;
  }

  .col-centered-8,
  .col-centered-10 {
    grid-column: 1 / -1;
  }
}

/* Standard phones - iPhone and similar */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
}

/* Small phones - iPhone SE */
@media (max-width: 320px) {
  .container {
    padding: 0 16px;
  }
}

/* ===========================
   Anthology Series Section
   =========================== */

.anthology-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.anthology-note {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 24px;
  font-style: italic;
  opacity: 0.85;
}

/* ===========================
   Footer Styles
   =========================== */

footer {
  text-align: center;
  padding: 32px 40px 24px;
  margin-top: 80px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.6;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

footer p {
  margin: 0;
  max-width: none;
}

footer p:last-child {
  margin-top: 12px;
}

footer a {
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s;
  border-bottom: 1px solid transparent;
}

footer a:hover {
  color: var(--movie-color);
  border-bottom-color: var(--movie-color);
}

footer .divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 24px auto;
}
