/* ==========================================================================
   Regalo Digital - Main CSS / Design System Tokens & Base Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette - Vibrant & Premium Pastel/Glass Aesthetic */
  --primary: #ff477e;
  --primary-hover: #ff2e6b;
  --primary-light: #ffebf0;
  --primary-glow: rgba(255, 71, 126, 0.35);
  
  --secondary: #7000ff;
  --secondary-hover: #5d00d6;
  --secondary-light: #f1e8ff;
  
  --accent-gold: #ffb703;
  --accent-mint: #06d6a0;
  --accent-sky: #4cc9f0;
  
  --bg-gradient: linear-gradient(135deg, #0f0c20 0%, #1a103c 40%, #2b124c 75%, #3a1548 100%);
  --bg-light: #f8f9fe;
  
  --surface-glass: rgba(255, 255, 255, 0.08);
  --surface-glass-border: rgba(255, 255, 255, 0.15);
  --surface-card: rgba(255, 255, 255, 0.95);
  
  --text-main: #1e1b2e;
  --text-muted: #6b6684;
  --text-light: #ffffff;
  --text-light-muted: rgba(255, 255, 255, 0.7);

  /* Default Dynamic Gift Box Theme Variables */
  --box-color: #ff477e;
  --box-color-dark: #d9265c;
  --box-color-light: #ff709b;
  --ribbon-color: #ffb703;
  --ribbon-color-dark: #d99700;
  --tag-color: #ffffff;
  --tag-text-color: #2b124c;

  /* Typography */
  --font-heading: 'Fredoka', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 30px var(--primary-glow);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-gradient);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

/* Minimalist Footer */
.app-footer {
  width: 100%;
  padding: 20px 0 28px 0;
  text-align: center;
  background: transparent;
}

.footer-text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1.2px;
  user-select: none;
  transition: color 0.2s ease;
}

.footer-text:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Utility Animations */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px var(--primary-glow); }
  50% { box-shadow: 0 0 35px var(--primary-glow), 0 0 50px rgba(255, 71, 126, 0.5); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
