/* Modern Culinary Artisan Stylesheet — ReceptKincstár */

:root {
  --color-linen: #FAF8F5;
  --color-cream: #F4EFE6;
  --color-terracotta: #C85A32;
  --color-terracotta-hover: #B34E2A;
  --color-terracotta-light: #F8ECE7;
  --color-sage: #4A6B53;
  --color-sage-light: #EDF2EE;
  --color-charcoal: #1E1D1B;
  --color-stone: #78716C;
  --color-border: #E7E1D7;
}

/* Global Reset & Horizontal Overflow Guarantee (360px - 1440px) */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--color-linen);
  color: var(--color-charcoal);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Touch Target Minimum (44x44px) */
.touch-target-44 {
  min-width: 44px;
  min-height: 44px;
}

/* Quick Inspiration Chips */
.quick-chip {
  padding: 0.5rem 1rem;
  min-height: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  background-color: var(--color-linen);
  border: 1px solid var(--color-border);
  color: var(--color-stone);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.quick-chip:hover {
  background-color: #FFFFFF;
  color: var(--color-terracotta);
  border-color: var(--color-terracotta);
  transform: translateY(-1px);
}

/* Category Filter Pills in Cookbook */
.cat-pill {
  padding: 0.55rem 1.1rem;
  min-height: 44px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  white-space: nowrap;
  background-color: var(--color-linen);
  border: 1px solid var(--color-border);
  color: var(--color-stone);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cat-pill:hover {
  background-color: #FFFFFF;
  color: var(--color-charcoal);
}
.cat-pill.active {
  background-color: var(--color-terracotta);
  border-color: var(--color-terracotta);
  color: #FFFFFF;
}

/* Scope Filter Pills (Összes / Saját / Családi) */
.scope-pill {
  padding: 0.45rem 0.9rem;
  min-height: 38px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  white-space: nowrap;
  background-color: var(--color-linen);
  border: 1px solid var(--color-border);
  color: var(--color-stone);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.scope-pill:hover {
  background-color: #FFFFFF;
  color: var(--color-charcoal);
}
.scope-pill.active {
  background-color: var(--color-sage);
  border-color: var(--color-sage);
  color: #FFFFFF;
}

/* Ingredient Checkbox Item */
.ingredient-row {
  transition: all 0.2s ease;
  min-height: 44px;
}
.ingredient-row.checked span.ing-name {
  text-decoration: line-through;
  color: #A8A29E;
}
.ingredient-row.checked span.ing-amount {
  color: #D6D3D1;
}

/* Kitchen 3x4 Tactile PIN Keypad */
.pin-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  border: 2px solid var(--color-border);
  background-color: transparent;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pin-dot.filled {
  background-color: var(--color-terracotta);
  border-color: var(--color-terracotta);
  transform: scale(1.15);
  box-shadow: 0 0 8px rgba(200, 90, 50, 0.35);
}
.pin-dot.error {
  background-color: #EF4444;
  border-color: #EF4444;
  transform: scale(1.15);
}

.numpad-btn {
  min-width: 56px;
  min-height: 56px;
  width: 4rem;
  height: 4rem;
  border-radius: 1.25rem;
  background-color: var(--color-linen);
  border: 1px solid var(--color-border);
  color: var(--color-charcoal);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  user-select: none;
  touch-action: manipulation;
}
.numpad-btn:hover {
  background-color: var(--color-cream);
  border-color: #D6D3D1;
}
.numpad-btn:active {
  transform: scale(0.94);
  background-color: #FFFFFF;
}

/* Animations */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}
.animate-shake {
  animation: shake 0.4s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-slide-up {
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #D6D3D1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #A8A29E;
}

/* ========================================================== */
/* RESPONSIVE ORIENTATION RULES                               */
/* ========================================================== */

/* Mobile Landscape: Height <= 500px */
@media (orientation: landscape) and (max-height: 500px) {
  header.site-header {
    height: 3rem !important; /* Flattened 48px header */
  }
  .header-brand-subtitle {
    display: none !important;
  }
  .recipe-hero-image {
    height: 7rem !important;
  }
  .landscape-compact {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
}

/* Tablet Landscape Kitchen Workstation Mode: >= 1024px */
@media (min-width: 1024px) and (orientation: landscape) {
  .workstation-step-text {
    font-size: 2.25rem !important;
    line-height: 1.4 !important;
  }
}
