/**
 * ISKDC Devotee Care - Global Design System & Theme
 * Learned & Harmonized from ISKIYS Design Architecture:
 * - Royal Vedic Blue & Sacred Saffron Color Variables
 * - Micro-interactions, Button feedback, and Smooth Hover Transitions
 * - Smooth Glassmorphism, Elevation Cards, KPI Badges, and Pill Tokens
 * - Custom Scrollbars & Input Focus Rings
 */

:root {
  /* Brand Palettes - ISKCON Heritage & Modern Devotee Care */
  --color-primary-base: #1E3A8A;       /* Royal Vedic Blue */
  --color-primary-accent: #F59E0B;     /* Sacred Saffron / Kesariya */
  --color-primary-gold: #D97706;       /* Warm Divine Gold */
  
  /* Department & Status Identity Accents */
  --color-dept-boys: #2563EB;          /* Vibrant Sapphire */
  --color-dept-girls: #EC4899;         /* Rose / Padma Pink */
  
  /* Neutrals & Surfaces */
  --color-bg-canvas: #F8FAFC;          /* Clean soft pearl white */
  --color-surface-card: #FFFFFF;       /* Crisp white surface */
  --color-surface-elevated: #FFFFFF;
  --color-border-subtle: #E2E8F0;
  --color-border-focus: #F59E0B;
  --color-text-main: #0F172A;          /* Deep Slate */
  --color-text-muted: #64748B;
  --color-success: #10B981;
  --color-danger: #EF4444;

  /* Elevation & Shadows */
  --shadow-2xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.07), 0 1px 2px -1px rgb(0 0 0 / 0.05);
  --shadow-card: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-glow: 0 0 25px -5px rgba(245, 158, 11, 0.25);
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-blur: blur(12px);

  /* Typography */
  --font-family-sans: 'Plus Jakarta Sans', 'Outfit', 'Noto Sans Devanagari', -apple-system, sans-serif;
  --font-family-mr: 'Noto Sans Devanagari', sans-serif;

  /* Layout & Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --transition-smooth: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1200px;
}

/* =========================================================
   1. GLOBAL FORM CONTROLS & ERGONOMICS (LEARNED FROM ISKIYS)
   ========================================================= */
.form-input,
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
  font-family: inherit;
  color: var(--color-text-main);
  background-color: #FFFFFF;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

/* Elegant, subtle, non-distracting input placeholders */
::placeholder,
::-webkit-input-placeholder,
::-moz-placeholder,
:-ms-input-placeholder {
  color: #94A3B8 !important;
  opacity: 1 !important;
  font-weight: 400 !important;
  font-size: 0.92em;
  letter-spacing: normal !important;
}

/* Special fix for PIN password inputs */
input[type="password"] {
  letter-spacing: normal;
}
input[type="password"]:not(:placeholder-shown) {
  letter-spacing: 0.2rem;
}

/* =========================================================
   2. SACRED UTILITY BAR (TOP HEADER STRIP)
   ========================================================= */
.header-top-bar {
  background: linear-gradient(90deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
  color: #E2E8F0;
  font-size: 0.76rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0;
  line-height: 1.4;
}

.sacred-crest-badge {
  color: var(--color-primary-accent);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.top-bar-prabhupada {
  color: #FDE68A;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1px;
}

.top-bar-mantra-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(254, 243, 199, 0.08);
  border: 1px solid rgba(253, 230, 138, 0.2);
  color: #FDE68A;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.65rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* =========================================================
   3. INTERACTIVE CARDS & MICRO-ANIMATIONS
   ========================================================= */
.card-hover {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

/* Gradient backgrounds from ISKIYS */
.gradient-vedic {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 50%, #1E40AF 100%);
}

.gradient-saffron {
  background: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
}

.gradient-krishna {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
}

/* Smooth glass backdrop */
.glass-panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Soft custom scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #F59E0B;
}

/* Button active push */
.btn-push {
  transition: transform 0.1s ease, filter 0.15s ease;
}
.btn-push:active {
  transform: scale(0.97);
}

/* Keyframe animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(245, 158, 11, 0.3); }
  50% { box-shadow: 0 0 25px rgba(245, 158, 11, 0.55); }
}

.animate-fade-in {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-pulse-glow {
  animation: pulseGlow 2.5s ease-in-out infinite;
}
