/* ========================================
   Little French Boy - Main Stylesheet
   ======================================== */

/* ----------------------------------------
   1. CUSTOM PROPERTIES
   ---------------------------------------- */
:root {
  /* Colors */
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-tertiary: #1a1a1a;
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --accent-primary: #3A78C3;
  --accent-hover: #4A88D3;
  --border-color: #2a2a2a;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Typography */
  --font-heading: 'Futura-Bold', Futura, 'Trebuchet MS', sans-serif;
  --font-body: Futura, 'Trebuchet MS', Arial, sans-serif;

  /* Sizing */
  --container-max: 1200px;
  --nav-height: 80px;
}

/* ----------------------------------------
   2. RESET & BASE STYLES
   ---------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

ul {
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

/* ----------------------------------------
   4. LAYOUT & CONTAINER
   ---------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-xl) 0;
}

/* ----------------------------------------
   5. NAVIGATION
   ---------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: var(--space-md);
}

.nav-links a {
  color: var(--text-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-primary);
}

/* Mobile nav toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ----------------------------------------
   6. HERO SECTION
   ---------------------------------------- */
.hero {
  display: none; /* Hidden for now - remove this line to restore hero */
  min-height: 100vh;
  /* display: flex; */
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  padding-top: var(--nav-height);
}

.hero-content {
  padding: var(--space-md);
}

.hero-logo {
  max-width: 400px;
  width: 80%;
  margin: 0 auto var(--space-md);
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-secondary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-signup {
  margin-top: var(--space-lg);
  max-width: 450px;
  width: 100%;
}

.signup-cta {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  font-size: 1rem;
}

/* ----------------------------------------
   7. PHOTO SLIDESHOW
   ---------------------------------------- */
.slideshow {
  padding: 0;
  background: var(--bg-primary);
}

.slideshow-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.slideshow-image {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
}

.slideshow-image.active {
  opacity: 1;
  position: relative;
}

/* ----------------------------------------
   8. SHOWS SECTION
   ---------------------------------------- */
.shows {
  background: var(--bg-secondary);
  padding-top: calc(var(--nav-height) + 3rem);
}

.shows h2 {
  text-align: center;
  margin-bottom: var(--space-lg);
  font-size: 2rem;
}

.shows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.show-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  text-align: center;
  transition: border-color 0.2s ease;
}

.show-card:hover {
  border-color: var(--accent-primary);
}

.show-date {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-sm);
}

.show-date .month {
  font-size: 0.875rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.show-date .day {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1;
}

.show-details {
  margin-bottom: var(--space-sm);
}

.show-details h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.show-details .venue {
  color: var(--text-secondary);
}

.show-details .time {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.no-shows {
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
}

/* ----------------------------------------
   8. NEWSLETTER SECTION
   ---------------------------------------- */
.newsletter {
  text-align: center;
  background: var(--bg-primary);
}

.newsletter h2 {
  margin-bottom: var(--space-sm);
  font-size: 2rem;
}

.newsletter > .container > p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form iframe {
  width: 100%;
  border: none;
}

/* Placeholder styling before Beehiiv embed */
.newsletter-placeholder {
  padding: var(--space-md);
  background: var(--bg-secondary);
  border: 2px dashed var(--border-color);
  border-radius: 4px;
  color: var(--text-muted);
}

/* ----------------------------------------
   9. TEAM SECTION (About page)
   ---------------------------------------- */
.team {
  background: var(--bg-secondary);
}

.team h2 {
  text-align: center;
  margin-bottom: var(--space-sm);
  font-size: 2rem;
}

.team-intro {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

.team-photo {
  max-width: 800px;
  margin: 0 auto;
}

.team-photo img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.team-member {
  text-align: center;
}

.member-photo {
  width: 200px;
  height: 200px;
  margin: 0 auto var(--space-sm);
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border-color);
  background: var(--bg-tertiary);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
  transition: filter 0.3s ease;
}

.team-member:hover .member-photo img {
  filter: grayscale(0%);
}

/* Placeholder for missing photos */
.member-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.team-member h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.member-role {
  color: var(--accent-primary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.member-bio {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ----------------------------------------
   10. FOOTER
   ---------------------------------------- */
.site-footer {
  padding: var(--space-md) 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

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

.footer-content p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  gap: var(--space-sm);
}

.social-links a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
}

.social-links a:hover {
  color: var(--accent-primary);
}

/* ----------------------------------------
   11. BUTTONS
   ---------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(201, 162, 39, 0.3);
}

/* ----------------------------------------
   12. UTILITIES
   ---------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----------------------------------------
   13. MEDIA QUERIES
   ---------------------------------------- */
@media (max-width: 768px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 4rem;
  }

  /* Mobile navigation */
  .mobile-nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    padding: var(--space-md);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .hero-logo {
    max-width: 280px;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .shows h2,
  .team h2,
  .newsletter h2 {
    font-size: 1.5rem;
  }

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

@media (max-width: 480px) {
  .shows-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* Reduced motion */
@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;
  }
}
