/* Mobile-first Vice City Link-in-Bio & Storefront — Leonida Import */
@import url("./tokens.css");
@import url("./base.css");

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  background-color: var(--color-paper);
  background-image:
    radial-gradient(circle 75vw at 50% 0%, color-mix(in oklab, var(--color-accent-2) 22%, transparent), transparent 62%),
    radial-gradient(circle 66vw at 88% 36%, color-mix(in oklab, var(--color-accent-3) 18%, transparent), transparent 64%),
    radial-gradient(circle 62vw at 14% 88%, color-mix(in oklab, var(--color-accent) 14%, transparent), transparent 65%);
  background-attachment: fixed;
  color: var(--color-ink);
  font-family: var(--font-body);
}

.skip {
  position: absolute;
  left: var(--space-md);
  top: calc(-1 * var(--space-3xl));
  z-index: var(--z-toast);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus-visible {
  top: var(--space-md);
}

/* Mobile-centered page column */
.page-shell {
  width: 100%;
  max-width: var(--container-mobile);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-top: var(--space-md);
  padding-bottom: var(--space-3xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

main {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

/* Compact sticky pill navigation */
.quick-nav {
  position: sticky;
  top: var(--space-sm);
  z-index: var(--z-sticky-nav);
  display: flex;
  justify-content: center;
}

.quick-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  list-style: none;
  margin: 0;
  padding: var(--space-2xs);
  border-radius: var(--radius-pill);
  background: color-mix(in oklab, var(--color-paper-2) 86%, transparent);
  backdrop-filter: blur(16px);
  border: var(--rule-hair) solid var(--color-rule-2);
  box-shadow: var(--shadow-soft);
  max-width: 100%;
  overflow-x: auto;
}

.quick-nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 var(--space-sm);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}

.quick-nav__list a:hover {
  background-color: var(--color-paper-3);
  color: var(--color-ink);
}

.quick-nav__list a.is-active {
  background-color: var(--color-paper-3);
  color: var(--color-accent);
}

/* 1. Início (Hero estilo Link na Bio) */
.bio-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  padding-top: var(--space-sm);
  scroll-margin-top: var(--space-3xl);
}

@keyframes avatarPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 color-mix(in oklab, var(--color-accent-2) 35%, transparent), var(--shadow-neon-pink);
  }
  50% {
    box-shadow: 0 0 0 6px color-mix(in oklab, var(--color-accent) 18%, transparent), var(--shadow-neon-accent);
  }
}

.bio-avatar {
  width: 136px;
  height: 136px;
  border-radius: var(--radius-pill);
  padding: var(--space-xs);
  background-color: var(--color-paper);
  border: 2px solid color-mix(in oklab, var(--color-accent-2) 78%, var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: avatarPulse 5s var(--ease-out) infinite;
}

.bio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-pill);
}

.bio-hero__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.bio-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  max-width: 18ch;
  color: var(--color-ink);
}

.bio-hero__desc {
  color: var(--color-ink-2);
  font-size: var(--text-md);
  line-height: 1.55;
  max-width: 32ch;
}

/* Link-in-Bio pill stack */
.bio-links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.pill-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 54px;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-pill);
  border: var(--rule-hair) solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}

.pill-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, color-mix(in oklab, var(--color-ink) 28%, transparent) 50%, transparent 75%);
  transform: translateX(-110%);
  transition: transform var(--dur-long) var(--ease-out);
  pointer-events: none;
}

.pill-btn:hover::after {
  transform: translateX(110%);
}

.pill-btn:active {
  transform: scale(0.985);
}

.pill-btn--light {
  background-color: var(--color-pill);
  color: var(--color-pill-ink);
  box-shadow: var(--shadow-soft);
}

.pill-btn--light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-neon-pink);
}

.pill-btn--accent {
  background-color: var(--color-accent);
  color: var(--color-accent-ink);
  box-shadow: var(--shadow-neon-accent);
}

.pill-btn--accent:hover {
  transform: translateY(-2px);
  background-color: var(--color-accent-2);
  color: var(--color-accent-ink);
  box-shadow: var(--shadow-neon-pink);
}

