/* ===== CSS Variables & Reset ===== */
:root {
  --bg-dark: #0a0a1a;
  --bg-gradient-1: #1a0a2e;
  --bg-gradient-2: #0d1b3e;
  --gold: #d4a843;
  --gold-light: #f0d68a;
  --gold-glow: rgba(212, 168, 67, 0.3);
  --text-primary: #f0ece2;
  --text-secondary: rgba(240, 236, 226, 0.7);
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: rgba(0, 0, 0, 0.4);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
}

*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-gradient-1) 40%, var(--bg-gradient-2) 100%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* ===== Animated background glows ===== */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}
.bg-glow-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212,168,67,0.15), transparent);
  top: -100px; right: -100px;
  animation: floatGlow 12s ease-in-out infinite;
}
.bg-glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(100,60,180,0.2), transparent);
  bottom: -50px; left: -80px;
  animation: floatGlow 15s ease-in-out infinite reverse;
}
.bg-glow-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(60,100,200,0.15), transparent);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: floatGlow 10s ease-in-out infinite 3s;
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.1); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* ===== Particles ===== */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 3px; height: 3px;
  background: var(--gold-light);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.8; }
  90% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

/* ===== Header ===== */
header {
  text-align: center;
  padding: 3rem 1.5rem 1rem;
  z-index: 1;
  position: relative;
}

.cross-icon {
  font-size: 3rem;
  color: var(--gold);
  text-shadow: 0 0 30px var(--gold-glow), 0 0 60px var(--gold-glow);
  animation: crossPulse 4s ease-in-out infinite;
  margin-bottom: 0.5rem;
}

@keyframes crossPulse {
  0%, 100% { text-shadow: 0 0 30px var(--gold-glow), 0 0 60px var(--gold-glow); }
  50% { text-shadow: 0 0 50px var(--gold-glow), 0 0 100px var(--gold-glow), 0 0 150px rgba(212,168,67,0.1); }
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), #c4944a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.3rem;
}

.subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ===== Verse Card ===== */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem 2rem;
  z-index: 1;
  position: relative;
  width: 100%;
  max-width: 700px;
}

.verse-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  width: 100%;
  box-shadow: 0 8px 32px var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
  animation: cardAppear 1s ease-out;
}

.verse-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

@keyframes cardAppear {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.verse-decoration {
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
  user-select: none;
}
.verse-decoration-end {
  text-align: right;
  margin-top: -1rem;
}

.verse-text {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  line-height: 1.8;
  color: var(--text-primary);
  margin: 0.5rem 0 1rem;
  font-style: italic;
  animation: textFade 1.2s ease-out 0.3s both;
}

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

.verse-ref {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  text-align: right;
  letter-spacing: 1px;
  animation: textFade 1.2s ease-out 0.6s both;
}

/* ===== Buttons ===== */
.actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  animation: textFade 1s ease-out 0.8s both;
}

.btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--gold);
  box-shadow: 0 0 20px var(--gold-glow);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn.copied {
  border-color: #4ade80;
  color: #4ade80;
}

/* ===== Countdown ===== */
.countdown {
  margin-top: 2rem;
  text-align: center;
  animation: textFade 1s ease-out 1s both;
}

.countdown-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.3rem;
}

.countdown-timer {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gold-light);
  letter-spacing: 3px;
  font-variant-numeric: tabular-nums;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 1.5rem;
  z-index: 1;
  position: relative;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.footer-date {
  margin-top: 0.3rem;
  font-weight: 500;
  color: var(--gold);
  opacity: 0.6;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  header { padding: 2rem 1rem 0.5rem; }
  .verse-card { padding: 2rem 1.2rem; border-radius: 18px; }
  .verse-decoration { font-size: 3rem; }
  .actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
}
