/* ── WOKOLOGY Shared Styles ─────────────────────────── */
* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }

body {
  font-family: 'PingFang SC', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: #FFF9E6;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
}

.material-icons-round {
  font-family: 'Material Icons Round';
  font-weight: normal; font-style: normal;
  font-size: 24px; line-height: 1;
  letter-spacing: normal; text-transform: none;
  display: inline-block; white-space: nowrap; direction: ltr;
  -webkit-font-smoothing: antialiased;
}

/* ── Interactions ──────────────────────────────────── */
.ripple { position: relative; overflow: hidden; }
.ripple::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  width: 100px; height: 100px; margin: -50px 0 0 -50px;
  top: 50%; left: 50%;
  transform: scale(0); opacity: 1;
  transition: transform 0.4s, opacity 0.4s; pointer-events: none;
}
.ripple:active::after { transform: scale(4); opacity: 0; }
.card-press { transition: transform 0.15s, box-shadow 0.15s; }
.card-press:active { transform: scale(0.97); box-shadow: 0 1px 4px rgba(0,0,0,0.12); }

/* ── Scroll ────────────────────────────────────────── */
.scroll-x { overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.scroll-x::-webkit-scrollbar { display: none; }

/* ── Bottom Nav ────────────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: #FFF9E6; border-top: 1px solid #E0E0E0;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.page-wrap { padding-bottom: 80px; }

/* Nav active states */
a.nav-btn .nav-icon,
a.nav-btn .nav-label { color: #9ca3af; transition: color 0.2s; }
a.nav-btn.active .nav-icon { color: #F5A623; }
a.nav-btn.active .nav-label { color: #F5A623; font-weight: 600; }

/* ── Animations ────────────────────────────────────── */
.fade-in { animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.slide-up { animation: slideUp 0.3s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ── Colour Primitives ─────────────────────────────── */
.hero-gradient { background: linear-gradient(135deg, #2B5A8E 0%, #3D6FA8 50%, #5B8BC4 100%); }

/* ── Tags ──────────────────────────────────────────── */
.tag { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; }

/* ── Status Badges ─────────────────────────────────── */
.s-online  { background: #dcfce7; color: #16a34a; }
.s-idle    { background: #eff6ff; color: #2563eb; }
.s-cooking { background: #fff7ed; color: #ea580c; }
.s-offline { background: #f1f5f9; color: #94a3b8; }
.s-error   { background: #fef2f2; color: #dc2626; }

/* ── Recipe Images ─────────────────────────────────── */
.recipe-img    { width: 100%; height: 160px; object-fit: cover; display: block; background: #f3f4f6; }
.recipe-img-sm { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; display: block; flex-shrink: 0; background: #f3f4f6; }

/* ── Labels ────────────────────────────────────────── */
.lbl-free    { background: #dcfce7; color: #15803d; font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.lbl-premium { background: #fef3c7; color: #b45309; font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }

/* ── Modal Sheet ───────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200; display: none;
  align-items: flex-end; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-sheet {
  background: #FFF9E6; border-radius: 24px 24px 0 0;
  width: 100%; max-width: 430px;
  max-height: 85vh; overflow-y: auto;
  padding: 8px 20px 44px;
}
.modal-handle {
  width: 40px; height: 4px;
  background: #e2e8f0; border-radius: 2px;
  margin: 12px auto 20px;
}

/* ── Toast ─────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 94px; left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: #1f2937; color: white;
  font-size: 14px; padding: 10px 20px;
  border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none; white-space: nowrap; max-width: 320px;
}

/* ── Inputs ────────────────────────────────────────── */
input:focus, textarea:focus, select:focus { outline: none; }

/* ── Language Switcher ─────────────────────────────── */
.lang-btn {
  flex: 1; padding: 10px 0; border-radius: 12px;
  font-size: 14px; font-weight: 500;
  background: #f1f5f9; color: #64748b;
  border: 2px solid transparent;
  transition: all 0.2s; text-align: center; cursor: pointer;
}
.lang-btn.active {
  background: #FFF8EC; color: #F5A623;
  border-color: #F5A623;
}

/* ── Auth Pages ────────────────────────────────────── */
.auth-hero {
  background: linear-gradient(160deg, #2B5A8E 0%, #3D6FA8 60%, #5B8BC4 100%);
  padding: 60px 32px 40px;
  text-align: center; color: white;
}
.auth-card {
  background: #FFF9E6; border-radius: 24px 24px 0 0;
  padding: 28px 24px 40px; margin-top: -20px;
  min-height: calc(100vh - 180px);
}
.auth-input {
  width: 100%; background: #f8fafc;
  border: 1.5px solid #e2e8f0; border-radius: 14px;
  padding: 14px 16px; font-size: 15px; color: #1e293b;
  transition: border-color 0.2s, background 0.2s;
}
.auth-input:focus { border-color: #F5A623; background: white; }
.auth-btn {
  width: 100%; background: #F5A623; color: white;
  border-radius: 14px; padding: 15px; font-size: 16px;
  font-weight: 700; text-align: center; cursor: pointer;
  border: none; transition: opacity 0.2s;
}
.auth-btn:active { opacity: 0.85; }

/* ── WOKOLOGY K100 Color System ────────────────────── */
/* Palette: Deep Blue #2B5A8E · Light Blue #5B8BC4 · Warm Beige #F7F3E9 · Golden #F5A623 · Orange #FF6B35 */
/* Based on WOKOLOGY K100 promotional design */

/* Tailwind orange → warm amber-orange #F5A623 */
.bg-orange-50  { background-color: #FFF8EC !important; }
.bg-orange-100 { background-color: #FEF0D0 !important; }
.bg-orange-200 { background-color: #FDDBA0 !important; }
.bg-orange-300 { background-color: #FAC96D !important; }
.bg-orange-400 { background-color: #F7B84B !important; }
.bg-orange-500 { background-color: #F5A623 !important; }
.bg-orange-600 { background-color: #E09418 !important; }

.text-orange-400 { color: #F7B84B !important; }
.text-orange-500 { color: #F5A623 !important; }
.text-orange-600 { color: #E09418 !important; }
.text-orange-700 { color: #C07A10 !important; }
.text-orange-800 { color: #9A6010 !important; }

.border-orange-300 { border-color: #FAC96D !important; }
.border-orange-500 { border-color: #F5A623 !important; }

.hover\:border-orange-300:hover { border-color: #FAC96D !important; }
.hover\:bg-orange-50:hover    { background-color: #FFF8EC !important; }
.hover\:bg-orange-600:hover   { background-color: #E09418 !important; }
.hover\:text-orange-600:hover { color: #E09418 !important; }

.from-orange-50  { --tw-gradient-from: #FFF8EC; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255,248,236,0)); }
.to-orange-100   { --tw-gradient-to: #FEF0D0; }
.shadow-orange-200 { --tw-shadow-color: #FDDBA0; box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); }
.focus\:ring-orange-500:focus { --tw-ring-color: #F5A623; }
.accent-orange-500 { accent-color: #F5A623; }

/* Page background override (Tailwind bg-gray-50 on <body>) */
body.bg-gray-50 { background-color: #FFF9E6 !important; }

/* Warm beige for main content cards / nav */
.bg-white-card { background-color: #FFF9E6; }

/* Search / input field tint */
.bg-gray-100.rounded-2xl { background-color: #EAEdf1 !important; }

/* Status badge — cooking: use warm orange */
.s-cooking { background: #FEF0D0; color: #C07A10; }

/* ── WOKOLOGY K100 Blue Theme ──────────────────────── */
/* Primary Blue Colors */
.bg-blue-primary { background-color: #2B5A8E !important; }
.bg-blue-light { background-color: #5B8BC4 !important; }
.bg-blue-50 { background-color: #EFF6FF !important; }
.bg-blue-100 { background-color: #DBEAFE !important; }
.bg-blue-500 { background-color: #3B82F6 !important; }
.bg-blue-600 { background-color: #2563EB !important; }

.text-blue-primary { color: #2B5A8E !important; }
.text-blue-light { color: #5B8BC4 !important; }
.text-blue-600 { color: #2563EB !important; }
.text-blue-700 { color: #1D4ED8 !important; }
.text-blue-800 { color: #1E40AF !important; }

.border-blue-primary { border-color: #2B5A8E !important; }
.border-blue-light { border-color: #5B8BC4 !important; }
.border-blue-300 { border-color: #93C5FD !important; }

/* Gradient utilities */
.gradient-blue-primary { background: linear-gradient(135deg, #2B5A8E 0%, #3D6FA8 50%, #5B8BC4 100%); }
.gradient-blue-soft { background: linear-gradient(160deg, #2B5A8E 0%, #3D6FA8 60%, #5B8BC4 100%); }

/* Hover states */
.hover\:bg-blue-primary:hover { background-color: #2B5A8E !important; }
.hover\:bg-blue-light:hover { background-color: #5B8BC4 !important; }
.hover\:border-blue-primary:hover { border-color: #2B5A8E !important; }
