/*
 * main.css - Main styles for ScanFood
 * FIT ANGELS Design System
 * Updated: 2025-10-03 19:45
 */

/* ========================================
   1. CSS VARIABLES (FIT ANGELS PALETTE)
   ======================================== */

:root {
  /* Primary Colors */
  --wellness-cream: #FFF9F6;
  --wellness-text: #2C2C2C;
  --wellness-coral: #FF6B47;
  --wellness-blush: #F7BFB4;
  
  /* Secondary Colors */
  --wellness-apricot: #FFB45B;
  --wellness-softPink: #F9EBE8;
  --wellness-warmPeach: #FFE4D6;
  
  /* System Colors */
  --background: #FFF9F6;
  --foreground: #2C2C2C;
  --card: #FFFFFF;
  --border: #F7BFB4;
  --muted: #F9EBE8;
  --muted-foreground: #737373;
  --destructive: #EF4444;
  
  /* Border Radius */
  --radius: 1rem;
  --radius-sm: 0.75rem;
  --radius-md: 0.875rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;
}

/* ========================================
   2. RESET & BASE STYLES
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--wellness-cream);
  color: var(--wellness-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   3. TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(1.875rem, 5vw, 3.75rem); /* 30-60px */
}

h2 {
  font-size: clamp(1.875rem, 4vw, 2.25rem); /* 30-36px */
}

h3 {
  font-size: 1.5rem; /* 24px */
}

p {
  font-size: clamp(1rem, 1.5vw, 1.125rem); /* 16-18px */
  margin-bottom: 1rem;
}

p.lead {
  font-size: clamp(1.125rem, 2vw, 1.5rem); /* 18-24px */
  font-weight: 500;
}

small {
  font-size: clamp(0.875rem, 1vw, 1rem); /* 14-16px */
}

a {
  color: var(--wellness-coral);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--wellness-apricot);
}

/* ========================================
   4. LAYOUT CONTAINERS
   ======================================== */

.container {
  max-width: 72rem; /* 1152px */
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

@media (min-width: 1024px) {
  .section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* ========================================
   5. GRADIENTS & BACKGROUNDS
   ======================================== */

.gradient-bg {
  background: linear-gradient(135deg, #FFF9F6 0%, #F9EBE8 50%, #F7BFB4 100%);
}

.wellness-gradient {
  background: linear-gradient(135deg, #FFE4D6 0%, #F9EBE8 100%);
}

.radial-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, rgba(247, 191, 180, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* ========================================
   6. UTILITIES
   ======================================== */

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }

.hidden {
  display: none;
}

.block {
  display: block;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.w-full {
  width: 100%;
}

.max-w-md {
  max-width: 28rem; /* 448px */
}

.max-w-lg {
  max-width: 32rem; /* 512px */
}

.max-w-xl {
  max-width: 36rem; /* 576px */
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   7. EMOJI SUPPORT
   ======================================== */

.emoji {
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  font-style: normal;
}
