/**
 * AdmissionWork - Custom Stylesheet & Design System
 * Matches the Next.js visual design, typography, color palette, and layout
 */

:root {
  --maroon-950: #33000C;
  --maroon-900: #4D0014;
  --maroon-850: #66001B;
  --maroon-800: #7A0021;
  --maroon-750: #8C082A;
  --maroon-700: #9E1033;
  --maroon-600: #B8183F;
  --maroon-500: #D4244E;
  --maroon-100: #FADCE3;
  --maroon-50:  #FFF0F3;
  
  --navy-950: #070D18;
  --navy-900: #0D1629;
  --navy-800: #162444;
  --navy-700: #213560;

  --shadow-soft-xl: 0 20px 40px -15px rgba(122, 0, 33, 0.12), 0 10px 20px -10px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-card-hover: 0 12px 30px rgba(122, 0, 33, 0.15);
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: #FFFFFF;
  color: #0F172A;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

/* Gradients & Special Backgrounds */
.bg-maroon-gradient {
  background: linear-gradient(135deg, #7A0021 0%, #4D0014 50%, #33000C 100%);
}

.bg-maroon-card-gradient {
  background: linear-gradient(145deg, #8C082A 0%, #66001B 100%);
}

.bg-hero-pattern {
  background-color: #7A0021;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.gradient-text-purple {
  background: linear-gradient(135deg, #9333ea 0%, #ec4899 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Shadows */
.shadow-soft-xl {
  box-shadow: var(--shadow-soft-xl);
}

.shadow-card {
  box-shadow: var(--shadow-card);
}

.shadow-card-hover {
  box-shadow: var(--shadow-card-hover);
}

/* Keyframe Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: float 5s ease-in-out infinite;
}

@keyframes announcement-ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.announcement-ticker {
  animation: announcement-ticker 28s linear infinite;
  display: flex;
  width: max-content;
}

.announcement-ticker:hover {
  animation-play-state: paused;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Form Styles & Focus Rings */
.form-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #E2E8F0;
  background-color: #FFFFFF;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: #0F172A;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  outline: none;
  transition: all 0.2s ease-in-out;
}

.form-input:focus {
  border-color: #7A0021;
  box-shadow: 0 0 0 2px rgba(122, 0, 33, 0.2);
}

.form-input:disabled {
  background-color: #F1F5F9;
  cursor: not-allowed;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
