/* ==========================================================================
   Design System & Tokens - Bíblia D'Cor (Mobile-First Optimized)
   ========================================================================== */
:root {
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Color Palette */
  --color-bg-base: #08080a;
  --color-text-main: #f8fafc;
  --color-text-muted: #cbd5e1;
  --color-text-dim: #94a3b8;
  
  /* Brand Accents - Inspired by Bíblia D'Cor Emblem */
  --accent-gold: #f59e0b;
  --accent-gold-light: #fbbf24;
  --accent-gold-glow: rgba(245, 158, 11, 0.42);
  --accent-ruby: #ef4444;
  --accent-ruby-glow: rgba(239, 68, 68, 0.35);

  /* Glassmorphism Styles */
  --glass-bg: rgba(18, 18, 24, 0.72);
  --glass-bg-hover: rgba(28, 28, 38, 0.88);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-hover: rgba(245, 158, 11, 0.45);
  --glass-shadow: 0 14px 35px -8px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.07);

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-smooth: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   Reset & Mobile Base
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  font-family: var(--font-primary);
  scroll-behavior: smooth;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile browsers */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  overflow-x: hidden;
  background-color: var(--color-bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Ambient Background Layer
   ========================================================================== */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateZ(0);
}

.bg-image {
  position: absolute;
  inset: -15px;
  background: url('assets/bg.jpg') no-repeat center center;
  background-size: cover;
  filter: brightness(0.72) contrast(1.1);
  transform: scale(1.03);
}

.bg-gradient-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 10%, rgba(245, 158, 11, 0.22) 0%, transparent 60%),
    radial-gradient(circle at 50% 90%, rgba(239, 68, 68, 0.15) 0%, transparent 65%),
    linear-gradient(180deg, rgba(8, 8, 10, 0.65) 0%, rgba(8, 8, 10, 0.96) 100%);
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: floatOrb 14s infinite alternate ease-in-out;
  pointer-events: none;
}

.orb-1 {
  top: 6%;
  left: 15%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
}

.orb-2 {
  bottom: 10%;
  right: 10%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, var(--accent-ruby) 0%, transparent 70%);
  animation-duration: 16s;
  animation-delay: -5s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, 25px) scale(1.06); }
  100% { transform: translate(-15px, 12px) scale(0.96); }
}

.noise-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: radial-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 0);
  background-size: 20px 20px;
}

/* ==========================================================================
   Bio Container Layout
   ========================================================================== */
.bio-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0 auto;
  animation: pageFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Top Navigation
   ========================================================================== */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  background: rgba(20, 20, 28, 0.72);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.8);
  animation: pulseDotAnim 2s infinite;
}

@keyframes pulseDotAnim {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.8); }
  70% { box-shadow: 0 0 0 7px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-full);
  color: var(--color-text-main);
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
  -webkit-user-select: none;
}

.share-btn:hover {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.45);
}

.share-btn:active {
  transform: scale(0.95);
}

/* ==========================================================================
   Profile & Hero Header (Emblema Bíblia D'Cor Ampliado)
   ========================================================================== */
.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4px 8px 0;
}

.avatar-wrapper {
  position: relative;
  width: 176px;
  height: 194px;
  margin-bottom: 20px;
}

.avatar-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, var(--accent-gold-glow) 0%, var(--accent-ruby-glow) 60%, transparent 80%);
  border-radius: 42px;
  filter: blur(18px);
  opacity: 0.8;
  animation: glowPulse 4s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% { opacity: 0.55; transform: scale(0.96); }
  100% { opacity: 0.9; transform: scale(1.04); }
}

.avatar-card {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 40%, rgba(35, 30, 25, 0.88), rgba(12, 12, 16, 0.96));
  border: 2px solid rgba(245, 158, 11, 0.45);
  border-radius: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 14px rgba(245, 158, 11, 0.3));
  transition: var(--transition-smooth);
}

.avatar-wrapper:hover .avatar-card {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(245, 158, 11, 0.7);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.85), 0 0 30px rgba(245, 158, 11, 0.3);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #ffffff 30%, #fde68a 70%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.meta-pills {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  background: rgba(20, 20, 28, 0.65);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  font-size: 0.78rem;
  color: #e2e8f0;
  user-select: none;
  -webkit-user-select: none;
}

