:root {
  --red: #d1201f;
  --red-dark: #a81817;
  --black: #1a1a1a;
  --charcoal: #242424;
  --cream: #faf7f2;
  --cream-dark: #f0e9df;
  --gray: #6b6b6b;
  --border: #e4ddd2;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--black);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 1rem;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Logo ---------- */
.logo-img {
  display: block;
  height: auto;
  user-select: none;
}

.logo-sm {
  width: 100px;
}

.logo-md {
  width: 200px;
}

.logo-lg {
  width: 340px;
}

/* Koyu zeminlerde logonun oturduğu beyaz kart */
.logo-badge {
  display: inline-block;
  background: #fff;
  line-height: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.logo-badge-sm {
  padding: 6px 10px;
  border-radius: 10px;
}

.logo-badge-md {
  padding: 12px 18px;
  border-radius: 14px;
}

.logo-badge-lg {
  padding: 18px 28px;
  border-radius: 18px;
}

@media (max-width: 640px) {
  .logo-lg {
    width: 250px;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 26, 26, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--red);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.site-nav {
  display: flex;
  gap: 26px;
  align-items: center;
}

.site-nav a {
  color: var(--cream);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--red);
}

.nav-cta {
  background: var(--red);
  padding: 9px 20px;
  border-radius: 999px;
  color: #fff !important;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--red-dark);
  color: #fff !important;
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(ellipse at 50% 120%, #3d1210 0%, var(--black) 60%);
  color: var(--cream);
  text-align: center;
  padding: 90px 20px 100px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-top: 28px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.hero p {
  max-width: 560px;
  margin: 16px auto 34px;
  font-size: 1.1rem;
  color: #d9d2c8;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  transition: transform 0.15s, background 0.2s;
}

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

.btn-red {
  background: var(--red);
  color: #fff;
}

.btn-red:hover {
  background: var(--red-dark);
}

.btn-outline {
  border: 2px solid var(--cream);
  color: var(--cream);
  background: transparent;
}

.btn-outline:hover {
  background: var(--cream);
  color: var(--black);
}

/* ---------- Sections ---------- */
.section {
  padding: 72px 0;
}

.section-alt {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 8px;
}

.section-title span {
  color: var(--red);
}

.section-sub {
  text-align: center;
  color: var(--gray);
  margin-bottom: 44px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  box-shadow: var(--shadow);
}

.feature-card .icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-family: var(--font-display);
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.feature-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* ---------- Menu preview / grid ---------- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.menu-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.menu-card-img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  background: var(--cream-dark);
}

.menu-card-img-placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  background: linear-gradient(135deg, var(--cream-dark), #e6dccd);
}

.menu-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.menu-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.menu-card-top h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.menu-card .price {
  color: var(--red);
  font-weight: 800;
  white-space: nowrap;
  font-size: 1.05rem;
}

.menu-card .desc {
  color: var(--gray);
  font-size: 0.9rem;
}

.badge-unavailable {
  align-self: flex-start;
  background: #eee;
  color: #888;
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
}

/* ---------- Menu page ---------- */
.menu-header {
  background: var(--black);
  color: var(--cream);
  padding: 26px 20px 20px;
  text-align: center;
  border-bottom: 3px solid var(--red);
}

.category-tabs {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px;
  background: rgba(250, 247, 242, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.category-tab {
  flex: 0 0 auto;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--black);
  transition: all 0.2s;
}

.category-tab.active,
.category-tab:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.menu-section {
  scroll-margin-top: 70px;
  padding: 30px 0 6px;
}

.menu-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-section h2::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--red), transparent);
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-item {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.menu-item-img {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--cream-dark);
}

.menu-item-img-placeholder {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--cream-dark), #e6dccd);
}

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

.menu-item-body h3 {
  font-size: 1rem;
  font-weight: 700;
}

.menu-item-body .desc {
  color: var(--gray);
  font-size: 0.86rem;
  margin-top: 2px;
}

.menu-item .price {
  color: var(--red);
  font-weight: 800;
  white-space: nowrap;
  align-self: center;
  font-size: 1.05rem;
}

.menu-item.unavailable {
  opacity: 0.5;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: #b8b0a5;
  padding: 54px 20px 30px;
  margin-top: 40px;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  align-items: start;
}

.footer-grid h4 {
  color: var(--cream);
  font-family: var(--font-display);
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.footer-grid p {
  font-size: 0.94rem;
  margin-bottom: 6px;
}

.footer-grid a:hover {
  color: var(--red);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 0.85rem;
  color: #7a736a;
}

/* ---------- Contact info rows ---------- */
.info-rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  max-width: 900px;
  margin: 0 auto;
}

.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow);
}

.info-card .icon {
  font-size: 1.9rem;
  margin-bottom: 10px;
}

.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.info-card p,
.info-card a {
  color: var(--gray);
  font-size: 0.95rem;
}

.info-card a:hover {
  color: var(--red);
}

/* ---------- Admin ---------- */
.admin-shell {
  min-height: 100vh;
  background: #f4f1ec;
}

.admin-topbar {
  background: var(--black);
  color: var(--cream);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-topbar .title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}

.admin-topbar .title span {
  color: var(--red);
}

.admin-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.admin-tab {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-weight: 600;
  transition: all 0.2s;
}

.admin-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

.panel h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
}

.field input,
.field textarea,
.field select {
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: #fdfcfa;
  outline: none;
  transition: border-color 0.2s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--red);
}

.field textarea {
  resize: vertical;
  min-height: 80px;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  border: none;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: #444;
}

.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-danger {
  background: transparent;
  border: 1.5px solid #e2b4b4;
  color: #c0392b;
}

.btn-danger:hover {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  padding: 8px 10px;
  border-bottom: 2px solid var(--border);
}

.admin-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--cream-dark);
}

.admin-thumb-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-dark);
  font-size: 1.2rem;
}

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

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 120%, #3d1210 0%, var(--black) 60%);
  padding: 20px;
}

.login-card {
  background: #fff;
  border-radius: 18px;
  padding: 40px 34px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.login-card h1 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 18px 0 20px;
}

.login-card input {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  margin-bottom: 14px;
  outline: none;
}

.login-card input:focus {
  border-color: var(--red);
}

.login-card .btn {
  width: 100%;
}

.error-msg {
  background: #fdecea;
  color: #c0392b;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.success-msg {
  background: #eafaf0;
  color: #1e8449;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.qr-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.qr-preview img {
  width: 260px;
  height: 260px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  background: #fff;
}

.hint {
  font-size: 0.85rem;
  color: var(--gray);
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  border-radius: 999px;
  transition: 0.2s;
}

.switch .slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}

.switch input:checked + .slider {
  background: var(--red);
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}

@media (max-width: 640px) {
  .site-nav {
    gap: 16px;
  }

  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding: 60px 20px 70px;
  }

  .panel {
    padding: 18px;
  }

  .admin-table th:nth-child(3),
  .admin-table td:nth-child(3) {
    display: none;
  }
}
