/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

:root{
  --yellow: #f6d300;
  --text: #f6f7f8;
  --muted: rgba(246,247,248,0.72);
  --card: rgba(255,255,255,0.06);
  --stroke: rgba(0,0,0,0.22);
}

body{
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.45;

  /* Bizim tasarladığımız arka plan */
  background: #0f1114 url("../assets/img/bg.png") center / cover no-repeat fixed;
}

/* Hafif karartma + okunurluk */
.page{
  min-height: 100vh;
  padding: 18px 12px 40px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.18), rgba(0,0,0,0.40));
}

.wrap{
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

/* LOGO */
.top{
  display: flex;
  justify-content: center;
  padding: 6px 0 4px;
}
.logo{
  width: min(380px, 82vw);
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.45));
}

/* MENÜ ALANI */
.menu{
  display: grid;
  gap: 14px;
}

/* KATEGORİ KUTUSU */
.category{
  border-radius: 18px;
  padding: 10px 12px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
}

/* KATEGORİ BAŞLIK BUTONU */
.category-header{
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 8px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Sarı boya etiketi (fotoğraftaki gibi) */
.category-title{
  position: relative;
  display: inline-block;
  padding: 10px 18px;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(26px, 4.3vw, 42px);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #121212;
  line-height: 1;
  margin: 0 auto; /* ortalamaya destek */
}

.category-title::before{
  content: "";
  position: absolute;
  inset: -7px -12px;
  background: var(--yellow);
  transform: rotate(-1.2deg);
  z-index: -1;
  border-radius: 10px;

  /* boya hissi */
  box-shadow:
    0 3px 0 var(--stroke),
    inset 0 -8px 0 rgba(0,0,0,0.12);
}

/* sağdaki + */
.category-toggle{
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(26px, 4vw, 42px);
  color: var(--yellow);
  transition: transform 180ms ease;
  padding-right: 6px;
}

.category.open .category-toggle{
  transform: rotate(45deg);
}

/* ACCORDION içerik - animasyonlu */
.category-body{
  overflow: hidden;
  max-height: 0;
  transition: max-height 260ms ease;
  padding: 0 10px;
}

/* İçerik açılınca iç padding gelsin */
.category.open .category-body{
  padding: 10px 10px 8px;
}

/* Not */
.category-note{
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
  font-style: italic;
}

/* Ürün satırı */
.item{
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.item:first-of-type{
  border-top: none;
  padding-top: 2px;
}

.item-line{
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
}

.item-name{
  font-weight: 600;
  color: var(--text);
}

.item-price{
  white-space: nowrap;
  font-weight: 800;
  color: var(--text);
}

/* açıklama */
.item-desc{
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Footer */
.footer{
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.footer-note{
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.8px;
  font-size: 22px;
  color: var(--yellow);
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

@media (max-width: 520px){
  .category{ padding: 8px 10px; }
  .item-name{ font-weight: 600; }
}

/* --- MOBİL İYİLEŞTİRME PAKETİ (tasarımı bozmaz) --- */
@media (max-width: 600px){

  /* Sayfa kenarları (QR menüde nefes aldırır) */
  .page{
    padding: 14px 10px 30px;
  }

  .wrap{
    gap: 12px;
  }

  /* Logo: daha dengeli boyut (çok yer kaplamasın) */
  .logo{
    width: min(300px, 82vw);
  }

  /* Kartlar: biraz daha sıkı, mobilde daha şık durur */
  .category{
    padding: 8px 10px;
    border-radius: 16px;
  }

  /* Başlık butonu: parmak alanı büyüsün */
  .category-header{
    padding: 10px 6px;
  }

  /* Sarı etiket: mobilde taşmasın diye biraz küçültsün */
  .category-title{
    font-size: 30px;       /* clamp yerine sabitlemek daha stabil */
    padding: 10px 14px;
  }

  .category-title::before{
    inset: -6px -10px;
    border-radius: 10px;
  }

  .category-toggle{
    font-size: 34px;
  }

  /* Ürün satırları: okunurluk + fiyat hizası */
  .item{
    padding: 9px 0;
  }

  .item-line{
    gap: 10px;
  }

  .item-name{
    font-size: 0.98rem;
  }

  .item-price{
    font-size: 1.02rem;
  }

  /* Açıklamalar daha kompakt */
  .item-desc{
    font-size: 0.90rem;
  }

  /* Footer not biraz daha belirgin */
  .footer-note{
    font-size: 20px;
  }
}

/* --- FADE-IN ANİMASYON (logo + menü) --- */
.fade-in{
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 520ms ease forwards;
  will-change: opacity, transform;
}

.fade-delay-1{ animation-delay: 80ms; }
.fade-delay-2{ animation-delay: 180ms; }

@keyframes fadeUp{
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

/* Kullanıcı motion azaltmayı tercih ederse animasyonu kapat */
@media (prefers-reduced-motion: reduce){
  .fade-in{
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Menü kategorileri dalga dalga gelsin */
.category.fade-stagger {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 520ms ease forwards;
  animation-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

.loading {
  padding: 14px 10px;
  text-align: center;
  color: rgba(246,247,248,0.8);
  font-family: "Montserrat", system-ui, sans-serif;
}

.footer{
  display: grid;
  gap: 10px;
  justify-items: center;
  padding-top: 6px;
}

.footer-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.action-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: #111;
  background: var(--yellow);
  box-shadow: 0 10px 22px rgba(0,0,0,0.28);
}

.action-btn:hover{
  filter: brightness(0.98);
  transform: translateY(-1px);
}

.action-btn .icon{
  display: inline-flex;
  color: #111;
}

.footer-text{
  max-width: 760px;
  text-align: center;
  color: rgba(246,247,248,0.82);
  font-size: 0.95rem;
  line-height: 1.45;
}

.footer-note{
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.8px;
  font-size: 22px;
  color: var(--yellow);
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