.pills-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  white-space: nowrap;
}

.pill.highlight-gold {
  color: var(--accent-gold-light);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pill-separator {
  color: var(--color-text-dim);
  font-size: 0.6rem;
}

/* ==========================================================================
   Store CTA Section (Buttons) - Mobile Touch Optimized
   ========================================================================== */
.cta-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94a3b8;
  text-align: center;
  margin-bottom: 1px;
}

.store-card {
  position: relative;
  display: block;
  text-decoration: none;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.card-glow {
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.store-card:hover {
  transform: translateY(-3px) scale(1.01);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: 0 20px 42px -10px rgba(0, 0, 0, 0.8), 0 0 22px rgba(255, 255, 255, 0.08);
}

.store-card:active {
  transform: scale(0.965);
  background: rgba(32, 32, 44, 0.95);
  transition: transform 0.12s ease-out;
}

/* Google Play / Play Store specific accents */
.store-android .card-glow {
  background: radial-gradient(circle at 10% 50%, rgba(0, 240, 118, 0.18), transparent 70%);
}

.store-android:hover {
  border-color: rgba(0, 240, 118, 0.45);
  box-shadow: 0 20px 44px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 240, 118, 0.2);
}

.store-android:hover .card-glow {
  opacity: 1;
}

/* App Store specific accents */
.store-ios .card-glow {
  background: radial-gradient(circle at 10% 50%, rgba(255, 255, 255, 0.14), transparent 70%);
}

.store-ios:hover {
  border-color: rgba(255, 255, 255, 0.48);
  box-shadow: 0 20px 44px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 255, 255, 0.16);
}

.store-ios:hover .card-glow {
  opacity: 1;
}

/* Disabled State for iOS */
.store-disabled {
  opacity: 0.78;
}

.store-disabled:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6);
}

.store-badge-soon {
  position: absolute;
  top: 10px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cbd5e1;
}

/* Recommended OS Badge */
.store-badge-recommended {
  position: absolute;
  top: 9px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(239, 68, 68, 0.28));
  border: 1px solid rgba(245, 158, 11, 0.48);
  color: #fef08a;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
  animation: badgeGlow 2.5s infinite alternate ease-in-out;
}

@keyframes badgeGlow {
  0% { box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2); }
  100% { box-shadow: 0 2px 14px rgba(245, 158, 11, 0.55); }
}

.store-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
}

.store-icon-box {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: var(--transition-smooth);
}

.store-card:hover .store-icon-box {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.1);
}

.ios-icon-box {
  color: #ffffff;
}

.store-text-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.store-caption {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--color-text-dim);
  text-transform: uppercase;
}

.store-main-title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 4.8vw, 1.4rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.store-action-indicator {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-smooth);
}

.store-card:hover .store-action-indicator {
  background: #ffffff;
  color: #08080a;
  transform: translateX(3px);
  border-color: #ffffff;
}

/* Shimmer light sweep animation */
.card-shimmer {
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
  animation: sweepLight 5s infinite ease-in-out;
}

.store-ios .card-shimmer {
  animation-delay: 2.5s;
}

@keyframes sweepLight {
  0% { left: -150%; }
  35% { left: 200%; }
  100% { left: 200%; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.bio-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 0 4px;
  text-align: center;
}

.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-copy p {
  font-size: 0.74rem;
  color: #71717a;
}

.custom-domain-note {
  font-size: 0.68rem;
  color: #52525b;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  width: calc(100% - 32px);
  max-width: 380px;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(18, 18, 24, 0.96);
  border: 1px solid rgba(245, 158, 11, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-full);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 158, 11, 0.25);
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

/* ==========================================================================
   Responsive Adjustments (Small Mobile Screens < 380px)
   ========================================================================== */
@media (max-width: 375px) {
  body {
    padding-left: 12px;
    padding-right: 12px;
  }

  .avatar-wrapper {
    width: 150px;
    height: 165px;
  }

  .store-card {
    padding: 15px 14px;
  }

  .store-icon-box {
    width: 46px;
    height: 46px;
  }

  .meta-pills {
    padding: 8px 12px;
    font-size: 0.72rem;
    gap: 5px;
  }
}
