/* ============================================================
   North Rim Records - Editorial Style with Gold Holographic Foil
   ============================================================ */

:root {
  --color-cream: #f5f0e6;
  --color-cream-light: #faf6ed;
  --color-brown: #1c1206;
  --color-brown-mid: #4a3c2a;
  --color-brown-light: #8a7a62;
  --color-gold: #c9a227;
  --color-gold-dark: #a68520;
  --color-gold-light: #d4b84a;
  
  --font-display: 'Rokkitt', 'Rockwell', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --max-width: 1920px;
  --radius: 4px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-brown);
  background: var(--color-cream);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   Unified Gold Foil Effect - MOVEMENT BASED (no animation)
   Applied to .foil-element with [data-tilt]
   Color shifts based on mouse position, freezes when mouse stops
   ============================================================ */
.foil-element {
  --foil-x: 50%;
  --foil-y: 50%;
  --foil-pos: 50%;
  
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Holographic foil overlay */
.foil-element::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 240, 255, 0.6) 0%,
    rgba(255, 78, 205, 0.6) 25%,
    rgba(255, 224, 102, 0.6) 50%,
    rgba(124, 255, 107, 0.6) 75%,
    rgba(139, 92, 246, 0.6) 100%
  );
  background-size: 300% 300%;
  background-position: var(--foil-pos) var(--foil-pos);
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
  border-radius: inherit;
  
  /* Light spot mask that follows cursor */
  -webkit-mask-image: radial-gradient(
    ellipse 80% 80% at var(--foil-x) var(--foil-y),
    black 0%,
    transparent 70%
  );
  mask-image: radial-gradient(
    ellipse 80% 80% at var(--foil-x) var(--foil-y),
    black 0%,
    transparent 70%
  );
}

/* Show foil only on hover - NO ANIMATION, position driven by JS */
.foil-element:hover::before {
  opacity: 1;
}

/* ============================================================
   Header - Logo touches top of viewport
   ============================================================ */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem 1.5rem 0;
}

.header__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo - square gold background with foil effect, touching top */
.header__brand {
  display: block;
  background: var(--color-gold);
  padding: 0.75rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
}

.header__logo {
  width: 80px;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  /* Make logo dark/black on gold background */
  filter: brightness(0);
}

.header__nav {
  display: flex;
  gap: 0.5rem;
  padding-top: 1.5rem;
}

/* Nav links - white with gold holographic background on hover */
.header__link {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-cream-light);
  padding: 0.5em 0.8em;
  transition: all 0.2s ease;
  background: transparent;
  border-radius: var(--radius);
}

.header__link:hover {
  color: var(--color-brown);
  background: var(--color-gold);
}

/* ============================================================
   Hero - Sepia image with gold overlay + vinyl grooves
   ============================================================ */
.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  max-height: 700px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  background: url('../assets/img/north-rim-records-label-hero.webp') center/cover no-repeat;
  /* Sepia tone filter */
  filter: sepia(0.5) saturate(0.9) brightness(0.85);
}

/* Gold gradient overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(139, 105, 20, 0.85) 0%,
    rgba(166, 133, 32, 0.75) 30%,
    rgba(201, 162, 39, 0.65) 60%,
    rgba(212, 184, 74, 0.55) 100%
  );
  mix-blend-mode: multiply;
}

/* Vinyl record concentric circles overlay - fades toward bottom */
.hero__grooves {
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(
    circle at 50% 120%,
    transparent 0px,
    transparent 4px,
    rgba(255, 255, 255, 0.18) 4px,
    rgba(255, 255, 255, 0.18) 6px
  );
  pointer-events: none;
  /* Fade out toward bottom for text readability */
  -webkit-mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 40%,
    transparent 75%
  );
  mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 40%,
    transparent 75%
  );
}

/* Additional layer for text readability at bottom */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28, 18, 6, 0.5) 0%,
    transparent 40%
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 4rem;
  color: var(--color-cream-light);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.hero__subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 700px;
}

/* CTA Button - Gold with foil */
.hero__cta {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-brown);
  background: var(--color-gold);
  padding: 0.9em 1.8em;
  border: none;
  border-radius: var(--radius);
}

/* ============================================================
   Releases
   ============================================================ */
.releases {
  padding: 5rem 2rem;
  background: var(--color-cream);
}

.releases__container {
  max-width: 1400px;
  margin: 0 auto;
}

.releases__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-brown);
  margin-bottom: 2rem;
}

.releases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}

/* Release Card */
.release {
  display: flex;
  flex-direction: column;
  min-width: 0; /* Prevent grid blowout */
}

/* Album Cover - enforce square aspect ratio */
.release__cover {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* 1:1 aspect ratio */
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(28, 18, 6, 0.15);
  border-radius: var(--radius);
  display: block;
}

.release__cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

a.release__cover:hover img {
  transform: scale(1.03);
}

/* Badge - Gold with foil */
.release__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--color-gold);
  color: var(--color-brown);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5em 0.8em;
  border-radius: var(--radius);
  z-index: 2;
}

/* Release meta info */
.release__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.release__artist {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-brown-light);
}

.release__album {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-brown);
  margin-bottom: 0.25rem;
}

.release__genre {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold-dark);
  background: rgba(201, 162, 39, 0.15);
  padding: 0.3em 0.6em;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  align-self: flex-start;
}

.release__description {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-brown-mid);
  margin-top: 0.25rem;
}

.release__link {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gold-dark);
  margin-top: 0.75rem;
  transition: color 0.2s ease;
}

.release__link:hover {
  color: var(--color-brown);
}

/* ============================================================
   About
   ============================================================ */
.about {
  padding: 5rem 2rem;
  background: var(--color-cream-light);
  border-top: 1px solid rgba(28, 18, 6, 0.1);
}

.about__container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-brown);
  margin-bottom: 1.5rem;
}

.about__text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-brown-mid);
  margin-bottom: 1.5rem;
}

.about__tagline {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-brown);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: 3rem 2rem 2rem;
  background: var(--color-brown);
  color: var(--color-cream);
}

.footer__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.footer__main {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(245, 240, 230, 0.15);
}

.footer__heading {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-cream);
  opacity: 0.6;
  margin-bottom: 0.75rem;
}

.footer__email-img {
  height: 20px;
  width: auto;
  opacity: 0.9;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copyright {
  font-size: 0.8rem;
  opacity: 0.5;
}

.footer__mark {
  width: 32px;
  height: 32px;
  opacity: 0.4;
  filter: brightness(0) invert(1);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1200px) {
  .releases__grid {
    gap: 1.5rem;
  }
}

@media (max-width: 900px) {
  .releases__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .header {
    padding: 0 1.25rem 1rem 0;
  }
  
  .header__container {
    padding: 0 1.25rem;
  }
  
  .header__brand {
    padding: 0.5rem 0.75rem;
  }
  
  .header__logo {
    width: 60px;
  }
  
  .header__nav {
    gap: 0.25rem;
    padding-top: 1rem;
  }
  
  .header__link {
    font-size: 0.7rem;
    padding: 0.4em 0.6em;
  }
  
  .hero {
    height: 60vh;
    min-height: 400px;
  }
  
  .hero__content {
    padding: 2rem 1.25rem;
  }
  
  .releases,
  .about {
    padding: 3rem 1.25rem;
  }
  
  .releases__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .footer {
    padding: 2rem 1.25rem 1.5rem;
  }
  
  .footer__container {
    padding: 0;
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
