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

body {
  font-family: 'Inter', sans-serif;

  background:
    linear-gradient(
      135deg,
      #fff8e7 0%,
      #eefbea 35%,
      #e7f8ef 70%,
      #f6fff2 100%
    );

  color: #1f2d22;

  min-height: 100vh;

  overflow-x: hidden;

  position: relative;
}



/* =========================
   BACKGROUND GLOWS
========================= */

.background-glow {
  position: fixed;

  width: 520px;
  height: 520px;

  border-radius: 50%;

  background: rgba(112,182,88,0.18);

  filter: blur(120px);

  top: -180px;
  left: -180px;

  z-index: 0;

  pointer-events: none;
}

.background-glow.second {
  background: rgba(255,210,95,0.18);

  top: auto;
  left: auto;

  bottom: -180px;
  right: -180px;
}



/* =========================
   CONTAINER
========================= */

.container {
  position: relative;

  z-index: 2;

  width: 100%;
  max-width: 1180px;

  margin: 0 auto;

  padding: 60px 20px;
}



/* =========================
   HERO
========================= */

.hero {
  text-align: center;

  margin-bottom: 38px;
}

.badge {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 8px 16px;

  border-radius: 999px;

  background: rgba(255,255,255,0.72);

  border: 1px solid rgba(112,182,88,0.16);

  backdrop-filter: blur(12px);

  color: #5f8d46;

  font-size: 12px;

  font-weight: 600;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  margin-bottom: 20px;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 4.8rem);

  line-height: 0.95;

  letter-spacing: -0.06em;

  margin-bottom: 18px;

  background:
    linear-gradient(
      135deg,
      #1f2d22,
      #5f8d46
    );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  max-width: 560px;

  margin: 0 auto;

  color: rgba(31,45,34,0.72);

  font-size: 16px;

  line-height: 1.6;

  margin-bottom: 28px;
}



/* =========================
   SEARCH
========================= */

.search-box {
  width: 100%;
  max-width: 480px;

  margin: 0 auto;
}

.search-box input {
  width: 100%;

  border: 1px solid rgba(112,182,88,0.14);

  background: rgba(255,255,255,0.72);

  backdrop-filter: blur(16px);

  border-radius: 20px;

  padding: 16px 20px;

  font-size: 14px;

  color: #1f2d22;

  outline: none;

  transition:
    border 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.search-box input:focus {
  border-color: rgba(112,182,88,0.35);

  transform: translateY(-1px);

  box-shadow:
    0 0 0 5px rgba(112,182,88,0.08);
}

.search-box input::placeholder {
  color: rgba(31,45,34,0.42);
}



/* =========================
   FILTERS
========================= */

.filters {
  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 10px;

  margin-bottom: 32px;
}

.filter-btn {
  border: none;

  padding: 10px 16px;

  border-radius: 999px;

  background: rgba(255,255,255,0.7);

  border: 1px solid rgba(112,182,88,0.14);

  backdrop-filter: blur(14px);

  color: #426234;

  font-size: 13px;

  font-weight: 600;

  cursor: pointer;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    border 0.25s ease;
}

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

  background: rgba(255,255,255,0.88);

  box-shadow:
    0 8px 24px rgba(112,182,88,0.1);
}

.filter-btn.active {
  background:
    linear-gradient(
      135deg,
      #79b357,
      #5d8f44
    );

  color: white;

  border-color: transparent;
}



/* =========================
   RECIPES GRID
========================= */

.recipes-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(280px, 1fr));

  gap: 20px;
}



/* =========================
   RECIPE CARD
========================= */

.recipe-card {
  position: relative;

  overflow: hidden;

  background: rgba(255,255,255,0.72);

  border: 1px solid rgba(112,182,88,0.14);

  border-radius: 28px;

  padding: 20px;

  backdrop-filter: blur(18px);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border 0.35s ease,
    background 0.35s ease;
}

