/* RI8WIN NOBEL PATH FOUNDATION - Custom Theme Styles */

:root {
  --primary: #0284c7;
  --primary-light: #0ea5e9;
  --primary-dark: #0369a1;
  --secondary: #38bdf8;
  --secondary-light: #bae6fd;
  --accent-gold: #f59e0b;
  --accent-gold-dark: #d97706;
  --bg-cream: #f8fafc;
  --text-main: #0f172a;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/* Noble RI8 Card Styling */
.ri8-card {
  transition: all 0.25s ease-in-out;
  border-top: 4px solid var(--primary);
}
.ri8-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.15), 0 8px 10px -6px rgba(2, 132, 199, 0.1);
  border-top-color: var(--accent-gold);
}

/* Membership Card Styling in Volunteer Dashboard */
.membership-card-preview {
  background: linear-gradient(135deg, #0369a1 0%, #0f172a 100%);
  border: 2px solid #38bdf8;
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.25);
  position: relative;
  overflow: hidden;
}

.membership-card-preview::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  bottom: -50%;
  left: -50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Certificate Verification Watermark */
.cert-seal {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px double #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fdfbf7;
}

/* Modal Backdrop */
.modal-backdrop {
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(2px);
}

/* Smooth Tab Transitions */
.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}

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

/* 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;
}

/* Accessibility Font Sizing */
html.font-size-small {
  font-size: 14px;
}
html.font-size-normal {
  font-size: 16px;
}
html.font-size-large {
  font-size: 18px;
}
html.font-size-xlarge {
  font-size: 20px;
}

/* High Contrast Mode */
body.high-contrast {
  filter: contrast(125%);
}
body.high-contrast header {
  background: #000000 !important;
  border-bottom: 2px solid #ffffff !important;
}
body.high-contrast footer {
  background: #000000 !important;
  border-top: 2px solid #ffffff !important;
}

/* Printable Certificate & Official Letter Styles */
@media print {
  header, #accessibility-bar, footer, #toast-container, .no-print {
    display: none !important;
  }
  body, html {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .printable-document {
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 15px !important;
    width: 100% !important;
  }
}

/* Print Styles */
@media print {
  header, footer, nav, .no-print {
    display: none !important;
  }
}
