/* ============================================
   ANTSID Link-in-Bio — "The Art Wall"
   Dark background, artwork as visual design
   Research-backed: face hero + art grid + minimal containers
   ============================================ */

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Custom Properties --- */
:root {
  --bg: #0A0A0A;
  --surface: #111111;
  --surface-hover: #181818;
  --border: #1e1e1e;
  --text-primary: #F5F5F5;
  --text-secondary: #999999;
  --text-muted: #666666;
  --accent: #C8A461;

  --spotify: #1DB954;
  --apple-music: #fc3c44;
  --youtube: #FF0000;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --gap: 10px;
  --radius: 14px;
  --radius-sm: 10px;
  --page-padding: 16px;
  --max-width: 480px;
}

/* --- Base --- */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh; /* dvh for iOS Safari dynamic toolbar */
  display: flex;
  justify-content: center;
  overflow-x: hidden; /* prevent horizontal scroll from any edge case */
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* --- Page Container --- */
.page {
  width: 100%;
  max-width: var(--max-width);
  padding-bottom: 48px;
}

/* ============================================
   HERO: Full-width artist photo
   Research: Face as hero = +95% conversion (Medalia Art)
   60% of successful musician sites lead with artist photo
   Parasocial bond from IG reinforced by face
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 520px;
  overflow: hidden;
  margin-bottom: var(--gap);
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(10, 10, 10, 0.4) 60%,
    rgba(10, 10, 10, 0.95) 90%,
    var(--bg) 100%
  );
  pointer-events: none;
}

.hero__content {
  position: absolute;
  bottom: 24px;
  left: var(--page-padding);
  right: var(--page-padding);
}

.hero__name {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.hero__tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 300;
  margin-top: 8px;
  letter-spacing: 0.04em;
}

/* ============================================
   BENTO GRID
   ============================================ */
.bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  padding: 0 var(--page-padding);
}

/* --- Card Base --- */
.bento__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.bento__card:hover,
.bento__card:focus-visible {
  border-color: #2a2a2a;
}

/* Section labels */
.section-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* ============================================
   FEATURED RELEASE
   Research: Hybrid approach — album art as primary CTA card
   Album art CTA says "here's what I want you to do next"
   ============================================ */
.bento__card--featured {
  grid-column: 1 / -1;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: none;
}

.bento__card--featured:hover,
.bento__card--featured:focus-visible {
  border-color: transparent;
}

.featured__art-link {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.featured__art {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.featured__art-link:hover .featured__art {
  transform: scale(1.03);
}

.featured__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bg);
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 4px;
}

.featured__player {
  padding: 0;
  background: var(--surface);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}