.pill-btn--outline {
  background-color: var(--color-paper-2);
  color: var(--color-ink);
  border-color: var(--color-rule-2);
}

.pill-btn--outline:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
  background-color: var(--color-paper-3);
}

/* Section blocks */
.bio-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  scroll-margin-top: var(--space-3xl);
}

.bio-section__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.bio-section__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--color-ink);
  max-width: none;
}

.bio-section__rule {
  width: 48px;
  height: 3px;
  border-radius: var(--radius-pill);
  background-color: var(--color-accent-2);
}

/* 2. Produtos — Card compacto estilo Link na Bio com foto lateral */
.catalog-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.product-card {
  background-color: var(--color-paper-2);
  color: var(--color-ink);
  border: var(--rule-hair) solid var(--color-rule-2);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: transform var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent-2);
  box-shadow: var(--shadow-neon-pink);
}

.product-card__top {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--space-md);
  align-items: center;
}

.product-card__media {
  margin: 0;
  width: 96px;
  height: 96px;
  border-radius: var(--radius-inner);
  background-color: var(--color-paper);
  border: var(--rule-hair) solid var(--color-rule-2);
  overflow: hidden;
  flex-shrink: 0;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-long) var(--ease-out);
}

.product-card:hover .product-card__media img {
  transform: scale(1.04);
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  min-width: 0;
  text-align: left;
}

.product-card__body h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-ink);
  max-width: none;
  line-height: 1.15;
}

.product-card__desc {
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  line-height: 1.5;
  max-width: none;
}

.product-card__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-xs);
  padding-top: var(--space-2xs);
}

.product-card__actions .pill-btn {
  min-height: 46px;
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-sm);
}

@media (min-width: 26rem) {
  .product-card__top {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .product-card__media {
    width: 112px;
    height: 112px;
  }
}

/* 3 & 4. Sobre nós & Contato Cards */
.info-card {
  background-color: var(--color-paper-2);
  color: var(--color-ink);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  transition: transform var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}

.info-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-rule-2);
}

.info-card p {
  color: var(--color-ink-2);
  font-size: var(--text-md);
  line-height: 1.65;
  max-width: 38ch;
}

.info-card__number {
  font-size: var(--text-lg);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-accent);
}

/* Footer */
.bio-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2xs);
  padding-top: var(--space-lg);
  margin-top: var(--space-sm);
  border-top: var(--rule-hair) solid var(--color-rule);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

/* Floating WhatsApp Button */
@keyframes waRing {
  0% {
    transform: scale(1);
    opacity: 0.65;
  }
  75%, 100% {
    transform: scale(1.42);
    opacity: 0;
  }
}

.wa-fab {
  position: fixed;
  right: var(--space-md);
  bottom: var(--space-md);
  z-index: var(--z-sticky);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background-color: var(--color-live);
  color: var(--color-live-ink);
  box-shadow: var(--shadow-neon-live);
  text-decoration: none;
  transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}

.wa-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-live);
  animation: waRing 2.8s var(--ease-out) infinite;
  pointer-events: none;
}

.wa-fab:hover {
  transform: translateY(-3px) scale(1.04);
  background-color: var(--color-accent);
  color: var(--color-accent-ink);
}

.wa-fab:active {
  transform: translateY(1px);
}

/* Entrance Reveals (safe even with JS disabled) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (min-width: 48rem) {
  .page-shell {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-3xl);
  }

  .wa-fab {
    right: var(--space-lg);
    bottom: var(--space-lg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bio-avatar,
  .wa-fab::before {
    animation: none;
  }

  .pill-btn,
  .pill-btn::after,
  .product-card,
  .product-card__media img,
  .info-card,
  .quick-nav__list a,
  .wa-fab,
  .js [data-reveal] {
    transition: none;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .pill-btn:hover,
  .product-card:hover,
  .product-card:hover .product-card__media img,
  .info-card:hover,
  .wa-fab:hover {
    transform: none;
  }
}
