/* ==========================================================================
   MR.STOR • DESIGN SYSTEM & LINK-IN-BIO PREMIUM (V3 REORDENADO)
   Direção de Arte: O COPY
   Cores: Preto Profundo, Azul-Marinho de Grife, Acentos Ciano/Neon & Branco
   ========================================================================== */

:root {
  /* Paleta Nobre */
  --bg-deep: #05070a;
  --bg-navy-dark: #080f1e;
  --bg-navy-surface: rgba(10, 18, 34, 0.85);
  --bg-navy-card: rgba(13, 23, 44, 0.7);
  --bg-navy-hover: rgba(18, 32, 58, 0.95);
  
  --accent-cyan: #00b4d8;
  --accent-cyan-glow: rgba(0, 180, 216, 0.4);
  --accent-blue-neon: #38bdf8;
  --accent-whatsapp: #25d366;
  --accent-whatsapp-glow: rgba(37, 211, 102, 0.35);
  
  --text-pure: #ffffff;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-active: rgba(56, 189, 248, 0.45);
  
  /* Tipografia */
  --font-display: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Transições e Easing */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset Global & Blindagem Mobile */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-deep);
  color: var(--text-pure);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden !important;
}

/* Foco Acessível */
:focus-visible {
  outline: 2px solid var(--accent-blue-neon);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   CAMADA AMBIENTAL DE FUNDO (Vídeo Real / Foto de Grife / Three.js)
   -------------------------------------------------------------------------- */
.bg-media-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(1.15) brightness(0.75);
  transition: opacity 0.8s ease;
  z-index: 1;
}

.bg-fallback-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/store-bg-poster.webp');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.42;
  filter: brightness(0.68) saturate(1.1);
  transform: scale(1.02);
  z-index: 1;
}

.bg-ambient-lights {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 15% 25%, rgba(0, 180, 216, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(14, 30, 60, 0.4) 0%, transparent 50%);
  z-index: 2;
}

.bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  opacity: 0.75;
}

.bg-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, rgba(5, 7, 10, 0.6) 0%, rgba(5, 7, 10, 0.92) 80%);
  z-index: 4;
}

.bg-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 160px rgba(0, 0, 0, 0.9);
  z-index: 5;
}

/* --------------------------------------------------------------------------
   ESTRUTURA PRINCIPAL
   -------------------------------------------------------------------------- */
.page-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 16px 48px;
}

.biolink-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-navy-surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: 26px;
  padding: 22px 18px 20px;
  box-shadow: 
    0 20px 50px -10px rgba(0, 0, 0, 0.85),
    0 0 35px -8px rgba(0, 180, 216, 0.15);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

/* Brilho de Borda Superior */
.biolink-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.7), transparent);
}

/* --------------------------------------------------------------------------
   HEADER & HERO COM BANNER FOTOGRÁFICO INTEGRADO
   -------------------------------------------------------------------------- */
.card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 11px;
}

/* Pill de Envio */
.shipping-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-blue-neon);
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-blue-neon);
  box-shadow: 0 0 8px var(--accent-blue-neon);
  animation: pulse-ring 2s infinite ease-in-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.35); opacity: 1; box-shadow: 0 0 12px var(--accent-blue-neon); }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.shipping-icon {
  stroke: var(--accent-blue-neon);
}

/* Moldura do Logo Oficial */
.logo-frame-wrapper {
  position: relative;
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-aura {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-cyan-glow) 0%, transparent 70%);
  filter: blur(12px);
}

.logo-frame {
  position: relative;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.85), rgba(255, 255, 255, 0.15), rgba(0, 180, 216, 0.7));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: #0c1524;
  display: block;
}

/* Tipografia da Marca */
.identity-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-pure);
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 45%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tagline {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-blue-neon);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-bio {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 360px;
  margin: 1px auto 0;
  line-height: 1.35;
}

