/* ==========================================================================
   Allen High School - Main Stylesheet
   Design System: Academic Prestige & Heritage
   ========================================================================== */

:root {
  --color-primary: #00184a;
  --color-primary-container: #012b75;
  --color-secondary: #894c5b;
  --color-secondary-pink: #fdafc0;
  --color-accent-red: #f31314;
  --color-surface: #f7f9fc;
  --color-surface-container: #eceef1;
  --color-surface-container-low: #f2f4f7;
  --color-surface-lowest: #ffffff;
  --color-on-surface: #191c1e;
  --color-on-surface-variant: #444651;
  --color-outline: #747682;
  --color-outline-variant: #c4c6d3;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-surface);
  color: var(--color-on-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f4f9;
}

::-webkit-scrollbar-thumb {
  background: #c4c6d3;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #012b75;
}

/* Active Nav Links */
.nav-link.active {
  color: #012b75 !important;
  font-weight: 700 !important;
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #012b75;
  border-radius: 2px;
}

/* Card Hover Elevation Effects */
.hover-lift {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(1, 43, 117, 0.12), 0 4px 8px -2px rgba(1, 43, 117, 0.04);
}

/* Modal and Lightbox Animations */
.modal-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

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

.modal-backdrop.open .modal-dialog {
  transform: scale(1) translateY(0);
}

/* Mobile Drawer Animation */
.mobile-drawer {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Toast Notification */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #00184a;
  color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 24, 74, 0.3);
  border: 1px solid rgba(253, 175, 192, 0.3);
  font-size: 14px;
  font-weight: 500;
  animation: slideInToast 0.3s ease forwards;
}

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

/* Badge Glow Effect */
.badge-pulse {
  position: relative;
}

.badge-pulse::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 9999px;
  background: inherit;
  opacity: 0.4;
  animation: pulse-ring 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  z-index: -1;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

/* Gallery Grid Filters */
.gallery-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item.hidden {
  display: none;
}
