/* ==========================================================================
   ESTILOS PERSONALIZADOS - SNEAKER PORTFOLIO SHOWCASE
   Inspirado no estilo Apple & 21st.dev (Liquid Glass, Spotlight, Splite, Container Scroll)
   Paleta: Tons de Branco Puro/Estúdio + Toques de Azul Gelo (Ice Blue)
   ========================================================================== */

:root {
  --color-ice-50: #f0f9ff;
  --color-ice-100: #e0f2fe;
  --color-ice-200: #bae6fd;
  --color-ice-400: #38bdf8;
  --color-ice-500: #0ea5e9;
  --color-ice-600: #0284c7;
  --color-white-studio: #fcfdfe;
  --color-white-card: rgba(255, 255, 255, 0.88);
}

/* Suavidade global e tipografia */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #f8fafc;
  color: #0f172a;
  overflow-x: hidden;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* --------------------------------------------------------------------------
   1. COMPONENTE 21st.dev: LIQUID GLASS BUTTON (@designali-in)
   -------------------------------------------------------------------------- */
.liquid-glass-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 9999px;
  box-shadow: 
    0 4px 20px -2px rgba(56, 189, 248, 0.18),
    0 2px 6px rgba(15, 23, 42, 0.04),
    inset 0 1px 1px 0 rgba(255, 255, 255, 1);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
  min-height: 48px;
}

/* Efeito do feixe de líquido deslizando */
.liquid-glass-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    rgba(186, 230, 253, 0.6),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.75s ease-in-out;
  pointer-events: none;
}

.liquid-glass-btn:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-2px);
  box-shadow: 
    0 10px 25px -3px rgba(56, 189, 248, 0.3),
    0 4px 10px rgba(15, 23, 42, 0.06),
    inset 0 1px 2px 0 rgba(255, 255, 255, 1);
  border-color: rgba(186, 230, 253, 0.8);
}

.liquid-glass-btn:hover::before {
  left: 150%;
}

.liquid-glass-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Variação em tom de Azul Gelo Profundo */
.liquid-glass-btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 25px -4px rgba(2, 132, 199, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.liquid-glass-btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  box-shadow: 
    0 12px 30px -4px rgba(2, 132, 199, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   2. COMPONENTE 21st.dev: SPOTLIGHT CARD (@jahed)
   -------------------------------------------------------------------------- */
.spotlight-card {
  position: relative;
  background: var(--color-white-card);
  border-radius: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.spotlight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -10px rgba(56, 189, 248, 0.12), 0 1px 3px rgba(15, 23, 42, 0.05);
}

/* Efeito da luz spotlight dinâmica via variáveis CSS setadas pelo JS */
.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(56, 189, 248, 0.18),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   3. COMPARADOR INTERATIVO ANTES / DEPOIS (SPLIT SLIDER)
   -------------------------------------------------------------------------- */
.splite-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 1.5rem;
  user-select: none;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
}

.splite-image-before,
.splite-image-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  background-color: #ffffff;
}

.splite-image-after {
  object-fit: cover;
}

.splite-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: polygon(0 0, var(--split-pos, 50%) 0, var(--split-pos, 50%) 100%, 0 100%);
  pointer-events: none;
}

.splite-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split-pos, 50%);
  width: 3px;
  background: #0284c7;
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.8);
  cursor: ew-resize;
  z-index: 20;
  transform: translateX(-50%);
}

.splite-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 2px solid #0284c7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
  color: #0284c7;
}

/* --------------------------------------------------------------------------
   4. COMPONENTE 21st.dev: CONTAINER SCROLL ANIMATION (@manuarora700)
   -------------------------------------------------------------------------- */
.container-scroll-perspective {
  perspective: 1200px;
  perspective-origin: center top;
}

.container-scroll-card {
  transform: rotateX(14deg) scale(0.94);
  transform-style: preserve-3d;
  transition: transform 0.1s cubic-bezier(0.1, 0.2, 0.3, 1), box-shadow 0.3s ease;
  box-shadow: 
    0 30px 60px -12px rgba(15, 23, 42, 0.12),
    0 18px 36px -18px rgba(56, 189, 248, 0.15),
    0 0 0 1px rgba(226, 232, 240, 0.9);
}

/* --------------------------------------------------------------------------
   5. HOTSPOTS INTERATIVOS (ESTILO APPLE)
   -------------------------------------------------------------------------- */
.hotspot-point {
  position: absolute;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
}

.hotspot-dot {
  position: absolute;
  inset: 6px;
  background: #0284c7;
  border: 2.5px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.6);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hotspot-pulse {
  position: absolute;
  inset: 0;
  border: 2px solid #38bdf8;
  border-radius: 50%;
  animation: pulseGlow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseGlow {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.hotspot-point:hover .hotspot-dot {
  transform: scale(1.25);
  background: #0ea5e9;
}

/* Tooltip do Hotspot */
.hotspot-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  backdrop-filter: blur(8px);
  padding: 0.5rem 0.875rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 30;
}

.hotspot-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(15, 23, 42, 0.92);
}

.hotspot-point:hover .hotspot-tooltip,
.hotspot-point.active .hotspot-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --------------------------------------------------------------------------
   6. PALCO DE SHOWROOM ESCULTURAL DO TÊNIS (ESTILO APPLE / NIKELAB)
   -------------------------------------------------------------------------- */
.hero-3d-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0 2rem;
  perspective: 1200px;
}

/* Ambient glow azul-gelo profundo */
.hero-ambient-glow {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 580px;
  max-width: 90vw;
  height: 580px;
  background: radial-gradient(circle, rgba(186, 230, 253, 0.8) 0%, rgba(56, 189, 248, 0.22) 42%, transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Sombra suave e realista no chão do estúdio */
.hero-ground-shadow {
  position: relative;
  width: 320px;
  max-width: 80%;
  height: 26px;
  margin: -18px auto 0;
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.4) 0%, rgba(2, 132, 199, 0.16) 45%, transparent 75%);
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
  z-index: 5;
  transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}

/* Container do Tênis com física 3D */
.hero-sneaker-container {
  position: relative;
  z-index: 10;
  display: inline-block;
  cursor: grab;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-sneaker-container:active {
  cursor: grabbing;
}

/* Imagem do tênis em alta definição */
.hero-sneaker-img {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  object-fit: contain;
  filter: 
    drop-shadow(0 25px 35px rgba(2, 132, 199, 0.22))
    drop-shadow(0 14px 22px rgba(15, 23, 42, 0.14));
  user-select: none;
  pointer-events: none;
}

/* Luz Especular Dinâmica e Reflexo Volumétrico:
   Mascara perfeitamente no formato do tênis para NUNCA vazar nem cortar! */
.hero-specular-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mask-image: url('../assets/images/hero-sneaker-3d.webp');
  -webkit-mask-image: url('../assets/images/hero-sneaker-3d.webp');
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  background: radial-gradient(
    circle 260px at var(--light-x, 48%) var(--light-y, 42%),
    rgba(255, 255, 255, 0.75) 0%,
    rgba(186, 230, 253, 0.35) 35%,
    transparent 70%
  );
  mix-blend-mode: color-dodge;
  opacity: 0.85;
  transition: opacity 0.3s ease;
  z-index: 12;
}

/* Gradiente radial de fundo azul gelo estúdio */
.bg-ice-glow {
  background: radial-gradient(
    circle at 50% 30%,
    rgba(186, 230, 253, 0.45) 0%,
    rgba(240, 249, 255, 0.8) 45%,
    rgba(248, 250, 252, 1) 100%
  );
}