/* BANNER FOTOGRÁFICO DA HERO (Tamanho Médio, Elegante e Integrado) */
.hero-banner-frame {
  width: 100%;
  height: 155px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.65);
  margin-top: 4px;
  position: relative;
  background-color: #0b1424;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transform: scale(1.01);
  transition: transform 0.5s var(--ease-spring);
}

.hero-banner-frame:hover .hero-banner-img {
  transform: scale(1.04);
}

/* --------------------------------------------------------------------------
   FLUXO SEQUENCIAL DE CARDS (Espaçamento Unificado)
   -------------------------------------------------------------------------- */
.cards-flow {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

/* --------------------------------------------------------------------------
   BOTÕES DE AÇÃO (WhatsApp, Grupo VIP, Instagram)
   -------------------------------------------------------------------------- */
.action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 14px;
  border-radius: 16px;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-spring), border-color 0.25s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

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

.btn-content {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
  position: relative;
}

.icon-bubble {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.28s var(--ease-spring);
}

.action-btn:hover .icon-bubble {
  transform: scale(1.08) rotate(-3deg);
}

.btn-text-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-title {
  font-size: 0.925rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.btn-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.25;
  margin-top: 2px;
}

.btn-action-arrow {
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.25s var(--ease-spring), color 0.25s ease;
}

.action-btn:hover .btn-action-arrow {
  transform: translateX(3px);
  color: var(--text-pure);
}

/* 1. WHATSAPP PRIMARY */
.action-primary {
  background: linear-gradient(135deg, rgba(14, 38, 28, 0.96), rgba(8, 26, 19, 0.98));
  border: 1px solid rgba(37, 211, 102, 0.45);
  box-shadow: 
    0 6px 20px -4px rgba(0, 0, 0, 0.5),
    0 0 20px -4px var(--accent-whatsapp-glow);
}

.action-primary .btn-title {
  color: #ffffff;
}

.action-primary .btn-desc {
  color: #a7f3d0;
}

.action-primary .whatsapp-bubble {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.action-primary .whatsapp-bubble svg {
  display: block;
  fill: #ffffff;
}

.action-primary .btn-action-arrow {
  color: #6ee7b7;
}

.action-primary:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 211, 102, 0.85);
  box-shadow: 
    0 10px 28px -4px rgba(0, 0, 0, 0.6),
    0 0 30px 2px rgba(37, 211, 102, 0.45);
}

/* SHINY SWEEP GLOW */
.shiny-btn {
  position: relative;
  overflow: hidden;
}

.btn-shine {
  position: absolute;
  top: -50%;
  left: -60%;
  width: 35%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 40%,
    rgba(255, 255, 255, 0.32) 50%,
    rgba(255, 255, 255, 0.03) 60%,
    transparent 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  z-index: 3;
  animation: shine-sweep 4.2s infinite var(--ease-spring);
}

.action-primary:hover .btn-shine {
  animation: shine-sweep-fast 1s ease;
}

@keyframes shine-sweep {
  0%, 65% { left: -70%; }
  100% { left: 140%; }
}

@keyframes shine-sweep-fast {
  0% { left: -70%; }
  100% { left: 140%; }
}

/* 2 & 3. GRUPO VIP & INSTAGRAM */
.action-secondary {
  background: var(--bg-navy-surface);
  border: 1px solid var(--border-glass);
}

.action-secondary:hover {
  background: var(--bg-navy-hover);
  border-color: var(--border-active);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.5), 0 0 16px -4px rgba(56, 189, 248, 0.22);
}

.action-secondary .btn-title {
  color: var(--text-pure);
}

.instagram-bubble {
  background: linear-gradient(135deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(193, 53, 132, 0.28);
}

.vip-bubble {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.28);
}

/* --------------------------------------------------------------------------
   4. CARD DE LOCALIZAÇÃO (MAPS)
   -------------------------------------------------------------------------- */
.section-heading {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-pure);
}

