/* ==========================================================================
   THE ROYAL ME — style.css
   Sunny day, no care indie rock. Space & robots. Pavement meets Superchunk.
   ========================================================================== */

/* --- Custom Properties --- */
:root {
  /* Backgrounds */
  --bg:          #FFFDF5;
  --bg-alt:      #F0EBE1;
  --bg-dark:     #0D1117;
  --bg-dark-alt: #161B22;

  /* Text */
  --text:        #2D2A26;
  --text-light:  #7A756F;
  --text-on-dark: #E8E4DC;
  --text-muted:  #A09A93;

  /* Accents */
  --coral:       #E8734A;
  --coral-hover: #D4623B;
  --blue:        #4A90D9;
  --yellow:      #F7D354;
  --green:       #7BC67E;

  /* Utility */
  --border:      rgba(45, 42, 38, 0.1);
  --border-dark: rgba(232, 228, 220, 0.12);
  --radius:      8px;
  --radius-lg:   16px;

  /* Type scale */
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Space Grotesk', var(--font-body);
  --font-mono:    'Space Mono', 'SF Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-pad: 5rem 0;
  --container:   1100px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
}

/* --- Layout --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-pad);
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-light);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.3s, padding 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(255, 253, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.6rem 0;
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-on-dark);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.nav.scrolled .nav-logo {
  color: var(--text);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-on-dark);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}

.nav.scrolled .nav-links a {
  color: var(--text);
}

.nav-links a:hover {
  color: var(--coral);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--coral);
  transition: width 0.2s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-on-dark);
  transition: background 0.3s, transform 0.3s;
}

.nav.scrolled .nav-toggle span {
  background: var(--text);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  overflow: hidden;
}

.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: white;
  animation: twinkle var(--duration) ease-in-out infinite;
  opacity: 0;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.1; }
  50% { opacity: var(--max-opacity); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  color: var(--coral);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 12vw, 8rem);
  color: var(--text-on-dark);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

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

.hero-sub {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  letter-spacing: 0.05em;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--coral);
  color: white;
  border-color: var(--coral);
}

.btn-primary:hover {
  background: var(--coral-hover);
  border-color: var(--coral-hover);
  color: white;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--coral);
  border-color: var(--coral);
}

.btn-outline:hover {
  background: var(--coral);
  color: white;
  transform: translateY(-1px);
}

.hero .btn-outline {
  color: var(--text-on-dark);
  border-color: rgba(232, 228, 220, 0.3);
}

.hero .btn-outline:hover {
  background: rgba(232, 228, 220, 0.1);
  border-color: var(--text-on-dark);
  color: var(--text-on-dark);
}

/* ==========================================================================
   MUSIC SECTION
   ========================================================================== */
.music-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.music-stream {
  margin-bottom: 2.5rem;
}

.music-stream h3,
.music-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.album-card iframe {
  border-radius: var(--radius);
}

.music-more {
  margin-bottom: 2.5rem;
}

.music-more h3 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* Listen links */
.listen-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.listen-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.listen-link:hover {
  color: var(--coral);
  border-color: var(--coral);
  background: rgba(232, 115, 74, 0.05);
}

.listen-link svg {
  flex-shrink: 0;
}

/* ==========================================================================
   MERCH SECTION
   ========================================================================== */
.merch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.merch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}

.merch-item:hover {
  border-color: var(--coral);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(45, 42, 38, 0.08);
  color: var(--text);
}

.merch-img {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.merch-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.merch-item h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.merch-item p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.merch-price {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--coral);
}

@media (max-width: 768px) {
  .merch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .merch-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .merch-item {
    padding: 1.25rem 1rem;
  }
}

/* ==========================================================================
   VIDEO SECTION
   ========================================================================== */
.video-wrapper {
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-dark);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-carousel {
  position: relative;
}

.video-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(13, 17, 23, 0.6);
  color: white;
  border: none;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
  line-height: 1;
}

.video-nav:hover {
  opacity: 1;
  background: rgba(13, 17, 23, 0.85);
}

