:root {
  /* Colors */
  --primary: #ff8c00;
  --primary-container: #ffd5a3;
  --on-primary: #ffffff;
  
  --secondary: #006e1c;
  --secondary-container: #8cfb99;
  
  --surface: #fff8f3;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f9ede4;
  --surface-container-high: #ebdcd0;
  --on-surface: #1e1b17;
  
  /* Use DESIGN.md specific error color for missing ingredients */
  --error: #ba1a1a;
  
  /* Typrography */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Be Vietnam Pro', sans-serif;
  
  /* Spacing */
  --spacing-6: 2rem;
  --spacing-12: 4rem;
  
  /* Border Radius */
  --roundedness-sm: 0.5rem;
  --roundedness-md: 1rem;
  --roundedness-lg: 2rem;
  --roundedness-full: 9999px;
  
  /* Shadows */
  --ambient-shadow: 0px 8px 32px rgba(30, 27, 23, 0.06);
  --ghost-border: 1px solid rgba(30, 27, 23, 0.15);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--surface);
  color: var(--on-surface);
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
}

.hidden {
  display: none !important;
}

/* Home Modern Layout (Mobile First Redeisgn) */
.home-modern-layout {
  position: relative;
  min-height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-background {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  /* Dark, blurred, atmospheric culinary background */
  background-image: url('https://images.unsplash.com/photo-1490645935967-10de6ba17061?q=80&w=2053&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  filter: blur(10px) brightness(0.35);
  z-index: 1;
  transform: scale(1.1); /* Hides blurred edges */
}

.home-content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 500px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.home-header {
  text-align: center;
  color: #ffffff;
}

.home-header h1 {
  font-size: clamp(2.2rem, 8vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
  line-height: 1.1;
}

.home-header p {
  font-size: 1.25rem;
  font-family: var(--font-body);
  opacity: 0.9;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.home-menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Glassmorphism Buttons */
.glass-btn {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--roundedness-lg);
  cursor: pointer;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(20, 20, 20, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  width: 100%;
}

.glass-btn:hover {
  transform: translateY(-4px);
  background: rgba(30, 30, 30, 0.6);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  border-color: rgba(255, 255, 255, 0.3);
}

.primary-glass {
  border-left: 4px solid var(--primary);
}

.secondary-glass {
  border-left: 4px solid var(--secondary);
}

.btn-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.btn-text h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.btn-text p {
  font-size: 0.95rem;
  opacity: 0.85;
  font-family: var(--font-body);
  margin: 0;
}

/* Views (Kitchen, Recipes) */
.view {
  min-height: 100vh;
  position: relative;
  animation: fadeIn 0.4s ease-out;
}

.view-background {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  filter: blur(12px) brightness(0.25);
  z-index: 1;
  transform: scale(1.1);
}

.kitchen-bg {
  background-image: url('https://images.unsplash.com/photo-1556911220-e15b29be8c8f?q=80&w=2070&auto=format&fit=crop');
}

.recipes-bg {
  background-image: url('https://images.unsplash.com/photo-1546069901-ba9599a7e63c?q=80&w=2080&auto=format&fit=crop');
}

.view-content-layer {
  position: relative;
  z-index: 2;
  padding: var(--spacing-6);
  min-height: 100vh;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.view-header {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  margin-bottom: var(--spacing-12);
  max-width: 800px;
  margin: 0 auto var(--spacing-12);
  color: #fff;
}

.header-titles h2 {
  font-size: clamp(2.4rem, 9vw, 3.5rem);
  margin-top: 1rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.header-titles p.subtitle {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.btn-icon {
  background: var(--surface-container-high);
  border: none;
  border-radius: var(--roundedness-full);
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--on-surface);
  transition: transform 0.2s, background-color 0.2s;
}
.btn-icon:hover {
  transform: translateY(-2px);
  background: var(--surface-container-lowest);
  box-shadow: var(--ambient-shadow);
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

/* Forms and Inputs */
#add-ingredient-form {
  display: flex;
  gap: 1rem;
  margin-bottom: var(--spacing-6);
  background: var(--surface-container-lowest);
  padding: 1rem;
  border-radius: var(--roundedness-full);
  box-shadow: var(--ambient-shadow);
}

#ingredient-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.5rem 1.5rem;
  font-size: 1.1rem;
  font-family: var(--font-body);
  color: var(--on-surface);
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: var(--on-primary);
  /* The guidelines say padding for hovering, text is inside so color --on-primary (White) */
  color: white; 
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 1rem;
  border: none;
  padding: 0.75rem 2.5rem;
  border-radius: var(--roundedness-full);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

/* List Items (Glassmorphism & Surface Tiers) */
.fridge-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fridge-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.25rem 2rem;
  border-radius: var(--roundedness-md);
  box-shadow: var(--ambient-shadow);
  font-size: 1.15rem;
  font-weight: 500;
  transition: transform 0.2s;
}

.fridge-item:hover {
  transform: translateX(4px);
}

.fridge-item span.ing-name {
  color: var(--secondary); /* secondary color for "in my fridge" */
}

.fridge-item .btn-remove {
  background: var(--surface-container-high);
  border: none;
  border-radius: var(--roundedness-full);
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--on-surface);
  font-weight: bold;
  font-family: var(--font-body);
  font-size: 1.2rem;
  transition: background-color 0.2s;
}
.fridge-item .btn-remove:hover {
  background-color: var(--surface-container-low);
}

/* Chips Filter */
.filter-chips {
  display: flex;
  gap: 1rem;
  margin-bottom: var(--spacing-6);
}

.chip {
  padding: 0.75rem 1.5rem;
  border-radius: var(--roundedness-full);
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  background-color: var(--surface-container-high); /* Highest unselected */
  color: var(--on-surface);
  transition: all 0.2s;
}

.chip.active {
  background-color: var(--primary-container);
  color: var(--on-surface);
}

.chip:hover {
  opacity: 0.9;
}

/* Horizontal Tabs */
.category-tabs-container {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-tabs-container::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--roundedness-full);
  border: 1px solid var(--surface-container-high);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  background-color: var(--surface-container-lowest);
  color: var(--on-surface);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.tab-btn.active {
  background-color: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
  box-shadow: 0 4px 12px rgba(0, 110, 28, 0.25);
}

.tab-btn:hover:not(.active) {
  background-color: var(--surface-container-low);
  transform: translateY(-2px);
}

/* Recipe Cards & Grid */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  padding-bottom: var(--spacing-12);
}

.empty-category-msg {
  text-align: center;
  padding: 3rem 1rem;
  font-size: 1.15rem;
  font-family: var(--font-body);
  color: var(--on-surface);
  opacity: 0.6;
  font-style: italic;
  grid-column: 1 / -1;
}

.recipe-card {
  background-color: var(--surface-container-lowest);
  border-radius: var(--roundedness-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--ambient-shadow);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.recipe-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 38px rgba(30, 27, 23, 0.12);
}

.recipe-image {
  width: 100%;
  height: 140px; /* Enhanced thumbnail size */
  object-fit: cover;
  border-bottom: 3px solid var(--surface-container-low);
  /* Apply warm, editorial culinary filter */
  filter: sepia(0.15) contrast(0.95) saturate(1.1) brightness(0.98);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.recipe-card:hover .recipe-image {
  transform: scale(1.04);
  filter: sepia(0.05) contrast(1.02) saturate(1.15) brightness(1);
}

.recipe-content {
  padding: 1rem; /* Compact padding */
}

.recipe-content h3 {
  font-size: 1.15rem; /* Smaller title */
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.missing-info {
  margin-bottom: 0.5rem;
  color: var(--primary); /* using primary for missing ingredients per DO's */
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ingredient-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  padding: 0.3rem 0.6rem;
  border-radius: var(--roundedness-full);
  font-size: 0.75rem;
  font-weight: 600;
  border: var(--ghost-border); /* Ghost border fallback */
  background: transparent;
}

.tag.have {
  color: var(--secondary);
  background-color: rgba(140, 251, 153, 0.2); /* very light secondary container overlay */
  border-color: transparent;
}

.tag.missing {
  color: var(--error);
  background-color: rgba(186, 26, 26, 0.1);
  border-color: transparent;
}

/* Responsive */
@media (max-width: 600px) {
  .split-layout {
    flex-direction: column;
  }
}

/* Recipe Detail View */
.float-back {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 10;
  background: rgba(255, 248, 243, 0.8) !important;
  backdrop-filter: blur(10px);
}

.detail-hero {
  height: 350px;
  overflow: hidden;
  position: relative;
  background-color: var(--surface-container-low);
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-content {
  background: var(--surface-container-lowest);
  border-radius: var(--roundedness-lg);
  padding: 3rem;
  margin-top: -4rem; /* Asymmetric depth overlap */
  position: relative;
  z-index: 5;
  box-shadow: var(--ambient-shadow);
  margin-bottom: var(--spacing-12);
}

.detail-content h2 {
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.meta-info {
  font-size: 1.1rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: var(--spacing-6);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--spacing-6);
}

.detail-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 4px solid var(--surface-container-low);
  padding-bottom: 0.5rem;
  display: inline-block;
}

@media (max-width: 768px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

.clean-list {
  list-style: none;
  font-size: 1.15rem;
}
.clean-list li {
  padding: 0.75rem 0;
  border-bottom: var(--ghost-border);
}
.clean-list .have-text { color: var(--secondary); }
.clean-list .missing-text { color: var(--error); font-weight: 600; }
.ing-bullet { font-weight: bold; margin-right: 8px; font-size: 1.25rem;}

.step-list {
  list-style: none;
}
.step-list li {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.step-num {
  background: var(--primary-container);
  color: var(--primary);
  width: 44px;
  height: 44px;
  border-radius: var(--roundedness-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-family: var(--font-display);
  font-size: 1.25rem;
  flex-shrink: 0;
}
.step-text {
  font-size: 1.15rem;
  line-height: 1.7;
  padding-top: 0.35rem;
}

/* Checkboxes & Search */
.search-box {
  margin-bottom: var(--spacing-6);
  background: var(--surface-container-lowest);
  padding: 0.25rem 0.5rem;
  border-radius: var(--roundedness-full);
  box-shadow: var(--ambient-shadow);
  display: flex;
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 1rem 1.5rem;
  font-size: 1.15rem;
  font-family: var(--font-body);
  color: var(--on-surface);
  outline: none;
}

.checklist-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: var(--spacing-12);
}

/* Ingredient Categories List (No longer details) */
.category-details {
  background: var(--surface-container-lowest);
  border-radius: var(--roundedness-lg);
  padding: 1.5rem;
  box-shadow: var(--ambient-shadow);
  margin-bottom: 1rem;
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Mobile Touch-Friendly Ingredient Selection Chips */
.ingredient-chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.7rem 1.15rem; /* Generous touch area */
  border-radius: var(--roundedness-full);
  border: 1px solid var(--surface-container-high);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--on-surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.ingredient-chip-btn:hover {
  transform: translateY(-2px);
  background: var(--surface-container-lowest);
  border-color: var(--secondary-container);
}

.ingredient-chip-btn:active {
  transform: scale(0.95); /* Haptic click feedback */
}

/* Selected state for ingredient selection chips */
.ingredient-chip-btn.selected {
  background: var(--secondary);
  color: white !important;
  border-color: var(--secondary);
  box-shadow: 0 4px 12px rgba(0, 110, 28, 0.2);
}

.chip-check {
  font-weight: bold;
  font-size: 1.1rem;
}

/* Fridge Status Panel at the top of Mutfağım */
.fridge-status-panel {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: var(--roundedness-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--ambient-shadow);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeIn 0.4s ease-out;
}

.fridge-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
}

.fridge-title-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fridge-title-group h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--on-surface);
}

.fridge-count-badge {
  background: var(--secondary);
  color: white !important;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--roundedness-full);
}

.btn-clear-fridge {
  background: transparent;
  border: none;
  color: var(--error);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity 0.2s;
  padding: 0.25rem;
  font-family: var(--font-body);
}

.btn-clear-fridge:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.fridge-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-height: 150px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.fridge-tags-grid::-webkit-scrollbar {
  width: 4px;
}
.fridge-tags-grid::-webkit-scrollbar-thumb {
  background: var(--surface-container-high);
  border-radius: 10px;
}

.fridge-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--surface-container-lowest);
  border: 1px solid var(--surface-container-high);
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--roundedness-full);
  cursor: pointer;
  transition: all 0.2s;
}

.fridge-tag-pill:hover {
  background: var(--error);
  color: white !important;
  border-color: var(--error);
}

.fridge-empty-tip {
  font-size: 0.9rem;
  color: var(--on-surface);
  opacity: 0.6;
  font-style: italic;
}

/* --- Added Features --- */

/* "Şansını Dene!" (Almost Can Make) Container */
.almost-can-make-container {
  background: linear-gradient(135deg, var(--surface-container-lowest), rgba(255, 248, 243, 0.9));
  border-radius: var(--roundedness-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 30px rgba(255, 140, 0, 0.08);
  border-left: 5px solid var(--primary);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeIn 0.5s ease-out;
}

.almost-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.almost-header .almost-badge {
  background-color: var(--primary);
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: var(--roundedness-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.almost-header h3 {
  font-size: 1.35rem;
  color: var(--on-surface);
  font-weight: 700;
}

.almost-card-wrapper {
  display: flex;
  gap: 1.5rem;
  background: var(--surface-container-lowest);
  padding: 1.25rem;
  border-radius: var(--roundedness-md);
  box-shadow: var(--ambient-shadow);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  align-items: center;
}

.almost-card-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(30, 27, 23, 0.08);
}

.almost-image {
  width: 100px;
  height: 100px;
  border-radius: var(--roundedness-md);
  object-fit: cover;
  flex-shrink: 0;
  filter: sepia(0.15) contrast(0.95) saturate(1.1) brightness(0.98);
}

.almost-info {
  flex-grow: 1;
}

.almost-info h4 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  color: var(--on-surface);
}

.almost-missing-text {
  font-size: 0.95rem;
  color: var(--on-surface);
  opacity: 0.85;
}

.almost-missing-text strong {
  color: var(--error);
  font-weight: 700;
}

.almost-arrow {
  font-size: 1.5rem;
  color: var(--primary);
  padding-left: 0.5rem;
  transition: transform 0.2s;
}

.almost-card-wrapper:hover .almost-arrow {
  transform: translateX(4px);
}

/* Mood Filter Chips */
.mood-chips-container {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  scrollbar-width: none;
}
.mood-chips-container::-webkit-scrollbar {
  display: none;
}

.mood-chip {
  padding: 0.5rem 1rem;
  border-radius: var(--roundedness-full);
  border: 1px solid var(--surface-container-high);
  background: var(--surface-container-lowest);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mood-chip.active {
  background: var(--primary-container);
  color: var(--on-surface);
  border-color: var(--primary-container);
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(255, 140, 0, 0.15);
}

.mood-chip:hover:not(.active) {
  background: var(--surface-container-low);
  transform: translateY(-1px);
}

/* Free-form ingredient inputs */
.search-add-group {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 1.5rem;
}

.search-add-group .search-box {
  flex: 1;
  margin-bottom: 0;
}

.btn-add-custom {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-container));
  color: white !important;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: none;
  padding: 0 1.5rem;
  border-radius: var(--roundedness-full);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 110, 28, 0.15);
}