.location-card {
  width: 100%;
  background: var(--bg-navy-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.location-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.location-title-wrap, .hours-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.location-address {
  font-size: 0.825rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.map-interactive-frame {
  position: relative;
  width: 100%;
  height: 195px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background-color: #0c1524;
}

.google-maps-embed {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: contrast(1.05) saturate(1.1);
}

.map-scroll-barrier {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  background: rgba(10, 18, 34, 0.4);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.map-scroll-barrier.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.btn-enable-map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 20, 38, 0.92);
  border: 1px solid var(--border-active);
  color: var(--text-pure);
  font-family: var(--font-body);
  font-size: 0.775rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-enable-map:hover {
  transform: scale(1.04);
  background: rgba(18, 36, 68, 0.95);
}

.route-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.2), rgba(14, 165, 233, 0.1));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  color: var(--text-pure);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.25s var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
}

.route-cta-btn:hover {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.35), rgba(14, 165, 233, 0.2));
  border-color: var(--accent-blue-neon);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(0, 180, 216, 0.25);
}

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

.route-cta-btn .arrow-ext {
  color: var(--accent-blue-neon);
}

/* --------------------------------------------------------------------------
   5. CARD DE HORÁRIOS DE FUNCIONAMENTO (ÚLTIMO CARD)
   -------------------------------------------------------------------------- */
.hours-card {
  width: 100%;
  background: var(--bg-navy-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hours-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.store-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.725rem;
  font-weight: 700;
  color: #34d399;
  transition: all 0.3s ease;
}

.store-status-pill.status-closed {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.store-status-pill .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.store-status-pill.status-closed .status-dot {
  background-color: #f87171;
  box-shadow: 0 0 8px #f87171;
}

.hours-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
}

.schedule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.schedule-row.current-day-row {
  background: rgba(56, 189, 248, 0.12);
  color: var(--text-pure);
  font-weight: 700;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.schedule-row.current-day-row .day-name::before {
  content: '● ';
  color: var(--accent-blue-neon);
  font-size: 0.65rem;
}

.closed-text {
  color: #94a3b8;
  font-style: italic;
}

.current-day-row .closed-text {
  color: #f87171;
}

/* --------------------------------------------------------------------------
   RODAPÉ
   -------------------------------------------------------------------------- */
.card-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding-top: 4px;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-blue-neon);
  box-shadow: 0 0 6px var(--accent-blue-neon);
}

.footer-copy {
  font-size: 0.725rem;
  color: var(--text-subtle);
}

/* --------------------------------------------------------------------------
   RESPONSIVIDADE (320px a 1920px)
   -------------------------------------------------------------------------- */
@media (max-width: 380px) {
  .page-wrapper {
    padding: 16px 10px 32px;
  }
  
  .biolink-card {
    padding: 18px 12px 16px;
    gap: 14px;
  }
  
  .brand-name {
    font-size: 1.6rem;
  }

  .hero-banner-frame {
    height: 135px;
  }
  
  .action-btn {
    min-height: 54px;
    padding: 8px 12px;
  }
  
  .icon-bubble {
    width: 36px;
    height: 36px;
  }
  
  .map-interactive-frame {
    height: 175px;
  }
}

@media (min-width: 768px) {
  .page-wrapper {
    padding-top: 48px;
    padding-bottom: 60px;
  }
  
  .biolink-card {
    max-width: 480px;
    padding: 26px 24px 22px;
  }

  .hero-banner-frame {
    height: 175px;
  }
  
  .map-interactive-frame {
    height: 215px;
  }
}

@media (min-width: 1280px) {
  .page-wrapper {
    padding-top: 60px;
  }
}

/* --------------------------------------------------------------------------
   PREFERS-REDUCED-MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .bg-video {
    display: none !important;
  }
  
  .bg-fallback-image {
    opacity: 0.45 !important;
  }
  
  .btn-shine {
    display: none !important;
  }
}
