/* ==========================================================================
   giving.kobbydogood.org - Custom Stylesheet
   Theme: Red, Blue, and White (Hon. Kobby Okyere Darko-Mensah Philanthropy)
   ========================================================================== */

:root {
  --primary-navy: #0b1f3a;
  --primary-blue: #1d4ed8;
  --royal-blue: #2563eb;
  --light-blue: #eff6ff;
  --accent-red: #dc2626;
  --crimson-red: #b91c1c;
  --soft-red: #fef2f2;
  --neutral-dark: #0f172a;
  --neutral-muted: #64748b;
  --surface-white: #ffffff;
  --surface-offwhite: #f8fafc;
  --border-light: #e2e8f0;
  --border-blue: #bfdbfe;
  --border-red: #fecaca;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(15 23 42 / 0.08), 0 2px 4px -2px rgb(15 23 42 / 0.05);
  --shadow-lg: 0 10px 25px -3px rgb(15 23 42 / 0.1), 0 4px 6px -4px rgb(15 23 42 / 0.05);
  --shadow-blue: 0 10px 25px -5px rgba(29, 78, 216, 0.25);
  --shadow-red: 0 10px 25px -5px rgba(220, 38, 38, 0.22);
}

/* Typography & Base */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--neutral-dark);
  background-color: var(--surface-offwhite);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--royal-blue);
}

/* Red & Blue Gradients */
.bg-gradient-royal {
  background: linear-gradient(135deg, #0b1f3a 0%, #1e3a8a 60%, #1d4ed8 100%);
}

.bg-gradient-patriot {
  background: linear-gradient(135deg, #0f2850 0%, #1e3a8a 70%, #dc2626 100%);
}

.bg-gradient-subtle-blue {
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.bg-gradient-subtle-red {
  background: linear-gradient(180deg, #fef2f2 0%, #ffffff 100%);
}

.text-gradient-red-blue {
  background: linear-gradient(120deg, #1d4ed8 20%, #dc2626 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
  background: linear-gradient(120deg, #1e3a8a 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom Glass & Borders */
.glass-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Patriot Ribbon Stripe */
.patriot-stripe {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #dc2626 0%, #ffffff 33%, #1d4ed8 66%, #dc2626 100%);
}

/* Card Hover Effects */
.project-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-light);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px -10px rgba(15, 31, 58, 0.12);
  border-color: var(--border-blue);
}

/* Filter Buttons */
.filter-btn {
  transition: all 0.2s ease;
}

.filter-btn.active {
  background-color: var(--primary-blue);
  color: #ffffff;
  box-shadow: var(--shadow-blue);
}

/* Impact Badge */
.personal-fund-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(29, 78, 216, 0.1) 100%);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #0b1f3a;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.825rem;
  letter-spacing: 0.02em;
}

/* Pulsing Badge Dot */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-red);
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

/* Modal Styling */
.modal-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

/* Stat Counter */
.stat-box {
  border-left: 4px solid var(--primary-blue);
  transition: all 0.3s ease;
}

.stat-box:nth-child(even) {
  border-left-color: var(--accent-red);
}

.stat-box:hover {
  background-color: #ffffff;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