.btn-add-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 110, 28, 0.25);
}

/* Alışveriş Listesi Floating Drawer & Elements */
.shopping-cart-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: white !important;
  border: none;
  border-radius: var(--roundedness-full);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 140, 0, 0.35);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.shopping-cart-fab:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 140, 0, 0.45);
}

.shopping-cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--error);
  color: white !important;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.25rem 0.5rem;
  border-radius: var(--roundedness-full);
  min-width: 18px;
  text-align: center;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.shopping-list-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: rgba(255, 248, 243, 0.9);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 100;
  box-shadow: -8px 0 32px rgba(30, 27, 23, 0.15);
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  color: var(--on-surface);
}

.shopping-list-drawer.open {
  right: 0;
}

.drawer-header {
  padding: 1.5rem;
  border-bottom: 4px solid var(--surface-container-low);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.drawer-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--on-surface);
  opacity: 0.6;
  transition: opacity 0.2s;
}
.drawer-close:hover {
  opacity: 1;
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.shopping-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-container-lowest);
  padding: 1rem 1.25rem;
  border-radius: var(--roundedness-md);
  box-shadow: var(--ambient-shadow);
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s, opacity 0.2s;
  border: 1px solid transparent;
}

.shopping-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary-container);
}

.shopping-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.shopping-item.checked {
  opacity: 0.5;
}

