/* Base Styles */
/* Nota: Inter é carregada via <link> em head.php — @import removido para evitar carregamento duplo */

/* Font-smoothing apenas em dispositivos não-touch (mouse) para não afinar o peso em mobile */
@media (pointer: fine) {
  * {
    -webkit-font-smoothing: antialiased;
  }
}

:root {
  /* Neutral Color Palette */
  --color-primary: #71717a;
  /* zinc-500 */
  --color-primary-hover: #a1a1aa;
  /* zinc-400 */
  --color-accent: #e4e4e7;
  /* zinc-200 */
  --color-surface: #18181b;
  /* zinc-900 */
  --color-surface-hover: #27272a;
  /* zinc-800 */
  --color-border: #3f3f46;
  /* zinc-700 */
  --color-text-primary: #ffffff;
  --color-text-secondary: #a1a1aa;
  --color-text-muted: #71717a;
  --color-black: #000000;
  --color-white: #ffffff;
}

body {
  font-family: "Inter", sans-serif;
}

.text-shadow {
  text-shadow:
    0 2px 16px rgba(0, 0, 0, 0.95),
    0 1px 4px rgba(0, 0, 0, 0.7);
}

.title-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* Acentos de maiúsculas (Ã, Ç, É) desenham acima da caixa da linha com
     line-height ≤ 1; o padding-top amplia a área de clip do overflow:hidden
     e a margem negativa compensa para o layout não deslocar.
     Não usar padding-bottom: com line-clamp ele revela fragmentos da linha cortada. */
  padding-top: 0.15em;
  margin-top: -0.15em;
  padding-bottom: 0;
  line-height: 1.05;
}

@media (min-width: 1024px) {
  .title-clamp {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}

.glass-effect {
  backdrop-filter: blur(20px) saturate(130%);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.2) 35%,
    rgba(0, 0, 0, 0.5) 70%,
    rgba(0, 0, 0, 0.82) 100%
  );
}

.hero-bg {
  position: absolute;
  inset: 0;
  transition: opacity 1.5s ease;
}

.hero-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.85) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.85) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.75) 40%,
    rgba(0, 0, 0, 1) 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.75) 40%,
    rgba(0, 0, 0, 1) 100%
  );
}

.hero-texture::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 5% 95%,
      rgba(113, 113, 122, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 60% 50% at 95% 5%,
      rgba(255, 255, 255, 0.03) 0%,
      transparent 45%
    ),
    radial-gradient(
      ellipse 160% 50% at 50% 120%,
      rgba(0, 0, 0, 0.75) 0%,
      transparent 65%
    );
}

/* Focus States - Neutral */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-primary-hover);
  outline-offset: 2px;
}

/* Header */
#header {
  transition:
    background 0.4s ease-out,
    backdrop-filter 0.4s ease-out,
    border-color 0.4s ease-out,
    box-shadow 0.4s ease-out;
  border-bottom: 1px solid transparent;
}

.header-scrolled {
  backdrop-filter: blur(20px) saturate(150%);
  background: rgba(var(--accent-dynamic-rgb, 0, 0, 0), 0.75);
  border-bottom-color: rgba(var(--accent-dynamic-rgb, 63, 63, 70), 0.5);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero-offset-mobile {
  padding-top: calc(env(safe-area-inset-top) + var(--header-height, 0px));
}

/* ============================================
   HERO SCALING — Tudo GRANDE para preencher o espaço
   Viewport padrão desktop: ~900px altura
   ============================================ */

/* Mobile-first (default) */
.hero-cover-responsive {
  width: clamp(10rem, 24svh, 15rem);
  height: clamp(10rem, 24svh, 15rem);
}

/* Título bem grande no mobile também */
/* Título — mobile: compacto para 3 linhas não empurrar os controles */
.hero-title-responsive {
  font-size: clamp(1.8rem, 7svh, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

/* Artista: ~46% do título */
.hero-artist-responsive {
  font-size: clamp(1.05rem, 3.25svh, 1.65rem);
  letter-spacing: 0em;
  font-weight: 600;
}

.hero-spacing-responsive {
  gap: clamp(1rem, 2.5svh, 2rem);
}

.hero-controls-responsive {
  gap: clamp(1rem, 2.5svh, 1.75rem);
}

.hero-play-responsive {
  width: clamp(3.5rem, 8svh, 4.75rem);
  height: clamp(3.5rem, 8svh, 4.75rem);
}

.hero-nav-responsive {
  width: clamp(2.25rem, 4.5svh, 2.875rem);
  height: clamp(2.25rem, 4.5svh, 2.875rem);
}

/* Desktop (lg+): LARGE — preencher o espaço vazio */
@media (min-width: 1024px) {
  /* Capa GRANDE — cabe na coluna 1/3 sem overflow */
  .hero-cover-desktop {
    width: clamp(16rem, 30svh, 24rem);
    /* 256px – 384px (cabe bem em 1/3 do container) */
    height: clamp(16rem, 30svh, 24rem);
    max-width: 100%;
  }

  /* Título MUITO GRANDE — a frase deve dominar */
  .hero-title-desktop {
    font-size: clamp(3.75rem, 8.5svh, 7rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
  }

  /* Artista: ~46% do título */
  .hero-artist-desktop {
    font-size: clamp(1.75rem, 4.5svh, 3.25rem);
    font-weight: 500;
    letter-spacing: -0.015em;
  }

  /* Gap entre as colunas */
  .hero-spacing-desktop {
    gap: clamp(1.75rem, 3.5svh, 3rem);
  }

  /* Gap dos controles */
  .hero-controls-desktop {
    gap: clamp(1.5rem, 3svh, 2.25rem);
  }

  /* Play button — focal point secundário ao título */
  .hero-play-desktop {
    width: clamp(5rem, 10svh, 7.5rem);
    height: clamp(5rem, 10svh, 7.5rem);
  }

  /* Nav buttons ~45% do play no desktop */
  .hero-nav-desktop {
    width: clamp(2.25rem, 4.5svh, 3.25rem);
    height: clamp(2.25rem, 4.5svh, 3.25rem);
  }

  /* Ícone play desktop: ~50% do botão (Spotify/Apple Music pattern) */
  .hero-play-icon {
    width: clamp(2.5rem, 5svh, 3.75rem);
    height: clamp(2.5rem, 5svh, 3.75rem);
  }

  /* Ícone nav desktop: ~60% do botão */
  .hero-nav-icon {
    width: clamp(1.35rem, 2.7svh, 1.95rem);
    height: clamp(1.35rem, 2.7svh, 1.95rem);
  }
}

/* Ícone play mobile: ~50% do botão */
.hero-play-icon {
  width: clamp(1.75rem, 4svh, 2.375rem);
  height: clamp(1.75rem, 4svh, 2.375rem);
}

/* Ícone nav mobile: ~60% do botão */
.hero-nav-icon {
  width: clamp(1.35rem, 2.7svh, 1.725rem);
  height: clamp(1.35rem, 2.7svh, 1.725rem);
}
