/* Critical CSS for above-the-fold content - AI Trip Planner */

/* Essential base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  font-display: swap;
  background: hsl(240 50% 98%);
  color: hsl(220 25% 15%);
}

/* Critical layout utilities */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }

/* Critical typography */
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* Critical spacing */
.max-w-7xl { max-width: 80rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-3xl { max-width: 48rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

/* Critical colors */
.bg-background { background-color: hsl(240 50% 98%); }
.text-muted-foreground { color: hsl(220 15% 55%); }
.text-primary { color: hsl(205 85% 55%); }

/* Critical gradients */
.gradient-text {
  background: linear-gradient(135deg, hsl(205 85% 55%), hsl(205 85% 65%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

/* LCP optimization */
.lcp-optimized {
  font-display: swap;
  contain: layout style paint;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

.hero-content {
  contain: layout style;
  font-display: swap;
}

/* Critical button styles */
.hover-scale {
  transition: transform 0.2s ease;
  will-change: transform;
}

.hover-scale:hover {
  transform: scale(1.02);
}

/* Critical border utilities */
.border-b { border-bottom-width: 1px; }
.border-border { border-color: hsl(220 20% 90%); }

/* Loading spinner */
.animate-spin { animation: spin 1s linear infinite; }
.rounded-full { border-radius: 9999px; }
.h-8 { height: 2rem; }
.w-8 { width: 2rem; }
.border-b-2 { border-bottom-width: 2px; }

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

/* Mobile responsive */
@media (min-width: 768px) {
  .md\\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .md\\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
}