
* {
  box-sizing: border-box; /* Elemanların genişlik ve yükseklik hesaplamasında padding ve border dahil edilir */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Tüm sayfada kullanılacak yazı tipi ailesi */
}

body {
  margin: 0; /* Sayfanın etrafındaki varsayılan boşluk kaldırılır */
  padding: 0; /* Sayfanın içindeki varsayılan boşluk kaldırılır */
  background-color: #fff8f0;
  color: #333; /* Metinlerin rengi koyu gri */
  display: flex; /* Body içeriği flexbox olarak düzenlenir */
  flex-direction: column; /* Flex öğeleri dikeyde üst üste yerleşir */
  min-height: 100vh; /* Sayfanın yüksekliği en az görünüm yüksekliği kadar olur */
}

.wrapper {
  display: flex; /* Wrapper  flex  */
  flex-direction: column; /* İçerik sütunlara yerleşir */
  flex: 1;
}

/* Header  */
header {
  display: flex; /* Header içinde elemanlar yatayda flex düzeninde olur */
  justify-content: space-between; /* Elemanlar arasında mümkün olduğunca boşluk bırakılır */
  align-items: center; /* Elemanlar dikeyde ortalanır */
  background-color: #ff2600; 
  color: white;
  padding: 1rem 2rem; 
}

.header-left h1 {
  margin: 0; /* Başlığın etrafındaki boşluk kaldırılır */
  font-size: 1.5rem; 
}

.header-right {
  display: flex; /* Sağ üstteki alana yatay flex  */
  gap: 1rem; /* İçindeki elemanlar arasındaboşluk */
}

.auth-btn {
  background-color: #ff2600; 
  border: 1.5px solid white; 
  color: white; 
  padding: 0.3rem 0.8rem; 
  border-radius: 5px; 
  cursor: pointer; /* Üzerine gelince fare işaretçisi el olur */
  font-weight: 600; 
  transition: background-color 0.3s, color 0.3s; 
}

.auth-btn:hover {
  background-color: white;
  color: #ff2600; /* Yazı rengi butonun orijinal rengine döner */
}

/* Footer */
footer {
  background-color: #ff2600; 
  color: white; 
  text-align: center; /* Metin ortalanır */
  padding: 1rem 0; 
  margin-top: auto; 
}

/* main */
main {
  padding: 2rem 1rem; /* İçerik etrafında  boşluk */
  max-width: 900px; 
  margin: auto; /* Ortalanır */
  display: flex; 
  flex-wrap: wrap; /* İçerik taşarsa alt satıra geçer */
  gap: 2rem; 
  justify-content: center; /* İçerik yatayda ortalanır */
}

/* Bölümler */
section {
  background-color: white; 
  padding: 1.5rem; 
  border-radius: 8px; 
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Hafif gölge efekti */
  flex: 1 1 300px; /* Esneyebilirlik kattık */
  min-width: 280px; /* Minimum genişlik 280px */
  box-sizing: border-box; /* Padding ve border genişlik hesabına dahil */
  position: relative; /* Göreceli konumlandırma, */
  z-index: 1; /* Diğer katmanların üstünde gösterilir */
}

/* Shopping List */
#shopping-section {
  background-image: url('images/shopping.list.jpeg'); 
  background-size: cover; 
  background-position: center; 
  color: white; 
  position: relative; /* Göreceli konum */
  z-index: 1; /* Üst katmanda */
  border-radius: 8px; /* Köşeler yuvarlatılmış */
  cursor: pointer;
  flex-direction: column;
}

#shopping-section::before {
  content: ''; /* Boş içerik arka plan karartma için */
  position: absolute; 
  inset: 0; 
  background-color: rgba(0, 0, 0, 0.4);
  z-index: -1; 
  border-radius: 8px; /* Kaplamanın  köşeleri yuvarlatılır */
}

#shopping-section:hover{
  transition: 300ms all;
  transform: scale(1.05);
}

/* Input  */
#input-section {
  background-image: url('images/ingredients.jpeg'); 
  background-size: cover; /* Resim alanı tamamen kaplar */
  background-position: center; /* Resim ortalanır */
  color: white;
  position: relative; /* Görecweli konumlandırma */
  z-index: 1; 
  border-radius: 8px; 
  padding: 1.5rem; /* İçi boşluk */
  order: -1;
  cursor: pointer;
}

#input-section::before {
  content: ''; 
  position: absolute;
  inset: 0; 
  background-color: rgba(0, 0, 0, 0.4); 
  z-index: -1; /* İçeriğin arkasın nda */
  border-radius: 8px; 
}

#input-section:hover{
  transition: 300ms all;
  transform: scale(1.05);
}
.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  color: #333;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hidden {
  display: none;
}

#ingredient-list {
  max-height: 200px; /* or any height you want */
  overflow-y: auto;
  padding-right: 0.5rem; /* optional, for scrollbar padding */
  margin: 0; /* remove default margin if needed */
}

#ingredient-list li {
  cursor: pointer;
  padding: 0.4rem;
  border-bottom: 1px solid #ddd;
}

#ingredient-list li.selected {
  background-color: #ff2600;
  color: white;
  font-weight: bold;
}

/* Cancel button overrides */
.cancel-btn {
  background-color: #aaa;
  border-color: #999;
  margin-left: 1rem;
  color: #333;
}