.recipe-card:hover {
  transform: translateY(-6px);

  background: rgba(255,255,255,0.82);

  border: 1px solid rgba(112,182,88,0.24);

  box-shadow:
    0 18px 40px rgba(112,182,88,0.12),
    0 0 30px rgba(255,210,95,0.08);

  cursor: pointer;
}



/* =========================
   CARD GLOW
========================= */

.recipe-card::before {
  content: '';

  position: absolute;

  width: 140px;
  height: 140px;

  border-radius: 50%;

  background: rgba(255,210,95,0.1);

  filter: blur(50px);

  top: -60px;
  right: -60px;
}



/* =========================
   CARD TOP
========================= */

.recipe-top {
  display: flex;

  align-items: center;

  justify-content: space-between;

  margin-bottom: 16px;

  padding-right: 120px;
}

.recipe-emoji {
  width: 48px;
  height: 48px;

  border-radius: 16px;

  display: flex;

  align-items: center;
  justify-content: center;

  font-size: 22px;

  background:
    linear-gradient(
      135deg,
      rgba(112,182,88,0.2),
      rgba(255,210,95,0.2)
    );

  border: 1px solid rgba(112,182,88,0.12);
}

.recipe-category {
  padding: 8px 14px;

  border-radius: 999px;

  background: rgba(112,182,88,0.1);

  color: #5f8d46;

  font-size: 12px;

  font-weight: 700;
}



/* =========================
   TEXT
========================= */

.recipe-title {
  font-size: 21px;

  line-height: 1.15;

  margin-bottom: 10px;

  color: #1f2d22;

  letter-spacing: -0.03em;
}

.recipe-description {
  color: rgba(31,45,34,0.72);

  line-height: 1.5;

  margin-bottom: 16px;

  font-size: 13px;
}



/* =========================
   STATS
========================= */

.recipe-stats {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 10px;

  margin-bottom: 16px;
}

.stat-box {
  padding: 10px;

  border-radius: 16px;

  background: rgba(255,255,255,0.58);

  border: 1px solid rgba(112,182,88,0.1);
}

.stat-label {
  display: block;

  font-size: 11px;

  color: rgba(31,45,34,0.48);

  margin-bottom: 4px;

  text-transform: uppercase;

  letter-spacing: 0.08em;
}

.stat-value {
  font-size: 16px;

  font-weight: 700;

  color: #1f2d22;
}



/* =========================
   NUTRITIONS
========================= */

.recipe-nutrition {
  display: flex;

  gap: 8px;

  flex-wrap: wrap;
}

.nutrition-pill {
  padding: 7px 11px;

  border-radius: 999px;

  background: rgba(255,255,255,0.7);

  border: 1px solid rgba(112,182,88,0.1);

  font-size: 12px;

  font-weight: 600;

  color: #426234;
}



/* =========================
   EMPTY STATE
========================= */

.empty-state {
  grid-column: 1 / -1;

  text-align: center;

  padding: 70px 20px;

  border-radius: 32px;

  background: rgba(255,255,255,0.72);

  border: 1px solid rgba(112,182,88,0.14);

  backdrop-filter: blur(18px);
}

.empty-state h2 {
  font-size: 34px;

  margin-bottom: 12px;
}

.empty-state p {
  color: rgba(31,45,34,0.62);
}



/* =========================
   MOBILE
========================= */

@media (max-width: 640px) {

  .container {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .recipe-card {
    padding: 18px;
  }

  .recipe-title {
    font-size: 19px;
  }

  .recipe-stats {
    grid-template-columns: 1fr;
  }

}

/* =========================
   FAVORITE BUTTON
========================= */

.favorite-btn {
  position: absolute;

  top: 16px;
  right: 16px;

  width: 52px;
  height: 52px;

  border: none;

  border-radius: 18px;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.96),
      rgba(255,255,255,0.82)
    );

  backdrop-filter: blur(18px);

  border: 1px solid rgba(255,255,255,0.7);

  display: flex;

  align-items: center;
  justify-content: center;

  font-size: 24px;

  cursor: pointer;

  z-index: 5;

  box-shadow:
    0 10px 30px rgba(31,45,34,0.08),
    0 0 20px rgba(255,120,120,0.08);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}



