/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #173317;
  --bg-dark:      #112611;
  --bg-card:      #1e3e1e;
  --bg-card2:     #224422;
  --bg-nav:       #142814;

  --white:        #FFFFFF;
  --white-90:     rgba(255,255,255,0.90);
  --white-60:     rgba(255,255,255,0.60);
  --white-30:     rgba(255,255,255,0.30);
  --white-12:     rgba(255,255,255,0.12);
  --white-07:     rgba(255,255,255,0.07);

  --gold:         #C9A84C;
  --gold-light:   #E2C97E;
  --gold-70:      rgba(201,168,76,0.70);
  --gold-40:      rgba(201,168,76,0.40);

  --shadow:       0 4px 20px rgba(0,0,0,0.35);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* =============================================
   HEADER
   ============================================= */
.header {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
  padding: 28px 20px 0;
  text-align: center;
}

.header-pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -55deg,
    rgba(255,255,255,0.02) 0px,
    rgba(255,255,255,0.02) 1px,
    transparent 1px,
    transparent 14px
  );
  pointer-events: none;
}

.header::after {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--white-30), transparent);
}

.header-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.header-logo-svg {
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.6));
}

.header-logo-img {
  width: 160px;
  height: auto;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,0.55));
}

.header-tagline {
  font-size: 0.68rem;
  color: var(--white-30);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* === SOCIAL BAR === */
.social-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 0 0 18px;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.22s;
  letter-spacing: 0.5px;
}
.social-btn svg { width: 16px; height: 16px; }

.insta-btn { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); color: #fff; }
.insta-btn:hover { opacity: 0.85; transform: translateY(-1px); }

.google-btn { background: var(--white); color: #333; }
.google-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* =============================================
   CAMPAIGNS
   ============================================= */
.campaigns-wrapper {
  padding: 14px 0;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--white-12);
}

.campaigns-scroll {
  display: flex;
  gap: 12px;
  padding: 0 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.campaigns-scroll::-webkit-scrollbar { display: none; }

.campaign-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--white-12);
  border-radius: 14px;
  overflow: hidden;
}
.campaign-card img { width: 100%; height: 120px; object-fit: cover; }
.campaign-card-body { padding: 10px 14px; }
.campaign-card-body h4 { font-family: 'Playfair Display', serif; color: var(--white); font-size: 0.95rem; }
.campaign-card-body p { font-size: 0.8rem; color: var(--white-60); margin-top: 4px; }

/* =============================================
   KATEGORİ NAV
   ============================================= */
.category-nav {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  justify-content: center;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--white-12);
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 50;
}
.category-nav::-webkit-scrollbar { display: none; }

.cat-btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid var(--gold-40);
  background: transparent;
  color: var(--gold-70);
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.cat-btn:hover {
  border-color: var(--gold-70);
  color: var(--gold-light);
  background: rgba(201,168,76,0.07);
}

.cat-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-dark);
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(201,168,76,0.25);
}

/* =============================================
   MENU MAIN
   ============================================= */
.menu-main { padding: 0 0 90px; }

.menu-section { padding: 0 0 4px; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 16px 14px;
  position: sticky;
  top: 53px;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--white-12);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-count {
  font-size: 0.7rem;
  color: var(--white-60);
  background: var(--white-07);
  border: 1px solid var(--white-12);
  padding: 3px 9px;
  border-radius: 10px;
  margin-left: 4px;
  font-size: 0.7rem;
  color: var(--white-60);
  background: var(--white-07);
  border: 1px solid var(--white-12);
  padding: 3px 9px;
  border-radius: 10px;
}

.empty-msg {
  font-size: 0.85rem;
  color: var(--white-30);
  padding: 12px 16px;
  font-style: italic;
}

/* =============================================
   YATAY LİSTE KARTLAR
   ============================================= */
.items-list {
  display: flex;
  flex-direction: column;
}

.item-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--white-07);
  cursor: pointer;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.item-card:hover  { background: var(--bg-card); }
.item-card:active { background: var(--bg-card2); }

.item-thumb-wrap {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-card2);
}

.item-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  image-orientation: from-image;
}

.item-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    var(--bg-card2),
    var(--bg-card2) 4px,
    var(--bg-card) 4px,
    var(--bg-card) 12px
  );
  opacity: 0.6;
}

.item-body { flex: 1; min-width: 0; }

.item-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1.35;
  margin-bottom: 3px;
}

.item-desc {
  font-size: 0.78rem;
  color: var(--gold-70);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.item-price {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

.item-price-tbd {
  font-size: 0.68rem;
  color: var(--gold-40);
  text-align: right;
  max-width: 72px;
  line-height: 1.3;
}

.item-chevron {
  color: var(--gold-40);
  font-size: 1.3rem;
  line-height: 1;
}

/* =============================================
   CENTERED MODAL
   ============================================= */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.70);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.sheet-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.item-sheet {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: 88vh;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: var(--bg-card);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  transform: scale(0.92) translateY(16px);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}

.item-sheet::-webkit-scrollbar { display: none; }

.sheet-overlay.active .item-sheet {
  transform: scale(1) translateY(0);
}

/* Kapat butonu — image üstüne yüzer */
.sheet-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 14px;
  pointer-events: none;
}

.sheet-handle { display: none; }

.sheet-close-btn {
  pointer-events: all;
  background: rgba(0,0,0,0.45);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  flex-shrink: 0;
}
.sheet-close-btn:hover { background: rgba(0,0,0,0.65); }

/* Fotoğraf varsa */
.sheet-img-wrap {
  position: relative;
  width: 100%;
  height: 50vh;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}
.sheet-img-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(0.55);
  transform: scale(1.15);
}
.sheet-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  image-orientation: from-image;
  display: block;
  z-index: 1;
}

