:root {
  --bg: #fff4e3;
  --bg-deep: #f4d29f;
  --ink: #22150c;
  --muted: #7c6755;
  --card: rgba(255, 252, 245, 0.92);
  --line: rgba(65, 40, 23, 0.14);
  --orange: #f36f21;
  --tomato: #cf3e26;
  --green: #406b3f;
  --gold: #f5b83d;
  --shadow: 0 20px 50px rgba(90, 50, 17, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Nunito", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at 15% 8%, rgba(243, 111, 33, 0.28), transparent 28rem),
    radial-gradient(circle at 85% 0%, rgba(64, 107, 63, 0.22), transparent 22rem),
    linear-gradient(145deg, var(--bg), var(--bg-deep));
}

button,
input {
  font: inherit;
}

.shell {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 16px 14px 28px;
}

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 172px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(34, 21, 12, 0.92), rgba(92, 44, 17, 0.88)),
    url("https://eatandmeet.sk/images/bg/06.jpg") center / cover;
  color: #fffaf0;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -38% 28%;
  height: 150px;
  border-radius: 999px;
  background: rgba(243, 111, 33, 0.38);
  filter: blur(18px);
}

.eyebrow {
  margin: 0 0 8px;
  color: #ffd49b;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.6rem, 12vw, 5rem);
  line-height: 0.9;
}

.hero-copy {
  max-width: 420px;
  margin: 14px 0 0;
  color: rgba(255, 250, 240, 0.82);
  font-size: 1.02rem;
}

.hero-badge {
  z-index: 1;
  display: grid;
  place-items: center;
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  border-radius: 24px;
  background: var(--gold);
  color: #4a2608;
  font-size: 2rem;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
  transform: rotate(8deg);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(12px);
}

.tab {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.tab.is-active {
  background: var(--ink);
  color: #fffaf0;
}

.panel {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 12px 38px rgba(95, 54, 19, 0.08);
  backdrop-filter: blur(16px);
}

.app-footer {
  margin: 14px 8px 0;
  color: rgba(34, 21, 12, 0.56);
  font-size: 0.84rem;
  text-align: center;
}

.app-footer p {
  margin: 4px 0;
}

.app-footer a {
  color: inherit;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toolbar {
  margin-bottom: 14px;
}

.search {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  outline: 0;
  background: rgba(255, 252, 245, 0.92);
  color: var(--ink);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
}

.status {
  padding: 28px 18px;
  border: 1px dashed var(--line);
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
}

.content {
  display: grid;
  gap: 12px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 2px;
}

.section-title h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.75rem;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.day-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 8px;
}

.chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 245, 0.72);
  color: var(--muted);
  font-weight: 850;
}

.chip.is-active {
  border-color: rgba(243, 111, 33, 0.45);
  background: var(--orange);
  color: #fffaf0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 12px;
}

.dish-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 12px 32px rgba(95, 54, 19, 0.12);
}

.dish-image-wrap {
  position: relative;
  height: 144px;
  background:
    radial-gradient(circle at 25% 25%, rgba(245, 184, 61, 0.72), transparent 42%),
    linear-gradient(135deg, rgba(243, 111, 33, 0.18), rgba(64, 107, 63, 0.2));
}

.dish-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dish-image[src=""],
.dish-image.is-hidden {
  display: none;
}

.dish-image-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(34, 21, 12, 0.44);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
}

.dish-content {
  padding: 14px;
}

.dish-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dish-category {
  color: var(--tomato);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.favorite-button {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(245, 184, 61, 0.45);
  border-radius: 16px;
  background: #fff8e7;
  color: #b87500;
  font-size: 1.35rem;
  line-height: 1;
}

.favorite-button.is-favorite {
  background: var(--gold);
  color: #4a2608;
}

.dish-name {
  margin: 10px 0 8px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.dish-meta,
.dish-day {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.dish-day {
  margin-top: 7px;
  color: var(--green);
  font-weight: 850;
}

.settings-card,
.empty-card {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 12px 32px rgba(95, 54, 19, 0.1);
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.settings-row:last-child {
  border-bottom: 0;
}

.switch {
  width: 58px;
  height: 34px;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(124, 103, 85, 0.28);
}

.switch::before {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  transition: transform 160ms ease;
}

.switch.is-on {
  background: var(--green);
}

.switch.is-on::before {
  transform: translateX(24px);
}

.time-input {
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf6;
  color: var(--ink);
  font-weight: 850;
}


@media (max-width: 520px) {
  .shell {
    padding: 10px 10px 20px;
  }

  .hero {
    min-height: 154px;
    padding: 20px;
    border-radius: 26px;
  }

  .hero-badge {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    border-radius: 18px;
  }

  .tabs {
    gap: 4px;
  }

  .tab {
    min-height: 38px;
    font-size: 0.86rem;
  }

  .panel {
    padding: 10px;
    border-radius: 24px;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}
