/* ═══════════════════════════════════════════
   Robin Kafe — style.css v30
═══════════════════════════════════════════ */

:root {
  --bg0: #070a10;
  --bg1: #0b0f17;
  --text: #eef3ff;
  --muted: rgba(238,243,255,.68);
  --line: rgba(255,255,255,.10);
  --line2: rgba(255,255,255,.07);
  --leaf: #7aa874;
  --leaf2: #4f7f55;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #0a0e14;
  background-image:
    radial-gradient(1200px 900px at 18% 25%, rgba(122,168,116,.10), transparent 72%),
    radial-gradient(1200px 900px at 82% 30%, rgba(79,127,85,.08), transparent 74%),
    radial-gradient(1400px 1000px at 50% 55%, rgba(255,255,255,.025), transparent 78%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .72;
  background-repeat: no-repeat;
  background-size: 560px, 460px, 580px;
  background-position:
    -170px -120px,
    calc(100% + 170px) 170px,
    -210px calc(100% + 170px);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520'%3E%3Cpath d='M120 420C95 310 145 205 230 150c78-50 165-40 215-115-20 80-10 150-60 210-55 68-150 110-210 175-18 20-35 35-55 0z' fill='rgba(122,168,116,0.22)'/%3E%3Cpath d='M155 420c20-65 55-125 105-175 55-55 120-95 190-120' stroke='rgba(238,243,255,0.10)' stroke-width='2.1' stroke-linecap='round' fill='none'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520'%3E%3Cpath d='M410 90c-75 30-125 80-150 145-24 62-20 130-80 200 95-45 160-115 185-190 18-52 12-110 45-155z' fill='rgba(79,127,85,0.18)'/%3E%3Cpath d='M395 95c-60 55-105 120-130 190-18 50-25 95-55 140' stroke='rgba(238,243,255,0.08)' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520'%3E%3Cpath d='M450 520c-25-120-80-205-160-255-70-44-155-52-220-160 10 120 55 205 125 260 72 56 170 78 240 155 10 11 20 10 15 0z' fill='rgba(122,168,116,0.16)'/%3E%3Cpath d='M440 520c-50-75-120-125-205-160-60-25-120-35-170-85' stroke='rgba(238,243,255,0.07)' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
}

/* ─── Topbar ─── */
.topbar, .wrap, .footerbar { position: relative; z-index: 1; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,10,16,.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.topbar-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand { display: flex; gap: 10px; align-items: center; }

.logo {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(122,168,116,.95), rgba(79,127,85,.65));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

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

#logoFallback {
  font-weight: 900;
  color: #0b120f;
  font-size: 14px;
  line-height: 1;
}

.brand h1 { font-size: 16px; margin: 0; line-height: 1.1; }
.brand p  { margin: 2px 0 0; color: var(--muted); font-size: 12.2px; }
.top-actions { display: flex; align-items: center; gap: 10px; }

.pill {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line2);
  padding: 9px 11px;
  border-radius: 999px;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.04);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.pill strong { color: var(--text); font-weight: 800; }

/* ─── İçerik wrap ─── */
.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 14px 98px;
}

/* ─── Arama ─── */
.search {
  margin-top: 14px;
  display: flex; gap: 10px; align-items: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  padding: 11px 12px;
}

.search input {
  width: 100%;
  background: transparent;
  border: 0; outline: 0;
  color: var(--text);
  font-size: 14px;
}

.search input::placeholder { color: rgba(238,243,255,.55); }

/* ─── Kategori scroller ─── */
.cats {
  margin-top: 12px;
  display: flex; gap: 8px;
  overflow: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }

.cat-btn {
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
}

.cat-btn.active {
  background: rgba(122,168,116,.16);
  border-color: rgba(122,168,116,.42);
}

/* ─── Ürün bölümleri ─── */
.section { margin-top: 18px; }

.section h2 {
  position: relative;
  padding-left: 22px;
  padding-bottom: 10px;
  margin: 18px 0 10px;
  font-size: 15.5px;
  display: flex; align-items: center; gap: 10px;
}

