/**
 * ESTILOS GLOBAIS E ESTRUTURA DO CANVAS (TEMA BEGE CLARO LUXURY)
 * Projeto: Espaço Menina Mulher (Método "COPY" v13)
 */

@import url('./tokens.css');

/* Resets e Configurações Globais */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: light;
  background-color: var(--bg-deep);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════════════════════════
   ACESSIBILIDADE: SKIP LINK (Invisível no normal, foco Tab)
   ═══════════════════════════════════════════════════════════════ */
.skip-link {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translate(-50%, -250%);
  background: var(--accent-terracota);
  color: #FFFFFF;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  z-index: 9999;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(120, 95, 75, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-fast), opacity var(--transition-fast) ease;
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
  outline: 3px solid var(--accent-terracota);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   BACKDROP AMBIENTE v13 (Poster Desfocado + Overlay Bege + Orbes)
   ═══════════════════════════════════════════════════════════════ */
.ambient-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background-color: var(--bg-deep);
}

/* Camada 1: Poster com Blur, Saturação e Leve Escala */
.ambient-poster {
  position: absolute;
  inset: -20px;
  background-image: url('../assets/media/hero-poster.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(28px) saturate(1.15);
  transform: scale(1.08);
  opacity: 0.30;
  transition: opacity 0.8s ease;
  z-index: 1;
}

/* Camada 2: Overlay Bege Quente e Gradiente Radial */
.ambient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 25%, rgba(247, 244, 240, 0.45) 0%, rgba(247, 244, 240, 0.82) 65%, #F7F4F0 100%);
  z-index: 2;
}

/* Camada 3: Orbes de Glow Suaves (Topo e Base) */
.ambient-glow-top {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(247, 244, 240, 0.05) 50%, transparent 70%);
  filter: blur(90px);
  z-index: 3;
}

.ambient-glow-bottom {
  position: absolute;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(206, 171, 72, 0.16) 0%, transparent 70%);
  filter: blur(90px);
  z-index: 3;
}

/* ═══════════════════════════════════════════════════════════════
   CANVAS PRINCIPAL (Mobile-First 440px / Cartão Flutuante Desktop)
   ═══════════════════════════════════════════════════════════════ */
.experience-canvas {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--canvas-max-width);
  margin: 0 auto;
  padding: 24px 14px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* No Desktop (≥ 600px): Vira Cartão Flutuante Sofisticado com Fundo Visível ao Redor */
@media (min-width: 600px) {
  body {
    padding: 40px 16px;
  }

  .experience-canvas {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-floating);
    padding: 36px 24px 44px;
  }
}

/* Acessibilidade: Focus Ring Global */
:focus-visible {
  outline: 2px solid var(--accent-terracota);
  outline-offset: 3px;
}
