/* Custom styles for Rotary Bangalore Abilities */
:root {
  --rotary-blue: #0b3c8a;
  --rotary-blue-dark: #00246b;
  --rotary-gold: #f7a81b;
  --rotary-gold-dark: #d48207;
  --rotary-gold-light: #fff3d6;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
}

/* High Contrast Accessibility Mode */
body.high-contrast {
  --bg-primary: #000000 !important;
  --bg-secondary: #121212 !important;
  --text-main: #ffffff !important;
  --text-muted: #facc15 !important;
  --border-color: #facc15 !important;
  background-color: #000000 !important;
  color: #ffffff !important;
}

body.high-contrast .bg-white,
body.high-contrast .bg-slate-50,
body.high-contrast .bg-slate-100 {
  background-color: #121212 !important;
  color: #ffffff !important;
  border-color: #facc15 !important;
}

body.high-contrast .text-slate-900,
body.high-contrast .text-slate-800,
body.high-contrast .text-slate-700 {
  color: #ffffff !important;
}

body.high-contrast .text-slate-600,
body.high-contrast .text-slate-500 {
  color: #facc15 !important;
}

body.high-contrast .border-slate-100,
body.high-contrast .border-slate-200 {
  border-color: #facc15 !important;
}

/* Font Size Scales */
body.font-size-sm { font-size: 14px; }
body.font-size-md { font-size: 16px; }
body.font-size-lg { font-size: 18px; }
body.font-size-xl { font-size: 20px; }

/* Rotary Wheel Emblem Rotation Effect on Hover */
.rotary-wheel:hover {
  transform: rotate(45deg);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Glassmorphism Navigation */
.nav-glass {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
body.high-contrast .nav-glass {
  background: #000000 !important;
}

/* Smooth Focus Ring for Keyboard Accessibility (WCAG 2.1) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #f7a81b;
  outline-offset: 2px;
}

/* Mobile Drawer Transitions */
#mobile-drawer {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-drawer.open {
  transform: translateX(0);
}

#mobile-backdrop {
  transition: opacity 0.3s ease-in-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Card Hover - Clean, simple, completely static without movement */
.hover-lift {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.hover-lift:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Toast Notification */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 380px;
  padding: 14px 18px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all 0.25s ease;
}
.toast-success {
  background-color: #065f46;
  color: #ffffff;
  border-left: 4px solid #34d399;
}
.toast-info {
  background-color: #0b3c8a;
  color: #ffffff;
  border-left: 4px solid #f7a81b;
}
.toast-error {
  background-color: #991b1b;
  color: #ffffff;
  border-left: 4px solid #f87171;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Article Modal Content Styling */
.article-prose {
  line-height: 1.8;
  color: #334155;
}
body.high-contrast .article-prose {
  color: #ffffff !important;
}
.article-prose p {
  margin-bottom: 1.25rem;
}
.article-prose p.lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: #0f172a;
}
body.high-contrast .article-prose p.lead {
  color: #facc15 !important;
}
.article-prose h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0b3c8a;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}
body.high-contrast .article-prose h3 {
  color: #facc15 !important;
}
.article-prose blockquote {
  border-left: 4px solid #f7a81b;
  padding-left: 1rem;
  font-style: italic;
  margin: 1.5rem 0;
  color: #475569;
  background: #fffbeb;
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
}
body.high-contrast .article-prose blockquote {
  background: #1e1e1e !important;
  color: #ffffff !important;
  border-color: #facc15 !important;
}
.article-prose ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.article-prose li {
  margin-bottom: 0.5rem;
}
