/**
 * ESTILOS GLOBAIS E ESTRUTURA DO CANVAS
 * Projeto: Isadora Marceano (Método "COPY" v15 Creator Edition)
 */

@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: dark;
  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: 'Manrope', 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;
}

/* ═══════════════════════════════════════════════════════════════
   0. ACESSIBILIDADE: SKIP LINK (INVISÍVEL POR PADRÃO)
   ═══════════════════════════════════════════════════════════════ */
.skip-link {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translate(-50%, -250%);
  background: var(--accent-primary);
  color: #08070A;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  z-index: 9999;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

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

/* ═══════════════════════════════════════════════════════════════
   BACKDROP AMBIENTE (3 Níveis Fixos)
   ═══════════════════════════════════════════════════════════════ */
.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: Foto desfocada da Isadora / Mural em Enquadramento Neutro */
.ambient-poster {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  filter: blur(28px) saturate(1.15);
  opacity: 0.40;
  transform: scale(1.08);
  transition: opacity 0.8s ease;
  z-index: 1;
}

/* Camada Opcional: Vídeo de Fundo Cinemático (quando ativado por FUNDO-VIDEO) */
.ambient-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
  opacity: 0;
  transition: opacity 1.0s ease;
  z-index: 2;
}

.ambient-video.is-loaded {
  opacity: 1;
}

/* Camada 2: Overlay Radial Escurecendo Bordas e Centro para Legibilidade Total */
.ambient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(8, 7, 10, 0.55) 0%, rgba(8, 7, 10, 0.82) 65%, #08070A 100%);
  z-index: 3;
}

/* Camada 3: Orbes de Glow Verde Linktree (Topo Forte, Base Fraca) */
.ambient-glow-top {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(67, 230, 96, 0.06) 50%, transparent 70%);
  filter: blur(90px);
  z-index: 4;
}

.ambient-glow-bottom {
  position: absolute;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67, 230, 96, 0.12) 0%, transparent 70%);
  filter: blur(90px);
  z-index: 4;
}

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

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

  .ambient-overlay {
    background: radial-gradient(circle at 50% 35%, rgba(8, 7, 10, 0.35) 0%, rgba(8, 7, 10, 0.70) 65%, rgba(8, 7, 10, 0.88) 100%);
  }

  .experience-canvas {
    background: rgba(13, 11, 16, 0.86);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    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-primary);
  outline-offset: 3px;
}
