@import "tailwindcss";

/* ============================================
   AscendEd Design System — Tailwind CSS 4
   ============================================ */

@theme {
  /* Brand Colors */
  --color-summit-navy: #1E3A5F;
  --color-summit-navy-light: #2A4F7F;
  --color-summit-navy-dark: #152B47;
  --color-trail-teal: #0D9488;
  --color-trail-teal-light: #14B8A6;
  --color-trail-teal-dark: #0F766E;
  --color-ridge-slate: #475569;
  --color-ridge-slate-light: #64748B;
  --color-basecamp-gray: #F1F5F9;
  --color-basecamp-gray-dark: #E2E8F0;
  --color-snowfield: #FFFFFF;
  --color-sunrise-amber: #D97706;
  --color-sunrise-amber-light: #F59E0B;
  --color-summit-green: #16A34A;
  --color-summit-green-light: #22C55E;
  --color-alert-red: #DC2626;
  --color-alert-red-light: #EF4444;

  /* Typography */
  --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

/* Google Fonts — Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================
   Custom Animations
   ============================================ */

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-pulse-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}

.animate-fade-in-up {
  animation: fade-in-up 0.5s ease-out forwards;
}

.animate-slide-in-right {
  animation: slide-in-right 0.4s ease-out forwards;
}

/* Staggered animation delays for cards */
.stagger-1 { animation-delay: 0.1s; opacity: 0; }
.stagger-2 { animation-delay: 0.2s; opacity: 0; }
.stagger-3 { animation-delay: 0.3s; opacity: 0; }
.stagger-4 { animation-delay: 0.4s; opacity: 0; }

/* ============================================
   Mountain Ridge SVG Background
   ============================================ */

.mountain-hero {
  position: relative;
  overflow: hidden;
}

.mountain-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1E3A5F 0%, #0D9488 100%);
  z-index: 0;
}

/* Topographic contour texture */
.topo-texture {
  background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 200 Q100 180 200 200 Q300 220 400 200' stroke='white' stroke-width='0.5' fill='none' opacity='0.04'/%3E%3Cpath d='M0 160 Q100 140 200 160 Q300 180 400 160' stroke='white' stroke-width='0.5' fill='none' opacity='0.03'/%3E%3Cpath d='M0 240 Q100 220 200 240 Q300 260 400 240' stroke='white' stroke-width='0.5' fill='none' opacity='0.04'/%3E%3Cpath d='M0 120 Q100 100 200 120 Q300 140 400 120' stroke='white' stroke-width='0.5' fill='none' opacity='0.02'/%3E%3Cpath d='M0 280 Q100 260 200 280 Q300 300 400 280' stroke='white' stroke-width='0.5' fill='none' opacity='0.03'/%3E%3Cpath d='M0 80 Q100 60 200 80 Q300 100 400 80' stroke='white' stroke-width='0.5' fill='none' opacity='0.02'/%3E%3Cpath d='M0 320 Q100 300 200 320 Q300 340 400 320' stroke='white' stroke-width='0.5' fill='none' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ============================================
   Shared Component Styles
   ============================================ */

/* Status badge base */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

/* Turbo frame transitions */
turbo-frame {
  display: block;
}

turbo-frame[busy]::after {
  content: '';
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  margin: 1rem auto;
  border: 2px solid #E2E8F0;
  border-top-color: #0D9488;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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