/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

:root {
  --color-love-primary: #ff5e7e;
  --color-love-dark: #e84393;
  --color-love-light: #ff7675;
  --color-love-glow: rgba(255, 94, 126, 0.45);
  --color-gold: #d4af37;
  --color-gold-light: #f5d76e;
  --paper-cream: #fffdfa;
  --paper-border: #f0e6d6;
  --text-main: #2d3436;
  --text-muted: #636e72;
  --bg-gradient: radial-gradient(circle at 50% 30%, #2b102b 0%, #17071a 55%, #0a030d 100%);
  --shadow-envelope: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  --font-script: 'Dancing Script', cursive;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Montserrat', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-gradient);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
  position: relative;
}

#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.app-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 40px;
}

/* Glassmorphism helpers */
.glass-panel {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
}

/* Floating Audio Player Icon */
.audio-toggle-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.audio-toggle-btn:hover {
  transform: scale(1.08);
}

.audio-toggle-btn.playing {
  animation: spinSlow 8s linear infinite;
  background: var(--color-love-primary);
  border-color: var(--color-gold-light);
  box-shadow: 0 0 18px var(--color-love-glow);
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* General button styles */
.romantic-btn {
  background: linear-gradient(135deg, var(--color-love-primary), var(--color-love-dark));
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px var(--color-love-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.romantic-btn:hover, .romantic-btn:active {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px var(--color-love-glow);
}

@media (max-width: 480px) {
  .app-container {
    padding: 16px 12px 30px;
  }
  .audio-toggle-btn {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
}