.shopping-item.checked .shopping-item-text {
  text-decoration: line-through;
}

.shopping-item-text {
  font-weight: 600;
  font-size: 1rem;
}

.shopping-item-recipe {
  font-size: 0.75rem;
  color: var(--primary);
  opacity: 0.8;
  display: block;
  font-weight: 500;
}

.shopping-item-remove {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.4;
  transition: opacity 0.2s;
  padding: 0.25rem;
}
.shopping-item-remove:hover {
  opacity: 1;
}

.drawer-footer {
  padding: 1.5rem;
  border-top: 4px solid var(--surface-container-low);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.shopping-drawer-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.shopping-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Beautiful illustrative Empty States */
.empty-state-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--surface-container-lowest);
  border-radius: var(--roundedness-lg);
  box-shadow: var(--ambient-shadow);
  animation: fadeIn 0.4s ease-out;
  grid-column: 1 / -1;
  margin: 1.5rem 0;
}

.empty-state-icon {
  font-size: 4.5rem;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 6px 12px rgba(30, 27, 23, 0.08));
  line-height: 1;
}

.empty-state-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}

.empty-state-text {
  font-size: 0.95rem;
  color: var(--on-surface);
  opacity: 0.7;
  max-width: 320px;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.empty-state-btn {
  /* Inherits from btn-primary */
}

/* Recipe details Want to Make button */
.btn-want-to-make {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary) !important;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--roundedness-full);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-family: var(--font-body);
}

