/* ==========================================================================
   KURAL – Voice of Her | Desktop Dashboard Design System
   Exact Reference Matching Palette & Visual Language
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  /* Exact 5 Palette Colors from Studio Vaia Reference */
  --kural-lavender: #DABBE0;
  --kural-soft-sky: #BED3E3;
  --kural-flamingo: #EEBFD1;
  --kural-mauve: #ECAAC2;
  --kural-denim: #93AECA;

  /* Theme: Dark Mode (Default) */
  --bg-main: #060814;
  --bg-sidebar: #0A0D1E;
  --bg-card: rgba(18, 22, 48, 0.70);
  --bg-card-hover: rgba(28, 34, 72, 0.85);
  --border-card: rgba(218, 187, 224, 0.16);
  --border-glow: rgba(218, 187, 224, 0.45);
  --text-primary: #FFFFFF;
  --text-secondary: #CBD5E1;
  --text-muted: #8E9AB0;
  --header-bg: rgba(10, 13, 30, 0.85);

  /* Gradients based on exact colors */
  --grad-protect: linear-gradient(135deg, rgba(218, 187, 224, 0.22) 0%, rgba(26, 16, 60, 0.75) 100%);
  --grad-prevent: linear-gradient(135deg, rgba(238, 191, 209, 0.22) 0%, rgba(236, 170, 194, 0.35) 100%);
  --grad-support: linear-gradient(135deg, rgba(190, 211, 227, 0.22) 0%, rgba(147, 174, 202, 0.38) 100%);
  --grad-empower: linear-gradient(135deg, rgba(218, 187, 224, 0.22) 0%, rgba(236, 170, 194, 0.35) 100%);
  --grad-sos: linear-gradient(135deg, rgba(238, 191, 209, 0.28) 0%, rgba(236, 170, 194, 0.22) 50%, rgba(26, 16, 60, 0.65) 100%);
  --grad-quote: linear-gradient(135deg, rgba(190, 211, 227, 0.16) 0%, rgba(218, 187, 224, 0.12) 100%);
  --grad-map: radial-gradient(circle at 60% 40%, rgba(218, 187, 224, 0.12) 0%, rgba(10, 13, 30, 0.95) 75%);
}

[data-theme="light"] {
  --bg-main: #FAF8FD;
  --bg-sidebar: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #FFFFFF;
  --border-card: rgba(218, 187, 224, 0.45);
  --border-glow: rgba(147, 174, 202, 0.65);
  --text-primary: #0A0D1E;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --header-bg: rgba(255, 255, 255, 0.92);

  --grad-protect: linear-gradient(135deg, #F3EEF9 0%, #E9DEFA 100%);
  --grad-prevent: linear-gradient(135deg, #FDF0F5 0%, #FAE1EB 100%);
  --grad-support: linear-gradient(135deg, #F0F6FA 0%, #E2EDF5 100%);
  --grad-empower: linear-gradient(135deg, #F8EEF8 0%, #EFE1F2 100%);
  --grad-sos: linear-gradient(135deg, #FDECF2 0%, #FADCE7 100%);
  --grad-quote: linear-gradient(135deg, #F2F7FA 0%, #F5EEF8 100%);
  --grad-map: radial-gradient(circle at 60% 40%, rgba(218, 187, 224, 0.25) 0%, rgba(250, 248, 253, 0.98) 75%);
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.font-cormorant {
  font-family: 'Cormorant Garamond', serif;
}

.font-poppins {
  font-family: 'Poppins', sans-serif;
}

.font-inter {
  font-family: 'Inter', sans-serif;
}

/* Glassmorphism Cards */
.kural-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.kural-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 10px 30px rgba(218, 187, 224, 0.18);
}

/* Sidebar Styling */
.kural-sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-card);
}

.sidebar-item-active {
  background: linear-gradient(135deg, rgba(218, 187, 224, 0.22) 0%, rgba(238, 191, 209, 0.18) 100%);
  border: 1px solid rgba(218, 187, 224, 0.45);
  color: var(--text-primary) !important;
  font-weight: 600;
}

[data-theme="light"] .sidebar-item-active {
  background: linear-gradient(135deg, #F3EAF6 0%, #FAEDF3 100%);
  border: 1px solid var(--kural-lavender);
  color: #0A0D1E !important;
}

/* Glowing Siren Pulse */
@keyframes sirenGlow {
  0%, 100% {
    filter: drop-shadow(0 0 12px rgba(238, 191, 209, 0.65));
  }
  50% {
    filter: drop-shadow(0 0 24px rgba(238, 191, 209, 0.95)) drop-shadow(0 0 35px rgba(236, 170, 194, 0.75));
  }
}

.siren-glowing {
  animation: sirenGlow 2.4s infinite ease-in-out;
}

/* Radar Pulse for Community Location Map */
@keyframes radarPing {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.8);
    opacity: 0.3;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.beacon-pulse {
  animation: radarPing 2.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(218, 187, 224, 0.35);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(218, 187, 224, 0.65);
}
