:root {
  --sun-yellow: #f4df74;
  --sun-red: #f83935;
  --text-dark: #232323;
  --text-light: #fff;
  --surface: #fff8d6;
  --accent: #e33b2e;
  --shadow: rgba(0, 0, 0, 0.14);
}

/* Language switching */
[lang] {
  display: inline;
}

html[lang="ka"] [lang="en"],
html[lang="en"] [lang="ka"] {
  display: none !important;
}

/* Lightbox Modal */
#lightbox {
  animation: fadeIn 0.3s ease-in-out;
}

#lightbox img {
  animation: zoomIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

#lightbox-close {
  font-weight: bold;
  transition: color 0.3s;
}

#lightbox-close:hover {
  color: #ffd166;
}

/* Zoom Icon Button */
.zoom-icon {
  position: absolute;
  bottom: 32px;
  left: 98px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.zoom-icon:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.15);
}

.menu-action {
  margin-left: 12px;
  padding: 8px 14px;
  background: #1f2937;
  color: #f9fafb;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.menu-action:hover {
  background: #111827;
}

.add-dish-btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 16px 22px;
  background: rgba(31, 41, 55, 0.8);
  color: #f9fafb;
  border: 2px dashed rgba(249, 250, 251, 0.3);
  border-radius: 16px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-dish-btn:hover {
  background: rgba(31, 41, 55, 1);
  border-color: rgba(249, 250, 251, 0.6);
  transform: translateY(-2px);
}

.add-category-btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 16px 22px;
  background: rgba(12, 34, 64, 0.9);
  color: #f9fafb;
  border: 2px dashed rgba(249, 250, 251, 0.35);
  border-radius: 16px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-category-btn:hover {
  background: rgba(8, 24, 45, 1);
  border-color: rgba(249, 250, 251, 0.65);
  transform: translateY(-2px);
}

.delete-category-btn {
  margin-top: 16px;
  padding: 10px 14px;
  border: none;
  border-radius: 999px;
  background: rgba(160, 24, 24, 0.9);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.delete-category-btn:hover {
  background: rgba(130, 18, 18, 1);
}

.delete-dish-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: rgba(160, 24, 24, 0.92);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  z-index: 11;
}

.delete-dish-btn:hover {
  background: rgba(130, 18, 18, 1);
}

.edit-mode .editable {
  outline: 2px dashed rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
}

.edit-mode .dish-price {
  cursor: text;
}

.edit-mode .category-card h2 {
  pointer-events: auto;
}

/* Drag and Drop Styles */
.edit-mode .category-card[draggable="true"] {
  cursor: move;
  transition: all 0.2s ease;
}

.edit-mode .category-card[draggable="true"]:hover {
  border: 2px solid rgba(244, 223, 116, 0.6);
  box-shadow: 0 0 15px rgba(244, 223, 116, 0.3);
}

.edit-mode .dish-item[draggable="true"] {
  cursor: move;
  transition: all 0.2s ease;
}

.edit-mode .dish-item[draggable="true"]:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(244, 223, 116, 0.4);
}

.dragging {
  opacity: 0.5;
  filter: brightness(0.8);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at top left, #fff1a8 0%, #f4df74 40%, #f9e48d 100%);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 32px 16px;
}

.page {
  width: min(1180px, 100%);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 28px;
  box-shadow: 0 18px 40px var(--shadow);
  backdrop-filter: blur(10px);
}

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

.logo-image,
.hero-logo,
.footer-logo {
  display: block;
  width: 86px;
  height: auto;
}

.hero-logo {
  width: 120px;
  margin-bottom: 24px;
}

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

nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  transition: transform 0.2s, background 0.2s;
}

nav a:hover {
  background: rgba(232, 56, 45, 0.12);
  transform: translateY(-1px);
}

#lang-toggle {
  margin-left: 20px;
  padding: 6px 12px;
  background: #b92a2a;
  color: #f5f7fb;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.3s;
}

#lang-toggle:hover {
  background: #8b2020;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 10px 0 40px;
  min-height: auto;
  max-width: 760px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3rem, 4vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: #1e1e1e;
}

.hero-copy p {
  max-width: 640px;
  margin: 24px 0 0;
  font-size: 1.08rem;
  line-height: 1.85;
  color: #3b3b3b;
}


.hero-copy .eyebrow {
  margin: 0 0 18px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sun-red);
}


.menu-section {
  margin-top: 40px;
  padding: 18px 0 0;
}

.section-header {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.menu-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.6rem);
  color: #1f1f1f;
  line-height: 1.03;
}

.menu-description {
  margin: 0;
  font-size: 1rem;
  color: #4a4a4a;
  max-width: 720px;
  line-height: 1.8;
}

.menu-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  max-width: 1100px;
  margin: 0 auto;
}