.btn-want-to-make.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: white !important;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.2);
}

.btn-want-to-make:hover {
  transform: translateY(-2px);
}

/* Freshness Indicators & Dots */
.freshness-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.freshness-dot.fresh {
  background-color: var(--secondary); /* Fresh Green */
  box-shadow: 0 0 6px rgba(0, 110, 28, 0.4);
}
.freshness-dot.warning {
  background-color: var(--primary); /* Warm Orange */
  box-shadow: 0 0 6px rgba(255, 140, 0, 0.4);
}
.freshness-dot.stale {
  background-color: var(--surface-container-high); /* Grey */
  border: 1px solid rgba(30, 27, 23, 0.25);
}

/* Fridge Warning Banner */
.fridge-warning-banner {
  background-color: rgba(255, 140, 0, 0.08);
  border-left: 4px solid var(--primary);
  border-radius: var(--roundedness-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  animation: fadeIn 0.4s ease-out;
}

.warning-banner-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--on-surface);
}

.warning-banner-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.warning-banner-item {
  background: var(--surface-container-lowest);
  border: 1px solid var(--primary-container);
  color: var(--on-surface);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: var(--roundedness-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.warning-banner-item:hover {
  background: var(--error);
  color: white !important;
  border-color: var(--error);
}

/* Suggestion Autocomplete Dropdown */
.suggestion-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 248, 243, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--surface-container-high);
  border-radius: var(--roundedness-md);
  box-shadow: 0 8px 30px rgba(30, 27, 23, 0.15);
  max-height: 220px;
  overflow-y: auto;
  z-index: 50;
  margin-top: 0.25rem;
  animation: fadeIn 0.2s ease-out;
}