.section h2::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M20 4c-7 1-12 6-14 10-2 4 0 6 0 6s2 2 6 0c4-2 9-7 10-14-1-1-2-2-2-2z' fill='rgba(122,168,116,0.85)'/%3E%3Cpath d='M6 20c2-4 6-8 12-12' stroke='rgba(238,243,255,0.35)' stroke-width='1.6' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.section h2::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 160px; height: 1px;
  background: linear-gradient(to right, rgba(122,168,116,.55), rgba(122,168,116,.25), rgba(122,168,116,0));
}

.badge {
  font-size: 11px;
  color: rgba(238,243,255,.62);
  border: 1px solid var(--line2);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.03);
}

/* ─── Grid & kartlar ─── */
.grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 720px) { .grid { grid-template-columns: 1fr 1fr; } }

.item {
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 14px 34px rgba(0,0,0,.35);
  border-radius: var(--radius);
  padding: 12px;
  display: flex; gap: 12px;
  min-height: 112px;
  overflow: hidden;
}

.thumb {
  width: 78px; height: 78px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  display: grid; place-items: center;
  font-weight: 900;
  color: rgba(238,243,255,.92);
  position: relative; overflow: hidden;
  flex-shrink: 0;
}

.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }

.thumb::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.35));
  pointer-events: none;
}

.meta { flex: 1; display: flex; flex-direction: column; gap: 6px; }

.title-row {
  display: flex; gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.name  { font-weight: 900; font-size: 14.2px; margin: 0; }
.desc  { margin: 0; color: rgba(238,243,255,.68); font-size: 12.6px; line-height: 1.38; }
.price { font-weight: 950; font-size: 14px; white-space: nowrap; }

.price::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 999px;
  margin-right: 8px;
  background: rgba(122,168,116,.65);
  box-shadow: 0 0 0 3px rgba(122,168,116,.12);
  transform: translateY(-1px);
}

.tags  { display: flex; gap: 6px; flex-wrap: wrap; }

.tag {
  font-size: 11px; padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(238,243,255,.70);
  background: rgba(255,255,255,.03);
}

.tag.pop { border-color: rgba(255,255,255,.14); color: rgba(238,243,255,.92); background: rgba(255,255,255,.06); }
.tag.hot { border-color: rgba(122,168,116,.42); color: rgba(238,243,255,.92); background: rgba(122,168,116,.14); }

.hr   { height: 1px; background: rgba(255,255,255,.10); margin: 12px 0; }
.hint { font-size: 12px; color: rgba(238,243,255,.62); }

.empty {
  margin-top: 18px;
  border: 1px dashed rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding: 16px;
  color: rgba(238,243,255,.70);
  background: rgba(255,255,255,.025);
  display: none;
}

/* ─── Footer bar ─── */
.footerbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(7,10,16,.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 14px;
  display: flex; gap: 10px;
  align-items: center;
  justify-content: space-between;
}

