:root {
  --ink: #1a2420;
  --muted: #5a6b63;
  --paper: #f3f6f4;
  --panel: #ffffff;
  --brand: #2f7a45;
  --brand-deep: #1e5230;
  --brand-soft: #dceee2;
  --line: #c9d6ce;
  --danger: #b42318;
  --nav-w: 15.5rem;
  --shadow: 0 10px 30px rgba(26, 36, 32, 0.08);
  --font-display: "Newsreader", "Palatino Linotype", Palatino, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body.klik-shell {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #e7f3eb 0%, transparent 55%),
    linear-gradient(180deg, #eef3f0 0%, var(--paper) 40%, #e8eee9 100%);
}

.shell {
  display: grid;
  grid-template-columns: var(--nav-w) 1fr;
  min-height: 100%;
}

.shell__nav {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  padding: 1.25rem 1rem 1.5rem;
  /* isto ozadje kot rob GIF logotipa / stari Levo.htm */
  background: #99cccc;
  color: var(--ink);
  border-right: 1px solid #7eb6b6;
  animation: navIn 0.55s ease-out both;
}

.shell__brand {
  display: block;
  margin: 0 0 1.25rem;
  text-decoration: none;
  color: inherit;
}

.shell__brand img {
  display: block;
  width: min(100%, 140px);
  height: auto;
  /* brez sence — logotip se zlije z #99cccc */
  filter: none;
  transition: transform 0.25s ease;
}

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

.shell__address {
  display: block;
  margin: 0 0 1.25rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.35);
  color: var(--danger);
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.35;
  transition: background 0.2s ease, color 0.2s ease;
}

.shell__address:hover {
  background: rgba(255, 255, 255, 0.55);
  color: #8f1c14;
}

.shell__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.shell__menu a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 0.45rem;
  color: #cc0000;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.shell__menu a:hover,
.shell__menu a:focus-visible {
  background: rgba(255, 255, 255, 0.45);
  color: #990000;
  transform: translateX(3px);
  outline: none;
}

.shell__menu a.is-active {
  background: #ffffff;
  color: var(--brand-deep);
}

.shell__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  animation: mainIn 0.6s ease-out 0.08s both;
}

.shell__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.shell__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--brand-deep);
  letter-spacing: -0.02em;
}

.shell__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #fff4d6;
  color: #7a4f00;
  border: 1px solid #efd28a;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shell__frame-wrap {
  flex: 1;
  min-height: 0;
  padding: 0.85rem 1rem 1rem;
}

.shell__frame {
  display: block;
  width: 100%;
  height: calc(100vh - 5.2rem);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.shell__nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 0.45rem;
  padding: 0.4rem 0.65rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

/* samo za mobilni drawer — na desktopu mora biti skrit */
.shell__scrim {
  display: none;
}

@keyframes navIn {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes mainIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 820px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .shell__nav {
    position: fixed;
    z-index: 20;
    inset: 0 auto 0 0;
    width: min(18rem, 86vw);
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    box-shadow: var(--shadow);
    pointer-events: none;
    visibility: hidden;
  }

  body.nav-open .shell__nav {
    transform: none;
    pointer-events: auto;
    visibility: visible;
  }

  .shell__nav-toggle {
    display: inline-flex;
  }

  .shell__bar {
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .shell__frame {
    height: calc(100vh - 5.5rem);
  }

  .shell__scrim {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 30, 26, 0.4);
    z-index: 15;
    border: 0;
    padding: 0;
    cursor: pointer;
  }

  body.nav-open .shell__scrim {
    display: block;
  }
}