.suggestion-item {
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--on-surface);
  transition: background-color 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.suggestion-item:hover {
  background-color: var(--surface-container-low);
}

.suggestion-item:not(:last-child) {
  border-bottom: 1px solid rgba(30, 27, 23, 0.05);
}

/* Swipe Setup Card Mode */
.swipe-setup-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  align-items: center;
}

.swipe-progress-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#swipe-progress-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
  text-align: center;
}

.swipe-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: var(--roundedness-full);
  overflow: hidden;
}

#swipe-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-container));
  border-radius: var(--roundedness-full);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.swipe-deck {
  position: relative;
  width: 100%;
  height: 320px;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swipe-card {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 248, 243, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: var(--roundedness-lg);
  box-shadow: 0 16px 48px rgba(30, 27, 23, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  cursor: grab;
  user-select: none;
  transform-origin: 50% 100%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.swipe-card:active {
  cursor: grabbing;
}

.swipe-card.slide-out-right {
  transform: translate(150%, -20px) rotate(20deg) !important;
  opacity: 0;
}

.swipe-card.slide-out-left {
  transform: translate(-150%, -20px) rotate(-20deg) !important;
  opacity: 0;
}

.swipe-card-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.1));
}

.swipe-card h3 {
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--on-surface);
  line-height: 1.2;
}

.swipe-card p {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
}

.swipe-actions-row {
  display: flex;
  gap: 1.5rem;
  width: 100%;
}

.swipe-btn {
  flex: 1;
  padding: 1.15rem;
  border-radius: var(--roundedness-full);
  border: none;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  color: white !important;
}

.swipe-btn:active {
  transform: scale(0.96);
}

.swipe-btn.yok {
  background: linear-gradient(135deg, #a8a29e, #78716c);
  box-shadow: 0 4px 14px rgba(120, 113, 108, 0.3);
}

.swipe-btn.yok:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(120, 113, 108, 0.4);
}

.swipe-btn.var {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-container));
  box-shadow: 0 4px 14px rgba(0, 110, 28, 0.3);
}

.swipe-btn.var:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 110, 28, 0.4);
}