.favorite-btn:hover {
  transform:
    scale(1.12)
    rotate(-4deg);

  box-shadow:
    0 16px 34px rgba(255,120,120,0.18),
    0 0 28px rgba(255,120,120,0.14);

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,1),
      rgba(255,245,245,0.92)
    );
}



.favorite-btn:active {
  transform: scale(0.94);
}

/* =========================
   RECIPE ICONS
========================= */

.recipe-icons {
  position: absolute;

  top: 16px;
  right: 76px;

  z-index: 5;
}



/* =========================
   MINI QR BUTTON
========================= */

.mini-qr-btn {
  width: 46px;
  height: 46px;

  border: none;

  border-radius: 16px;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.96),
      rgba(255,255,255,0.82)
    );

  backdrop-filter: blur(18px);

  border: 1px solid rgba(255,255,255,0.7);

  display: flex;

  align-items: center;
  justify-content: center;

  font-size: 20px;

  cursor: pointer;

  box-shadow:
    0 10px 24px rgba(31,45,34,0.08);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.mini-qr-btn:hover {
  transform:
    scale(1.08)
    rotate(-4deg);

  box-shadow:
    0 14px 30px rgba(112,182,88,0.18);
}
/* =========================
   QR MODAL
========================= */

.qr-modal {
  position: fixed;

  inset: 0;

  background: rgba(0,0,0,0.45);

  backdrop-filter: blur(10px);

  display: flex;

  align-items: center;
  justify-content: center;

  opacity: 0;

  pointer-events: none;

  transition: 0.3s ease;

  z-index: 9999;
}

.qr-modal.show {
  opacity: 1;

  pointer-events: auto;
}



/* =========================
   QR CONTENT
========================= */

.qr-content {
  width: 92%;
  max-width: 420px;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.98),
      rgba(255,255,255,0.92)
    );

  border: 1px solid rgba(255,255,255,0.7);

  backdrop-filter: blur(20px);

  border-radius: 34px;

  padding: 34px;

  text-align: center;

  position: relative;

  box-shadow:
    0 30px 60px rgba(0,0,0,0.12);

  animation: qrPopup 0.3s ease;
}

@keyframes qrPopup {

  from {

    transform:
      scale(0.92)
      translateY(20px);

    opacity: 0;

  }

  to {

    transform:
      scale(1)
      translateY(0);

    opacity: 1;

  }

}



/* =========================
   QR TEXT
========================= */

.qr-content h2 {
  font-size: 30px;

  margin-bottom: 10px;

  color: #1f2d22;
}

.qr-content p {
  color: rgba(31,45,34,0.65);

  margin-bottom: 24px;
}



/* =========================
   QR IMAGE
========================= */

#qr-code {
  display: flex;

  justify-content: center;
}

#qr-code img {
  background: white;

  padding: 14px;

  border-radius: 24px;

  box-shadow:
    0 12px 30px rgba(0,0,0,0.08);
}



/* =========================
   CLOSE BUTTON
========================= */

.close-qr {
  position: absolute;

  top: 16px;
  right: 16px;

  width: 44px;
  height: 44px;

  border: none;

  border-radius: 14px;

  background: rgba(0,0,0,0.06);

  font-size: 18px;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.close-qr:hover {
  transform: scale(1.08);

  background: rgba(0,0,0,0.1);
}

/* oprava navbaru z mapy */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 20px 30px;

  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px);
}


.logo {
  font-size: 18px;
  font-weight: 800;
  color: #5c8f3b;
}


.nav-links {
  display: flex;
  gap: 24px;
}


.nav-links a {
  text-decoration: none;
  color: #243326;
  font-weight: 600;
}


.nav-links a.active {
  color: #5fa86d;
}


.menu-toggle {
  display: none;
}