.cancel-btn:hover {
  background-color: #888;
  color: white;
}

/* Liste stilleri */
ul {
  list-style: none;
  padding-left: 0; /* Sol boşluk kaldır */
}

li {
  padding: 0.5rem 0; /* Üst ve alt boşluk */
  border-bottom: 1px solid #eee; 
}

/* Responsive ayarlar */
@media (max-width: 600px) {
  input[type="text"] {
    width: 100%; /* Küçük ekranlarda input genişliği*/
    margin-bottom: 0.5rem; /* Alt boşluk */
  }

  button#search-btn {
    width: 100%; /* Buton genişliği tam */
  }

  main {
    flex-direction: column; /* İçerik dikey yerleşir */
    padding: 1rem; /* İç boşluk küçültülür */
  }

  section {
    min-width: 100%; /* Bölüm genişliği tam genişlik olur */
  }

  header {
    flex-direction: column; /* Header dikey yerleşim */
    align-items: flex-start; /* Sol hizalama */
    gap: 0.5rem; /* Elemanlar arası boşluk */
  }

  .header-right {
    width: 100%; /* Sağ kısım tam genişlik */
    justify-content: flex-start; /* İçerik sola yaslanır */
  }

  .auth-btn {
    flex: 1; /* Buton esneyebilir */
    text-align: center; /* Metin ortalanır */
  }
}

/* Recipes */
#recipes-section {
  background-image: url('images/recipes.jpeg');
  background-size: cover; 
  background-position: center; /* Resim ortalanır */
  color: white; 
  position: relative; 
  z-index: 1; /* Üst katman */
  border-radius: 8px; 
  min-height: 250px; 
  display: flex; /* Flex */
  flex-direction: column; /* dikey yerleşim */
  justify-content: flex-start; /* İçeriği yukarı yaslar */
  cursor: pointer;
}

#recipes-section::before {
  content: ''; 
  position: absolute;
  inset: 0; /* Tam kaplama */
  background-color: rgba(0, 0, 0, 0.3); 
  z-index: -1; /* İçeriğin arkasında */
  border-radius: 8px; 
}

#recipes-section:hover{
  transition: 300ms all;
  transform: scale(1.05);
}


/* Favorites  */
#favorites-section {
  background-image: url('images/favorite\ recipes.jpeg'); 
  background-size: cover; /* Kaplaa */
  background-position: center; /* Ortalanır */
  color: white; 
  position: relative; /* Göreceli konum */
  z-index: 1; /* Üst katman */
  border-radius: 8px; /* Köşeler yuvarlatılmış */
  min-height: 250px; 
  display: flex; 
  flex-direction: column; 
  justify-content: flex-start; 
  cursor: pointer;
}

#favorites-section::before {
  content: ''; 
  position: absolute; /* Üste konumlandıwrma */
  inset: 0; /* Tam kaplama */
  background-color: rgba(0, 0, 0, 0.3); 
  z-index: -1; 
  border-radius: 8px; 
}

#favorites-section:hover{
  transition: 300ms all;
  transform: scale(1.05);
}


/* Complete Menu  */
#complete-menu-section {
  background-image: url('images/menu.jpeg'); /* background image */
  background-size: cover; 
  background-position: center; 
  color: white; 
  position: relative; 
  z-index: 1; 
  border-radius: 8px; 
  min-height: 250px; /* Minimum yükseklik */
  display: flex; 
  flex-direction: column; /* Dikey yerleşim */
  justify-content: flex-start; /* Yukarı hizalama */
  cursor: pointer;
}

#complete-menu-section::before {
  content: ''; 
  position: absolute; 
  inset: 0; /* Tam kaplama */
  background-color: rgba(0, 0, 0, 0.3); 
  z-index: -1; 
  border-radius: 8px; 
}

#complete-menu-section:hover{
  transition: 300ms all;
  transform: scale(1.05);
}

/* 81 City 81 Flavours */
#city-flavours-section {
  background-image: url('images/flavours.jpeg'); /* background image */
  background-size: cover; /* Resim kaplama */
  background-position: center; /* Ortala */
  color: white; 
  position: relative; 
  z-index: 1; 
  border-radius: 8px; /* Köşe görünümü azaltma */
  min-height: 80px; 
  display: flex; 
  justify-content: flex-start; /* İçerik sola hizalanır */
  align-items: flex-start; /* İçerik yukarı hizalanır */
  padding: 1rem 1.2rem; 
  margin-top: 1rem; /* Üstten boşluk */
  cursor: pointer;
  flex-direction: column;
}

#city-flavours-section::before {
  content: ''; /* Boş içerik */
  position: absolute; 
  inset: 0; 
  background-color: rgba(0, 0, 0, 0.3); /* Karartma */
  z-index: -1; 
  border-radius: 8px; 
}

#city-flavours-section:hover{
  transition: 300ms all;
  transform: scale(1.05);
}


/* Buton stili  */
.flavour-btn {
  background-color: #ff2600; 
  border: 1.5px solid white; 
  color: white; 
  padding: 0.5rem 1.2rem; /* İç boşluk */
  border-radius: 5px; 
  cursor: pointer; 
  font-weight: 600; 
  transition: background-color 0.3s, color 0.3s; /* Renk geçişi */
  font-size: 1rem; 
}

.flavour-btn:hover {
  background-color: white; 
  color: #ff2600; 
}
