/*
Theme Name: Eyes On
Theme URI: https://eyeson.ca
Author: Eyes On
Description: A dark, editorial theme for the Eyes On late-night talk show.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: eyeson
*/

/* ========================================
   CSS CUSTOM PROPERTIES
   ======================================== */

:root {
  /* Colors */
  --bg-deep: #050505;
  --bg-base: #0c0c0c;
  --bg-surface: #151515;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --accent: #d4a74a;
  --accent-glow: #e8bf5e;
  --accent-dim: #a07c30;
  --red: #c23b22;
  --text-primary: #ede9e3;
  --text-secondary: #a09a92;
  --text-muted: #5f5a54;
  --border: #2a2725;
  --border-light: #3a3632;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-heading: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --space-3xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --nav-height: 72px;

  /* Effects */
  --grain-opacity: 0.035;
  --transition-fast: 150ms ease;
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   RESET & BASE
   ======================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  overflow-x: hidden;
}

/* Film grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

::selection {
  background: var(--accent);
  color: var(--bg-deep);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-glow);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

.display-heading {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

p {
  margin-bottom: var(--space-md);
  font-size: 1.05rem;
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-secondary);
}

/* ========================================
   LAYOUT
   ======================================== */

.site-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.main-content {
  flex: 1;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-3xl);
}

/* ========================================
   NAVIGATION
   ======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.site-logo:hover {
  color: var(--accent);
}

.site-logo .logo-accent {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.site-nav a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-md);
  position: relative;
  transition: color var(--transition-fast);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.site-nav a:hover,
.site-nav a.current {
  color: var(--text-primary);
}

.site-nav a:hover::after,
.site-nav a.current::after {
  width: 60%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-sm);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: rgba(5, 5, 5, 0.97);
    backdrop-filter: blur(30px);
    padding: var(--space-2xl) var(--space-lg);
    gap: var(--space-sm);
    transform: translateX(100%);
    transition: transform var(--transition-base);
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav a {
    font-size: 1.4rem;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .site-nav a::after {
    display: none;
  }
}

/* ========================================
   HERO / FRONT PAGE
   ======================================== */

.hero {
  position: relative;
  padding: var(--space-3xl) 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(212, 167, 74, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light) 20%, var(--accent-dim) 50%, var(--border-light) 80%, transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  text-transform: none;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
  max-width: 14ch;
}

.hero-title .accent {
  color: var(--accent);
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 50ch;
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-meta .divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-dim);
}

/* ========================================
   SHOWS GRID
   ======================================== */

.section-header {
  margin-bottom: var(--space-2xl);
  position: relative;
}

.section-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 50ch;
}

.shows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.show-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
}

.show-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.6),
              0 0 40px -10px rgba(212, 167, 74, 0.08);
  color: inherit;
}

.show-card__image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
  background: var(--bg-surface);
}

.show-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.show-card:hover .show-card__image img {
  transform: scale(1.05);
}

.show-card__image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, var(--bg-card), transparent);
  pointer-events: none;
}

.show-card__body {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  position: relative;
}

.show-card__date {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.show-card__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.25rem;
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text-primary);
}

.show-card__excerpt {
  margin-top: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Featured show (first/largest) */
.show-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
  .show-card--featured {
    grid-template-columns: 1fr;
  }
}

.show-card--featured .show-card__image {
  aspect-ratio: auto;
  min-height: 400px;
}

.show-card--featured .show-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl);
}

.show-card--featured .show-card__title {
  font-size: 1.8rem;
}

.show-card--featured .show-card__excerpt {
  -webkit-line-clamp: 5;
}

/* ========================================
   SINGLE PAGE / POST
   ======================================== */

.page-header {
  padding: var(--space-2xl) 0 var(--space-xl);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-2xl);
}

.page-header__eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.page-header__eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.page-header__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.page-header__meta {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.entry-content {
  max-width: var(--max-width-narrow);
}

.entry-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.85;
  margin-bottom: var(--space-lg);
}

.entry-content h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  color: var(--accent);
  font-size: 1.6rem;
}

.entry-content h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.3rem;
  color: var(--text-primary);
}

.entry-content ul, .entry-content ol {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  padding-left: var(--space-lg);
  font-size: 1.05rem;
}

.entry-content li {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.entry-content li::marker {
  color: var(--accent-dim);
}

.entry-content img {
  border-radius: 4px;
  margin: var(--space-xl) 0;
  border: 1px solid var(--border);
}

.entry-content img.aligncenter {
  margin-left: auto;
  margin-right: auto;
}

.entry-content a {
  text-decoration: underline;
  text-decoration-color: var(--accent-dim);
  text-underline-offset: 3px;
}

.entry-content a:hover {
  text-decoration-color: var(--accent);
}

.entry-content strong {
  color: var(--text-primary);
}

.entry-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: var(--space-lg);
  margin: var(--space-xl) 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-secondary);
}

/* Featured image on single pages */
.featured-image {
  margin-bottom: var(--space-2xl);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  max-width: 500px;
}

.featured-image img {
  width: 100%;
  display: block;
}

/* ========================================
   SHOWS LIST PAGE
   ======================================== */

.shows-list {
  list-style: none;
  padding: 0;
}

.shows-list li {
  border-bottom: 1px solid var(--border);
}

.shows-list a {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.shows-list a:hover {
  color: var(--accent);
  padding-left: var(--space-md);
}

.shows-list .show-number {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  min-width: 3ch;
}

.shows-list .show-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  flex: 1;
}

.shows-list .show-date {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-2xl) 0;
  background: var(--bg-base);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dim) 50%, transparent);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-brand .accent {
  color: var(--accent-dim);
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-venue {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLine {
  from { width: 0; }
  to { width: 40px; }
}

.animate-in {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-in--delay-1 { animation-delay: 0.1s; }
.animate-in--delay-2 { animation-delay: 0.2s; }
.animate-in--delay-3 { animation-delay: 0.3s; }
.animate-in--delay-4 { animation-delay: 0.4s; }
.animate-in--delay-5 { animation-delay: 0.5s; }
.animate-in--delay-6 { animation-delay: 0.6s; }

.show-card {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.show-card:nth-child(1) { animation-delay: 0.1s; }
.show-card:nth-child(2) { animation-delay: 0.2s; }
.show-card:nth-child(3) { animation-delay: 0.3s; }
.show-card:nth-child(4) { animation-delay: 0.4s; }
.show-card:nth-child(5) { animation-delay: 0.5s; }
.show-card:nth-child(6) { animation-delay: 0.6s; }
.show-card:nth-child(7) { animation-delay: 0.7s; }
.show-card:nth-child(8) { animation-delay: 0.8s; }
.show-card:nth-child(9) { animation-delay: 0.9s; }

/* ========================================
   UTILITY
   ======================================== */

.visually-hidden {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
}

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

@media (max-width: 768px) {
  .shows-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .hero {
    padding: var(--space-2xl) 0;
  }

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

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .hero-meta .divider {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .main-content {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-2xl);
  }

  .page-header {
    padding: var(--space-xl) 0 var(--space-lg);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .show-card--featured .show-card__body {
    padding: var(--space-lg);
  }
}

/* ========================================
   WORDPRESS DEFAULTS
   ======================================== */

.wp-block-image {
  margin: var(--space-xl) 0;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignleft {
  float: left;
  margin-right: var(--space-lg);
  margin-bottom: var(--space-md);
}

.alignright {
  float: right;
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
  font-family: var(--font-display);
  font-style: italic;
}