.video-prev { left: -22px; }
.video-next { right: -22px; }

.video-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.video-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.video-dot.active {
  background: var(--coral);
  border-color: var(--coral);
}

.video-dot:hover {
  border-color: var(--coral);
}

@media (max-width: 768px) {
  .video-prev { left: 8px; }
  .video-next { right: 8px; }
}

.video-cta {
  text-align: center;
}

/* ==========================================================================
   SHOWS SECTION
   ========================================================================== */
.shows-widget {
  max-width: 700px;
  margin: 0 auto;
  min-height: 200px;
}

/* Override Bandsintown widget styles to match our aesthetic */
.bit-widget .bit-event {
  font-family: var(--font-body) !important;
}

.bit-no-dates-container {
  font-family: var(--font-mono) !important;
}

.no-shows-cta {
  text-align: center;
  margin-top: 2rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}

.no-shows-cta p {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   PHOTOS / GALLERY
   ========================================================================== */
.photo-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.photo-track {
  display: flex;
  gap: 0.75rem;
  transition: transform 0.4s ease;
  width: 100%;
}

.photo-slide {
  min-width: calc((100% - 1.5rem) / 3);
  max-width: calc((100% - 1.5rem) / 3);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--bg-dark);
  flex-shrink: 0;
}

.photo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s, opacity 0.3s;
}

.photo-slide:hover img {
  transform: scale(1.05);
  opacity: 0.85;
}

.photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 2.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 2;
  border-radius: var(--radius);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.photo-nav:hover {
  opacity: 1;
}

.photo-prev { left: 0.5rem; }
.photo-next { right: 0.5rem; }

.gallery-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 2rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.gallery-placeholder code {
  background: rgba(45, 42, 38, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(13, 17, 23, 0.95);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: pointer;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-on-dark);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-on-dark);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 1rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-nav:hover {
  opacity: 1;
}

.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }

@media (max-width: 768px) {
  .photo-slide {
    min-width: calc((100% - 0.75rem) / 2);
    max-width: calc((100% - 0.75rem) / 2);
  }
}

@media (max-width: 480px) {
  .photo-slide {
    min-width: 100%;
    max-width: 100%;
  }
}

/* ==========================================================================
   INSTAGRAM SECTION
   ========================================================================== */
.instagram-feed {
  max-width: 900px;
  margin: 0 auto;
}

.instagram-widget {
  max-width: 100%;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.instagram-cta {
  text-align: center;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.about-lead {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--coral);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--text);
}

.members {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.members h3 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.members ul {
  list-style: none;
}

.members li {
  font-size: 0.95rem;
  padding: 0.3rem 0;
  color: var(--text);
}

.members li strong {
  font-weight: 600;
}

.photo-placeholder {
  aspect-ratio: 3 / 4;
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.photo-note {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.about-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

/* ==========================================================================
   MAILING LIST
   ========================================================================== */
.mailing-list {
  text-align: center;
}

.signup-form {
  display: flex;
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto 1rem;
}

.signup-form input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}

.signup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--coral);
}

.signup-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.form-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 3rem 0;
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-social a {
  color: var(--text-muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.footer-social a:hover {
  color: var(--coral);
}

.footer-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.footer-info a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-info a:hover {
  color: var(--coral);
}

.footer-robot {
  margin-top: 1.5rem;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: rgba(160, 154, 147, 0.4);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --section-pad: 3.5rem 0;
  }

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

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 253, 245, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    color: var(--text) !important;
    display: block;
    padding: 0.75rem 0;
  }

  /* Music grid */
  .album-grid {
    grid-template-columns: 1fr;
  }

  /* About */
  .about-content {
    grid-template-columns: 1fr;
  }

  .about-photo {
    order: -1;
  }

  /* Signup form */
  .signup-form {
    flex-direction: column;
  }

  /* Hero */
  .hero-title {
    font-size: clamp(3rem, 15vw, 5rem);
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .listen-links {
    gap: 0.5rem;
  }

  .listen-link {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
