/* Medicine Dolls – custom styles layered over Tailwind */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --parchment: #f5ead8;
  --deep-brown: #3b1f0a;
  --warm-red:   #8b1a1a;
  --gold:       #b8860b;
  --muted-gold: #d4a843;
  --ink:        #2c1810;
}

body {
  background-color: #1a0d05;
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(80,30,10,0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(60,20,5,0.4) 0%, transparent 60%);
  font-family: 'Crimson Text', Georgia, serif;
  color: var(--parchment);
}

/* ── Typography ─────────────────────────────────────────────────────────── */
.font-display { font-family: 'Cinzel', serif; }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: rgba(40, 20, 8, 0.85);
  border: 1px solid rgba(180, 130, 50, 0.35);
  border-radius: 0.75rem;
  backdrop-filter: blur(8px);
}

.card-parchment {
  background: linear-gradient(135deg, #f5ead8 0%, #e8d5b0 100%);
  color: var(--ink);
  border: 2px solid var(--gold);
}

/* ── Doll card ───────────────────────────────────────────────────────────── */
.doll-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.doll-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(180, 100, 20, 0.3);
}
.doll-card img {
  border-radius: 0.5rem 0.5rem 0 0;
  object-fit: cover;
  width: 100%;
  height: 280px;
  background: #2a1505;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, #8b1a1a, #c0392b);
  color: #f5ead8;
  border: 1px solid #a93226;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #a52828, #e74c3c);
  box-shadow: 0 4px 20px rgba(180, 30, 30, 0.4);
}

.btn-gold {
  background: linear-gradient(135deg, #b8860b, #d4a843);
  color: #1a0d05;
  border: 1px solid #d4a843;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #d4a843, #f0c060);
  box-shadow: 0 4px 20px rgba(200, 150, 20, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--muted-gold);
  border: 1px solid rgba(180, 130, 50, 0.4);
  font-family: 'Cinzel', serif;
  transition: all 0.2s ease;
}
.btn-ghost:hover {
  background: rgba(180, 130, 50, 0.1);
  border-color: var(--muted-gold);
}

/* ── Form inputs ─────────────────────────────────────────────────────────── */
.form-input {
  background: rgba(20, 10, 4, 0.7);
  border: 1px solid rgba(180, 130, 50, 0.4);
  color: var(--parchment);
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  width: 100%;
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 1.05rem;
  transition: border-color 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--muted-gold);
  box-shadow: 0 0 0 3px rgba(180, 130, 50, 0.15);
}
.form-input::placeholder { color: rgba(245, 234, 216, 0.35); }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(180deg, rgba(15,5,0,0.98) 0%, rgba(20,8,2,0.95) 100%);
  border-bottom: 1px solid rgba(180, 130, 50, 0.3);
  backdrop-filter: blur(12px);
}

/* ── Glow text ───────────────────────────────────────────────────────────── */
.text-glow {
  text-shadow: 0 0 20px rgba(180, 100, 20, 0.6), 0 0 40px rgba(180, 100, 20, 0.3);
}

/* ── Blessing badge ──────────────────────────────────────────────────────── */
.blessing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-blessing  { background: rgba(100, 50, 150, 0.3); color: #c0a0ff; border: 1px solid rgba(150, 80, 200, 0.4); }
.badge-prayer    { background: rgba(30, 80, 160, 0.3);  color: #90c0ff; border: 1px solid rgba(60, 120, 220, 0.4); }
.badge-healing   { background: rgba(30, 120, 60, 0.3);  color: #80e0a0; border: 1px solid rgba(40, 160, 80, 0.4); }
.badge-kindness  { background: rgba(180, 100, 20, 0.3); color: #ffd080; border: 1px solid rgba(200, 140, 30, 0.4); }
.badge-love      { background: rgba(180, 30, 60, 0.3);  color: #ffaacc; border: 1px solid rgba(200, 50, 80, 0.4); }
.badge-light     { background: rgba(200, 180, 60, 0.3); color: #ffe080; border: 1px solid rgba(220, 200, 80, 0.4); }

/* ── Upload zone ─────────────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed rgba(180, 130, 50, 0.45);
  border-radius: 0.75rem;
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(20, 10, 4, 0.4);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--muted-gold);
  background: rgba(180, 130, 50, 0.08);
}

/* ── Candle animation ────────────────────────────────────────────────────── */
@keyframes flicker {
  0%,100% { opacity: 1; transform: scaleY(1) rotate(-1deg); }
  25%     { opacity: 0.85; transform: scaleY(1.05) rotate(1deg); }
  50%     { opacity: 0.95; transform: scaleY(0.97) rotate(-0.5deg); }
  75%     { opacity: 0.9;  transform: scaleY(1.03) rotate(0.5deg); }
}
.candle-flame { animation: flicker 1.8s ease-in-out infinite; display: inline-block; }

/* ── Social share buttons ────────────────────────────────────────────────── */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}
.share-facebook  { background: #1877f2; color: white; }
.share-twitter   { background: #1da1f2; color: white; }
.share-whatsapp  { background: #25d366; color: white; }
.share-copy      { background: rgba(180,130,50,0.25); color: var(--muted-gold); border: 1px solid rgba(180,130,50,0.4); }

/* ── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1a0d05; }
::-webkit-scrollbar-thumb { background: rgba(180, 130, 50, 0.4); border-radius: 3px; }

/* ── Loader ──────────────────────────────────────────────────────────────── */
.loader {
  border: 3px solid rgba(180,130,50,0.2);
  border-top-color: var(--muted-gold);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Divider ─────────────────────────────────────────────────────────────── */
.ornament-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(180, 130, 50, 0.5);
  font-size: 1.2rem;
  margin: 1.5rem 0;
}
.ornament-divider::before,
.ornament-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(180,130,50,0.4), transparent);
}

/* ── Toast ───────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  padding: 0.9rem 1.4rem;
  border-radius: 0.6rem;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  animation: slideIn 0.3s ease;
}
.toast-success { background: rgba(30,100,50,0.95); border: 1px solid #2ecc71; color: #90f0b0; }
.toast-error   { background: rgba(120,20,20,0.95); border: 1px solid #e74c3c; color: #ffaaaa; }
@keyframes slideIn {
  from { transform: translateX(100px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

/* ── Blessing live-update animation ─────────────────────────────────────── */
@keyframes blessingSlideIn {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.blessing-new {
  animation: blessingSlideIn 0.5s ease-out;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero-bg {
  background:
    linear-gradient(to bottom, rgba(10,3,0,0.7) 0%, rgba(20,8,2,0.5) 50%, rgba(15,5,0,0.9) 100%),
    url('/static/img/hero-bg.jpg') center/cover no-repeat;
  min-height: 480px;
}