/* ─── Butonlar ─── */
.btn {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.btn.primary {
  background: linear-gradient(135deg, rgba(122,168,116,.95), rgba(79,127,85,.70));
  border-color: rgba(122,168,116,.50);
  color: #0b120f;
}

.btn.success {
  background: linear-gradient(135deg, rgba(238,243,255,.18), rgba(238,243,255,.06));
  border-color: rgba(255,255,255,.16);
}

.btn.danger {
  background: rgba(220,50,50,.12);
  border-color: rgba(220,50,50,.30);
  color: #ff8a8a;
}

/* ─── Landing kategoriler ─── */
.landing { margin-top: 14px; }
.landing-head { margin: 8px 2px 12px; }
.landing-title { margin: 0; font-size: 15.5px; font-weight: 900; }
.landing-sub { margin: 6px 0 0; color: rgba(238,243,255,.62); font-size: 12.6px; }

/* ─── Kategori tile (GENEL — önce tanımla) ─── */
.cat-tile {
  appearance: none;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
  border-radius: 18px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 10px 8px;
}

.cat-tile:hover  { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.cat-tile:active { background: rgba(255,255,255,.09); }

.cat-tile-thumb {
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.cat-tile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-tile-body {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.cat-tile-title {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .1px;
}

.cat-tile-hint { display: none; }

.cat-tile-arrow {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgba(238,243,255,.35);
  line-height: 1;
}

/* ─── Kategori grid ─── */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (min-width: 720px) {
  .cat-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ─── Featured (öne çıkan) kategori — SONRA tanımla ki ezsin ─── */
.cat-featured-wrap {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cat-tile.featured {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 10px 8px;
  background: linear-gradient(135deg, rgba(122,168,116,.12), rgba(79,127,85,.06));
  border-color: rgba(122,168,116,.35);
  box-sizing: border-box;
}

.cat-tile.featured:hover {
  background: linear-gradient(135deg, rgba(122,168,116,.20), rgba(79,127,85,.12));
  border-color: rgba(122,168,116,.55);
}

.cat-tile.featured .cat-tile-thumb {
  height: 200px;
}

.cat-tile.featured .cat-tile-title {
  font-size: 17px;
}

.cat-tile.featured .cat-tile-body {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
}

.cat-tile.featured .cat-tile-arrow {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  padding-bottom: 2px;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #a8d5a2;
  background: rgba(122,168,116,.15);
  border: 1px solid rgba(122,168,116,.30);
  border-radius: 999px;
  padding: 3px 8px;
  margin-bottom: 4px;
}

/* ─── Geri butonu ─── */
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
  color: #eaf2ff;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.back-btn:hover { background: rgba(122,168,116,.25); border-color: rgba(122,168,116,.4); }

/* ─── WiFi Modal ─── */
.wifi-modal {
  position: fixed; inset: 0;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.58);
  z-index: 9999; padding: 20px;
}

.wifi-modal.open { display: flex; }

.wifi-card {
  width: min(100%, 360px);
  background: #0c1118;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  padding: 18px;
}

.wifi-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.wifi-card-head h3 { margin: 0; font-size: 18px; }

.wifi-close {
  width: 36px; height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--text); cursor: pointer;
}

.wifi-body { display: grid; gap: 12px; }

.wifi-row {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.wifi-label { display: block; font-size: 12px; color: rgba(238,243,255,.60); margin-bottom: 6px; }
.wifi-value { font-weight: 800; font-size: 15px; word-break: break-word; }

/* ─── Admin panel form elemanları ─── */
.form-grid { display: grid; gap: 12px; }

.field-label {
  display: block;
  font-size: 12px;
  color: rgba(238,243,255,.62);
  margin-bottom: 4px;
  font-weight: 600;
}

.field-input {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}

.field-input:focus { border-color: rgba(122,168,116,.5); }
select.field-input { cursor: pointer; }
.field-input option { background: #0c1118; }

/* ─── Sürükleme tutacağı ─── */
.drag-handle {
  cursor: grab;
  color: rgba(238,243,255,.40);
  font-size: 18px;
  padding: 4px 6px;
  border-radius: 8px;
  user-select: none;
  flex-shrink: 0;
  display: flex; align-items: center;
}

.drag-handle:active { cursor: grabbing; }
.sortable-ghost  { opacity: .4; }
.sortable-chosen { background: rgba(122,168,116,.08) !important; }

/* ─── Mesaj kutuları ─── */
.msg-ok  { background: rgba(122,168,116,.12); border: 1px solid rgba(122,168,116,.35); border-radius: 12px; padding: 12px 14px; color: #a8d5a2; margin-bottom: 14px; }
.msg-err { background: rgba(220,50,50,.10);   border: 1px solid rgba(220,50,50,.30);   border-radius: 12px; padding: 12px 14px; color: #ff8a8a; margin-bottom: 14px; }

/* ─── Responsive ─── */
.menu-head-actions { margin-bottom: 12px; }