.sheet-placeholder {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px 20px 0 0;
  background: repeating-linear-gradient(
    -45deg,
    var(--bg-card2),
    var(--bg-card2) 5px,
    var(--bg-card) 5px,
    var(--bg-card) 16px
  );
  border-bottom: 1px solid var(--white-07);
}

/* Bilgi alanı */
.sheet-info {
  padding: 18px 20px 24px;
}

.sheet-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.3;
  margin-bottom: 8px;
}

.sheet-desc {
  font-size: 0.87rem;
  color: var(--gold-70);
  line-height: 1.6;
  margin-bottom: 20px;
  min-height: 0;
}

.sheet-price-row {
  display: flex;
  align-items: center;
}

.sheet-price {
  display: inline-flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bg-dark);
  background: var(--white);
  padding: 10px 24px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-dark);
  border-top: 1px solid var(--white-12);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--white-30);
  z-index: 80;
}

.admin-link {
  position: absolute;
  right: 16px;
  color: var(--white-30);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}
.admin-link:hover { color: var(--white); }

/* =============================================
   ADMIN PANELİ — koyu yeşil, tutarlı
   ============================================= */
.admin-body { background: var(--bg-dark); min-height: 100vh; color: var(--white); }

.admin-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.login-box {
  background: var(--bg-card);
  border: 1px solid var(--white-12);
  border-top: 2px solid var(--white-30);
  border-radius: 20px;
  padding: 40px 32px;
  width: 100%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.login-logo-wrap {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 0 14px rgba(201,168,76,0.4));
}
.login-logo-svg { width: 100%; height: 100%; }

.login-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--white); margin-bottom: 6px; }
.login-subtitle { font-size: 0.8rem; color: var(--white-60); margin-bottom: 28px; }

.form-group { margin-bottom: 14px; text-align: left; }

.form-label {
  display: block;
  font-size: 0.78rem;
  color: var(--white-60);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--white-12);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--white);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus { border-color: var(--white-30); }

.btn-gold {
  width: 100%;
  background: var(--white);
  color: var(--bg-dark);
  border: none;
  border-radius: 10px;
  padding: 13px;
  min-height: 48px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  margin-top: 8px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn-gold:hover { background: var(--white-90); transform: translateY(-1px); }

.error-msg { color: #e05555; font-size: 0.8rem; margin-top: 10px; }

.admin-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--white-12);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-title { font-family: 'Playfair Display', serif; color: var(--white); font-size: 1.1rem; }

.btn-sm {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--white-12);
  color: var(--white-60);
}
.btn-outline:hover { border-color: var(--white-30); color: var(--white); }

.btn-danger {
  background: transparent;
  border: 1px solid rgba(220,50,50,0.4);
  color: #e05555;
}
.btn-danger:hover { background: rgba(220,50,50,0.1); }

.admin-content { padding: 20px 16px 100px; }

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  flex: 0 0 auto;
  padding: 9px 22px;
  border-radius: 24px;
  border: 1px solid var(--white-12);
  background: transparent;
  color: var(--white-60);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}
.tab-btn.active {
  background: var(--white);
  border-color: var(--white);
  color: var(--bg-dark);
  font-weight: 700;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--white-12);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}
.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.admin-card-title { font-family: 'Playfair Display', serif; color: var(--white); font-size: 1rem; }
.admin-actions { display: flex; gap: 8px; }

.item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--white-07);
}
.item-row:last-child { border-bottom: none; }

.item-row-img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg-dark);
  flex-shrink: 0;
}
.item-row-info { flex: 1; min-width: 0; }
.item-row-name {
  font-size: 0.9rem;
  color: var(--white-90);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-row-price { font-size: 0.85rem; color: var(--gold); font-weight: 600; }

.edit-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.edit-modal-overlay.active { opacity: 1; pointer-events: all; }

.edit-modal {
  background: var(--bg-card);
  border: 1px solid var(--white-12);
  border-top: 2px solid var(--white-30);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  padding: 24px 20px 40px;
  transform: translateY(40px);
  transition: transform 0.3s;
  max-height: 90vh;
  overflow-y: auto;
}
.edit-modal-overlay.active .edit-modal { transform: translateY(0); }

.edit-modal-title { font-family: 'Playfair Display', serif; color: var(--white); font-size: 1.1rem; margin-bottom: 20px; }

.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }

.upload-area {
  border: 2px dashed var(--white-12);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.upload-area:hover { border-color: var(--white-30); background: var(--white-07); }
.upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-area p { font-size: 0.82rem; color: var(--white-60); }

.upload-preview {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
  display: none;
}

.campaign-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--white-07);
}
.campaign-row:last-child { border-bottom: none; }
.campaign-row-img { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--bg-dark); flex-shrink: 0; }
.campaign-row-info { flex: 1; min-width: 0; }
.campaign-row-name { font-size: 0.88rem; color: var(--white-90); margin-bottom: 2px; }
.campaign-row-desc { font-size: 0.78rem; color: var(--white-60); }

.badge { padding: 3px 10px; border-radius: 12px; font-size: 0.7rem; font-weight: 600; }
.badge-green { background: rgba(45,180,80,0.12); color: #6ec96e; border: 1px solid rgba(45,180,80,0.25); }
.badge-gray  { background: var(--white-07); color: var(--white-60); border: 1px solid var(--white-12); }

.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--white);
  color: var(--bg-dark);
  padding: 11px 22px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 500;
  opacity: 0;
  transition: all 0.3s;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.select-input {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--white-12);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--white);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  appearance: none;
}
.select-input:focus { border-color: var(--white-30); }

textarea.form-input { resize: vertical; min-height: 70px; }

.section-label {
  font-size: 0.75rem;
  color: var(--white-60);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--white-12);
}