.category-card {
  background: rgba(181, 135, 43, 0.96);
  border-radius: 32px;
  padding: 36px;
  box-shadow: 0 30px 54px rgba(34, 34, 34, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.6);
  width: 100%;
  min-height: 220px;
}

.category-card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  line-height: 1.04;
  color: #1a1a1a;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

.dish-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dish-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.02) 1px, transparent 2px),
    radial-gradient(circle at 70% 40%, rgba(255,255,255,0.05) 0, transparent 2px),
    linear-gradient(180deg, #0f1724 0%, #1b2340 60%, #0b1220 100%);
  color: #f6f7fb;
  box-shadow: 0 8px 24px rgba(8,12,24,0.55), inset 0 -6px 20px rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.04);
  position: relative;
}

.dish-item img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 22px;
  flex-shrink: 0;
}

.dish-item-content {
  display: grid;
  gap: 8px;
}

.dish-item span {
  font-weight: 700;
  display: block;
}

.dish-price {
  color: #b22f2f;
  font-weight: 700;
  font-size: 0.98rem;
}

.footer-contact {
  margin-top: 44px;
  display: grid;
  gap: 18px;
  padding: 30px 28px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 34px;
  box-shadow: 0 22px 40px rgba(34, 34, 34, 0.12);
}

.contact-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

.contact-card {
  padding: 24px;
  border-radius: 24px;
  background: #fff8d5;
  border: 1px solid rgba(232, 56, 45, 0.12);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.07);
}

.contact-card h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: #366831;
}

.contact-card p,
.contact-card a {
  margin: 0;
  color: #3d3d3d;
  line-height: 1.8;
  text-decoration: none;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(232, 56, 45, 0.12);
  color: #d93f33;
  transition: transform 0.2s, background 0.2s;
  text-decoration: none;
}

.social-link:hover {
  transform: translateY(-2px);
  background: rgba(232, 56, 45, 0.2);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

footer {
  margin-top: 0;
  padding: 0;
}

/* Dark mode overrides (applies when <body class="dark"> is present) */
.dark {
  background: radial-gradient(circle at top left, #020214 0%, #061026 44%, #030616 100%);
  color: #e6eef8;
}

.dark header {
  background: rgba(8,10,18,0.72);
  box-shadow: 0 18px 40px rgba(0,0,0,0.7);
}

.dark nav a {
  color: #e6eef8;
}

.dark nav a:hover {
  background: rgba(255,255,255,0.04);
}

.dark #lang-toggle {
  background: #c73635;
}

.dark #lang-toggle:hover {
  background: #a02a2a;
}

.dark .hero-copy h1,
.dark .menu-title,
.dark .category-card h2 {
  color: #f5f7fb;
}

.dark .hero-copy p,
.dark .menu-description,
.dark .contact-card p,
.dark .contact-card a {
  color: #c6d2e1;
}

.dark .category-card {
  background: linear-gradient(180deg, #071226 0%, #0b1a2a 60%);
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 30px 54px rgba(0,0,0,0.6);
}

.dark .dish-item {
  /* keep the cosmic dark background but intensify highlights */
  background:
    radial-gradient(circle at 8% 18%, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.01) 1px, transparent 2px),
    radial-gradient(circle at 72% 44%, rgba(255,255,255,0.03) 0, transparent 2px),
    linear-gradient(180deg, #060912 0%, #0c1530 60%, #020612 100%);
  color: #eef6ff;
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: 0 10px 30px rgba(0,0,0,0.65), inset 0 -6px 20px rgba(0,0,0,0.32);
}

.dark .dish-price {
  color: #ffd166;
}

.dark .footer-contact {
  background: rgba(6,10,18,0.6);
  box-shadow: 0 22px 40px rgba(0,0,0,0.6);
}

.dark .contact-card {
  background: linear-gradient(180deg,#071224 0%, #081523 60%);
  border: 1px solid rgba(255,255,255,0.03);
}

.dark .social-link {
  background: rgba(255,255,255,0.03);
  color: #ffd166;
}

.dark .edit-mode .category-card[draggable="true"]:hover {
  border-color: rgba(255, 209, 102, 0.4);
  box-shadow: 0 0 15px rgba(255, 209, 102, 0.2);
}

.dark .edit-mode .dish-item[draggable="true"]:hover {
  box-shadow: 0 4px 12px rgba(255, 209, 102, 0.2);
}

@media (max-width: 980px) {
  .hero {grid-template-columns: 1fr;}
  .menu-grid {grid-template-columns: 1fr;}
  .contact-grid {grid-template-columns: 1fr;}
  .dish-list {grid-template-columns: repeat(2, minmax(0, 1fr));}
}

@media (max-width: 660px) {
  .hero {min-height: auto;}
  .hero-copy h1 {font-size: 2.8rem;}
  .hero-copy p {font-size: 1rem;}
  .dish-list {grid-template-columns: 1fr;}
}
