/* ================================================================
   PrayForSomeone.org — Global Styles
   Blue & Gold Theme — Copyright 2026
   ================================================================ */

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

/* ----------------------------------------------------------------
   DESIGN TOKENS
   primary = Royal Blue  #1d4ed8 family
   gold    = Warm Gold   #f59e0b family
   ---------------------------------------------------------------- */
:root {
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;
  --blue-950: #172554;

  --gold-50:  #fffbeb;
  --gold-100: #fef3c7;
  --gold-200: #fde68a;
  --gold-300: #fcd34d;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --gold-700: #b45309;
  --gold-800: #92400e;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ----------------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  padding: 0.625rem 1.5rem;
  border-radius: 0.875rem;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.35);
  text-decoration: none;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.45);
  transform: translateY(-1px);
}
.btn-primary:active  { transform: translateY(0); }
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Gold CTA variant */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1e3a8a;
  padding: 0.625rem 1.5rem;
  border-radius: 0.875rem;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
  text-decoration: none;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.45);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: #1d4ed8;
  padding: 0.625rem 1.5rem;
  border-radius: 0.875rem;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid #bfdbfe;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-outline:hover {
  background: #eff6ff;
  border-color: #60a5fa;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #64748b;
  padding: 0.625rem 1.5rem;
  border-radius: 0.875rem;
  font-weight: 500;
  font-size: 0.9rem;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-ghost:hover { background: #f8fafc; border-color: #cbd5e1; }

/* ----------------------------------------------------------------
   FORMS
   ---------------------------------------------------------------- */
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.4rem;
}

.form-input {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  color: #1e293b;
  background: #fafafa;
  transition: all 0.2s ease;
  outline: none;
  font-family: inherit;
}
.form-input:focus {
  border-color: #60a5fa;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.form-input::placeholder { color: #94a3b8; }

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2.5rem;
}

/* ----------------------------------------------------------------
   CARDS
   ---------------------------------------------------------------- */
.prayer-card {
  animation: fadeIn 0.3s ease;
}
.prayer-card:hover {
  transform: translateY(-2px);
}

/* ----------------------------------------------------------------
   NAVIGATION
   ---------------------------------------------------------------- */
.nav-link { transition: all 0.15s ease; }

/* ----------------------------------------------------------------
   BADGE RARITY COLORS
   ---------------------------------------------------------------- */
.rarity-common    { color: #64748b; }
.rarity-uncommon  { color: #059669; }
.rarity-rare      { color: #2563eb; }
.rarity-epic      { color: #7c3aed; }
.rarity-legendary { color: #d97706; }

/* ----------------------------------------------------------------
   LEVEL PROGRESS BAR
   ---------------------------------------------------------------- */
.progress-bar {
  background: #dbeafe;
  border-radius: 9999px;
  height: 8px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: 9999px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----------------------------------------------------------------
   GOLD ACCENT BAR  (used in hero divider, section accents)
   ---------------------------------------------------------------- */
.gold-bar {
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
  border-radius: 9999px;
}

/* ----------------------------------------------------------------
   STREAK FIRE ANIMATION
   ---------------------------------------------------------------- */
@keyframes flicker {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.8; transform: scale(1.05); }
}
.streak-fire { animation: flicker 1.5s ease-in-out infinite; }

/* ----------------------------------------------------------------
   TOAST ANIMATIONS
   ---------------------------------------------------------------- */
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes slideOut {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(100%); opacity: 0; }
}

/* ----------------------------------------------------------------
   MODAL ANIMATIONS
   ---------------------------------------------------------------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)     scale(1);   }
}

/* ----------------------------------------------------------------
   FADE IN
   ---------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}

/* ----------------------------------------------------------------
   GLOBAL MAP PULSE
   ---------------------------------------------------------------- */
.map-pulse { animation: mapPulse 2s ease-in-out infinite; }
@keyframes mapPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.9; }
}

/* ----------------------------------------------------------------
   SCROLLBAR HIDE
   ---------------------------------------------------------------- */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ----------------------------------------------------------------
   SHARE CARD GRADIENT
   ---------------------------------------------------------------- */
.share-card-gradient {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #1e40af 100%);
}

/* ----------------------------------------------------------------
   LINE CLAMP
   ---------------------------------------------------------------- */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ----------------------------------------------------------------
   BADGE GLOW — legendary gold
   ---------------------------------------------------------------- */
.badge-legendary {
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.55));
}

/* ----------------------------------------------------------------
   URGENT PULSE
   ---------------------------------------------------------------- */
.urgent-badge { animation: urgentPulse 2s ease-in-out infinite; }
@keyframes urgentPulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(239, 68, 68, 0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);   }
}

/* ----------------------------------------------------------------
   MOBILE
   ---------------------------------------------------------------- */
@media (max-width: 640px) {
  .btn-primary, .btn-outline, .btn-gold {
    padding: 0.6rem 1.2rem;
    font-size: 0.875rem;
  }
}

/* ----------------------------------------------------------------
   SKELETON LOADING
   ---------------------------------------------------------------- */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ----------------------------------------------------------------
   INTERCESSOR LEVEL BADGES
   ---------------------------------------------------------------- */
.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.level-0 { background: #f1f5f9;                             color: #64748b; }
.level-1 { background: #f0fdf4;                             color: #16a34a; }
.level-2 { background: #eff6ff;                             color: #2563eb; }
.level-3 { background: #fffbeb;                             color: #d97706; border: 1px solid #fde68a; }
.level-4 { background: #fff7ed;                             color: #c2410c; }
.level-5 { background: #dbeafe;                             color: #1d4ed8; }
.level-6 { background: #fefce8;                             color: #a16207; }
.level-7 { background: #eff6ff;                             color: #1e40af; border: 1px solid #bfdbfe; }
.level-8 { background: linear-gradient(135deg,#dbeafe,#eff6ff); color: #1e3a8a; border: 1px solid #93c5fd; }
.level-9 { background: linear-gradient(135deg,#fef9c3,#fde68a); color: #92400e; border: 1px solid #fcd34d; }

/* ----------------------------------------------------------------
   ACTIVE NAV
   ---------------------------------------------------------------- */
.active-nav {
  background: #eff6ff;
  color: #1d4ed8;
}

/* ----------------------------------------------------------------
   GOLD HIGHLIGHT — section dividers, stat numbers
   ---------------------------------------------------------------- */
.text-gold   { color: var(--gold-500); }
.border-gold { border-color: var(--gold-400); }
.bg-gold     { background: var(--gold-500); }

/* ----------------------------------------------------------------
   HERO SECTION — deep blue gradient
   ---------------------------------------------------------------- */
.hero-gradient {
  background: linear-gradient(135deg, #172554 0%, #1e3a8a 40%, #1d4ed8 100%);
}

/* ----------------------------------------------------------------
   STAT NUMBER GOLD ACCENT
   ---------------------------------------------------------------- */
.stat-number {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