.featured__player iframe {
  display: block;
  border: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* Spotify facade: lightweight placeholder, loads real embed on tap */
.spotify-facade {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 80px;
  background: var(--surface);
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s ease;
}

.spotify-facade:hover {
  background: var(--surface-hover);
}

.spotify-facade:hover span {
  color: #1DB954;
}

/* ============================================
   STREAMING LINKS
   Research: CTA specificity improves CTR 15-30%
   Fewer links = higher conversion (5-7 max)
   ============================================ */
.bento__card--stream {
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 18px 10px;
  font-size: 0.8rem;
  font-weight: 500;
}

.bento__card--stream svg {
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.bento__card--stream:hover svg {
  opacity: 1;
}

.bento__card--stream:hover,
.bento__card--stream:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Platform brand colors on hover */
.bento__card--stream[aria-label*="Spotify"]:hover,
.bento__card--stream[aria-label*="Spotify"]:focus-visible {
  border-color: var(--spotify);
  box-shadow: 0 4px 20px rgba(29, 185, 84, 0.12);
}

.bento__card--stream[aria-label*="Apple Music"]:hover,
.bento__card--stream[aria-label*="Apple Music"]:focus-visible {
  border-color: var(--apple-music);
  box-shadow: 0 4px 20px rgba(252, 60, 68, 0.12);
}

.bento__card--stream[aria-label*="YouTube"]:hover,
.bento__card--stream[aria-label*="YouTube"]:focus-visible {
  border-color: var(--youtube);
  box-shadow: 0 4px 20px rgba(255, 0, 0, 0.12);
}

.bento__card--more-toggle:hover,
.bento__card--more-toggle:focus-visible {
  border-color: var(--accent);
}

/* More platforms container */
.bento__more {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.bento__more[hidden] {
  display: none;
}

/* ============================================
   DISCOGRAPHY: Album Art Grid
   Research: 25% of link-in-bio clicks from images (Linkfire)
   Grid = 17.1% higher revenue per visitor (SmartWool)
   NN/g: grids best for visual-appeal products
   Every major platform defaults to art grid
   ============================================ */
.bento__card--discography {
  grid-column: 1 / -1;
  padding: 16px;
}

.disco-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.disco-grid__item {
  position: relative;
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.disco-grid__item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.disco-grid__item:hover {
  transform: scale(1.05);
  z-index: 1;
}

.disco-grid__title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 6px;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.disco-grid__item:hover .disco-grid__title {
  opacity: 1;
}

.disco-grid__type {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent);
  color: var(--bg);
  padding: 1px 5px;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.disco-grid__item:hover .disco-grid__type {
  opacity: 1;
}

/* ============================================
   PRESS
   Research: Editorial credibility, left accent border
   ============================================ */
.bento__card--press {
  grid-column: 1 / -1;
  padding: 20px 20px 20px 18px;
  border-left: 3px solid var(--accent);
  position: relative;
}

.bento__card--press:hover,
.bento__card--press:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.bento__card--press::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  right: 14px;
  font-size: 2.5rem;
  font-family: Georgia, serif;
  color: var(--accent);
  opacity: 0.12;
  line-height: 1;
  pointer-events: none;
}

.bento__card--press blockquote {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bento__card--press p {
  font-size: 1rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
}

.bento__card--press cite {
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* ============================================
   ABOUT
   ============================================ */
.bento__card--about {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px 20px;
}

.bento__card--about p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
}

.about__location {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================
   FOOTER: Social Links
   ============================================ */
.footer {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 32px var(--page-padding) 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.footer a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--text-primary);
}

/* ============================================
   FOCUS / ACCESSIBILITY
   ============================================ */
.bento__card:focus-visible,
.footer a:focus-visible,
.featured__art-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Small screens */
@media (max-width: 359px) {
  :root {
    --gap: 8px;
    --page-padding: 12px;
  }

  .hero__name {
    font-size: 2rem;
    letter-spacing: 0.15em;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .bento__card--stream {
    grid-column: 1 / -1;
  }

  .bento__more {
    grid-template-columns: 1fr;
  }

  .disco-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Medium-small: 3-col disco for readability (~80px per cover) */
@media (min-width: 360px) and (max-width: 419px) {
  .disco-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Medium+: 5-col disco grid fits well */
@media (min-width: 420px) {
  .disco-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Larger screens */
@media (min-width: 600px) {
  :root {
    --max-width: 560px;
    --gap: 12px;
  }

  .hero__name {
    font-size: 3.2rem;
  }

  .hero {
    max-height: 600px;
  }

  /* Press side by side */
  .bento__card--press {
    grid-column: auto;
  }
}

/* No hover on touch */
@media (hover: none) {
  .bento__card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
  }

  .bento__card--press:hover {
    border-left-color: var(--accent);
  }

  .bento__card--stream[aria-label*="Spotify"]:hover,
  .bento__card--stream[aria-label*="Apple Music"]:hover,
  .bento__card--stream[aria-label*="YouTube"]:hover,
  .bento__card--more-toggle:hover {
    border-color: var(--border);
    box-shadow: none;
  }

  .featured__art-link:hover .featured__art {
    transform: none;
  }

  .disco-grid__item:hover {
    transform: none;
  }

  /* On touch, always show titles on album art */
  .disco-grid__title {
    opacity: 1;
  }

  .disco-grid__type {
    opacity: 1;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
