/* ==========================================================================
   Megameni u zaglavlju weba (SiteHeader.vue), od 5. 11. 2026. Učitava se na
   svakoj stranici (nuxt.config.ts), odmah iza style.css.
   Zaglavlje (.site-header, .brand, .lang, .btn, .nav-toggle) dolazi iz
   style.css; ovdje je samo navigacija i ploče izbornika.
   Raspored ploče po uzoru na grondia.com: uvod | grupe | kartica.
   ========================================================================== */

.mm-bar { display: flex; align-items: stretch; gap: 2px; height: 68px; margin: 0; padding: 0; list-style: none; }
/* Stavka nije pozicionirana: ploča se mjeri prema zaglavlju (sticky), pa je
   široka koliko i ono. */
.mm-entry { display: flex; align-items: center; }

.mm-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}
.mm-trigger:hover { color: var(--text); background: var(--gray-100); }
.mm-trigger[aria-expanded="true"] { color: var(--text); background: var(--brand-25); }
.mm-trigger[aria-current="page"] { color: var(--text); }
.mm-trigger__chev { transition: transform .2s ease; }
.mm-trigger[aria-expanded="true"] .mm-trigger__chev { transform: rotate(180deg); }

/* ---- Ploča ---------------------------------------------------------------- */
.mm-panel {
  position: absolute;
  z-index: 2;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 40px -32px rgba(16, 24, 40, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  /* Vidljivost se pali odmah, a gasi tek kad ploča izblijedi: inače strelica
     dolje ne može odmah fokusirati prvu poveznicu. */
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.mm-panel.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }

.mm-panel__grid {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  column-gap: 28px;
}
@media (min-width: 1200px) {
  .mm-panel__grid { grid-template-columns: 12rem minmax(0, 1fr) 15.5rem; }
}

.mm-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mm-intro {
  display: flex;
  flex-direction: column;
  padding: 30px 24px 30px 0;
  border-right: 1px solid var(--border);
}
/* Uvod na blagoj podlozi u boji brenda: proteže se do lijevog ruba ekrana. */
@media (min-width: 960px) {
  .mm-panel { overflow-x: clip; }
  .mm-intro {
    margin-left: -100vw;
    padding-left: 100vw;
    background: linear-gradient(160deg, var(--brand-25) 0%, color-mix(in srgb, var(--brand-50) 70%, var(--bg)) 100%);
  }
  .mm-intro .mm-eyebrow { color: var(--brand-600); }
}
.mm-intro__title {
  margin: 12px 0 0;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--text);
  text-wrap: balance;
}
.mm-intro__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color .15s ease;
}
.mm-intro__link:hover { color: var(--brand-600); }
.mm-intro__link svg { transition: transform .15s ease; }
.mm-intro__link:hover svg { transform: translateX(2px); }

.mm-groups {
  display: grid;
  grid-template-columns: repeat(var(--mm-cols, 3), minmax(0, 1fr));
  align-content: start;
  column-gap: 16px;
  padding: 24px 0 26px;
}
/* Svaka grupa ima svoj ton (ikone, naslov, hover), iz boja koje web već
   koristi: brend, smjena gostiju (ljubičasta), dolazak/odlazak (narančasta). */
.mm-group { --mm-tone: var(--brand-500); }
.mm-group:nth-child(2) { --mm-tone: var(--turnover); }
.mm-group:nth-child(3) { --mm-tone: var(--warning-500); }
.mm-group__title { margin-bottom: 8px; padding: 0 8px; color: color-mix(in srgb, var(--mm-tone) 75%, var(--text)); }
.mm-group__list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }

.mm-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 8px;
  border-radius: var(--r-md);
  color: inherit;
  text-decoration: none;
  transition: background-color .15s ease;
}
a.mm-item:hover, a.mm-item:focus-visible { background: color-mix(in srgb, var(--mm-tone, var(--brand-500)) 7%, transparent); }
a.mm-item[aria-current="page"] { background: color-mix(in srgb, var(--mm-tone, var(--brand-500)) 10%, transparent); }
.mm-item__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  margin-top: 1px;
  border: 1px solid color-mix(in srgb, var(--mm-tone, var(--brand-500)) 22%, transparent);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--mm-tone, var(--brand-500)) 12%, var(--bg));
  color: color-mix(in srgb, var(--mm-tone, var(--brand-500)) 85%, var(--text));
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
a.mm-item:hover .mm-item__icon,
a.mm-item:focus-visible .mm-item__icon {
  border-color: var(--mm-tone, var(--brand-500));
  background: var(--mm-tone, var(--brand-500));
  color: #fff;
}
.mm-item__text { min-width: 0; }
.mm-item__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--text);
}
.mm-item__body { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--text-muted); }

.mm-chip {
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--brand-50);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 16px;
  color: var(--brand-700);
}
.mm-chip--planned { border: 1px dashed var(--gray-300); background: var(--gray-50); color: var(--gray-500); }

/* Planirana stavka: vidi se gdje će stajati, ali nije poveznica. */
.mm-item.is-planned { cursor: default; }
.mm-item.is-planned .mm-item__icon { border-style: dashed; opacity: .6; }
.mm-item.is-planned .mm-item__label { color: var(--text-soft); }

/* ---- Kartica u desnom stupcu --------------------------------------------- */
.mm-feature { display: none; }
@media (min-width: 1200px) {
  .mm-feature { display: block; padding: 22px 0 24px; }
}
.mm-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-subtle);
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease;
}
.mm-card--link:hover { border-color: var(--brand-200); }
.mm-card__title { margin: 0; font-size: 16px; font-weight: 650; line-height: 1.3; color: var(--text); overflow-wrap: anywhere; }
.mm-card__body { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-soft); }
.mm-card__cta { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--brand-600); }
.mm-card--brand { border-color: var(--brand-700); background: var(--brand-700); }
.mm-card--brand:hover { border-color: var(--brand-800); background: var(--brand-800); }
.mm-card--brand .mm-eyebrow { color: var(--brand-100); }
.mm-card--brand .mm-card__title,
.mm-card--brand .mm-card__cta { color: #fff; }
.mm-card--brand .mm-card__body { color: var(--brand-50); }

/* Kartica „Rješenja”: demo po vrsti poslovanja (Kamp, Kamp s vlasnicima, Agencija). */
.mm-card--kinds {
  border-color: color-mix(in srgb, var(--brand-500) 25%, transparent);
  background: linear-gradient(165deg, var(--brand-50) 0%, var(--brand-25) 100%);
}
.mm-card--kinds .mm-eyebrow { color: var(--brand-700); }
.mm-kinds { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.mm-kinds__link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--bg-raised); font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.mm-kinds__link svg { flex: none; color: var(--brand-600); transition: transform .15s ease; }
.mm-kinds__link:hover { border-color: var(--brand-200); background: var(--brand-25); color: var(--brand-700); }
.mm-kinds__link:hover svg { transform: translateX(2px); }
.mm-kinds__link:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }

/* Mala ploča „Danas” (MegaToday.vue). Boje statusa iste su kao u
   AppReadiness.vue, a one su iz aplikacije. */
.mm-today {
  --rd-ok: #47990C;
  --rd-inspect: #DC6803;
  --rd-info: #1570EF;
  --rd-wait: #667085;
  margin: 4px 0 2px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  font-variant-numeric: tabular-nums;
}
.mm-today__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mm-today__title { font-size: 13px; font-weight: 700; color: var(--text); }
.mm-today__meta { font-size: 11px; color: var(--text-muted); }
.mm-today__count { display: grid; margin-top: 10px; }
.mm-today__label { font-size: 11px; color: var(--text-muted); }
.mm-today__big { font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--text); }
.mm-today__of { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.mm-today__bar { display: flex; gap: 2px; height: 6px; margin-top: 6px; overflow: hidden; border-radius: var(--r-pill); }
.mm-today__seg { flex-basis: 0; transition: flex-grow .5s ease; }
.mm-today__seg.is-guestReady, .mm-today__pill.is-guestReady { --pc: var(--rd-ok); }
.mm-today__seg.is-forInspection, .mm-today__pill.is-forInspection { --pc: var(--rd-inspect); }
.mm-today__seg.is-inProgress, .mm-today__pill.is-inProgress { --pc: var(--rd-info); }
.mm-today__seg.is-waiting, .mm-today__pill.is-waiting { --pc: var(--rd-wait); }
.mm-today__seg { background: var(--pc); }
.mm-today__rows { display: grid; margin: 10px 0 0; padding: 0; list-style: none; }
.mm-today__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-top: 1px solid var(--border-lt);
  font-size: 12.5px;
  color: var(--text);
}
.mm-today__pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 8px;
  border: 1px solid color-mix(in srgb, var(--pc) 35%, transparent);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--pc) 8%, transparent);
  font-size: 11px;
  font-weight: 600;
  color: color-mix(in srgb, var(--pc) 82%, var(--text));
  white-space: nowrap;
}
.mm-today__pill::before { content: ''; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--pc); }
.mm-pill-enter-active, .mm-pill-leave-active { transition: opacity .18s ease, transform .18s ease; }
.mm-pill-enter-from { opacity: 0; transform: translateY(3px); }
.mm-pill-leave-to { opacity: 0; transform: translateY(-3px); }

/* Zatamnjenje stranice ispod ploče. */
.mm-scrim {
  position: absolute;
  z-index: 1;
  top: 100%;
  left: 0;
  right: 0;
  height: 100vh;
  background: rgba(17, 25, 39, .14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s;
}
.mm-scrim.is-open { opacity: 1; visibility: visible; }

.mm-nav__foot { display: none; }

/* ---- Tijesni široki ekran ----------------------------------------------- */
@media (max-width: 1099px) and (min-width: 960px) {
  .mm-trigger { padding: 6px 8px; font-size: 14px; }
}

/* ---- Telefon i tablet: izbornik u stupcu, grupe se rasklapaju ------------ */
@media (max-width: 959px) {
  .mm-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    padding: 4px var(--gutter) 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .mm-nav.is-open { display: flex; }
  .mm-bar { flex-direction: column; height: auto; gap: 0; }
  .mm-entry { display: block; border-bottom: 1px solid var(--border); }
  .mm-trigger,
  .mm-trigger:hover,
  .mm-trigger[aria-expanded="true"] {
    justify-content: space-between;
    width: 100%;
    padding: 14px 0;
    border-radius: 0;
    background: none;
    font-size: 16px;
    color: var(--text);
  }
  .mm-panel,
  .mm-panel.is-open {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    box-shadow: none;
    transition: none;
  }
  .mm-panel.is-open { display: block; }
  .mm-panel .container { padding: 0; }
  .mm-panel__grid { display: block; }
  .mm-intro { padding: 0; border: 0; }
  .mm-intro .mm-eyebrow, .mm-intro__title { display: none; }
  .mm-intro__link { margin: 0 0 4px; padding-top: 0; }
  .mm-groups { display: block; padding: 0 0 12px; }
  .mm-group + .mm-group { margin-top: 10px; }
  .mm-group__title { padding: 0; }
  .mm-item { align-items: center; padding: 6px 0; }
  .mm-item__body { display: none; }
  .mm-feature, .mm-scrim { display: none; }
}
@media (max-width: 767px) {
  .mm-nav__foot { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; }
  .mm-nav__signin { padding: 10px 0; font-weight: 600; color: var(--text); text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mm-panel, .mm-scrim, .mm-trigger__chev, .mm-today__seg { transition: none; }
}

/* ---- Stranica prototipa ---------------------------------------------------- */
.mm-proto { padding: 48px 0 72px; }
.mm-proto__title { margin: 10px 0 0; font-size: clamp(30px, 4vw, 40px); letter-spacing: -.02em; }
.mm-proto__lead { max-width: 46rem; margin: 12px 0 0; font-size: 16px; line-height: 1.55; color: var(--text-soft); }
.mm-proto__switch { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 24px; padding: 4px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-subtle); }
.mm-proto__switch button {
  display: grid;
  gap: 2px;
  padding: 10px 16px;
  border: 0;
  border-radius: var(--r-md);
  background: none;
  font: inherit;
  text-align: left;
  color: var(--text-soft);
  cursor: pointer;
}
.mm-proto__switch button b { font-size: 15px; color: var(--text); }
.mm-proto__switch button span { font-size: 12.5px; }
.mm-proto__switch button[aria-pressed="true"] { background: var(--bg-raised); box-shadow: var(--shadow-sm); }
.mm-proto__hint { max-width: 46rem; margin: 14px 0 0; font-size: 13.5px; color: var(--text-muted); }

.mm-proto__section { margin-top: 44px; }
.mm-proto__section h2 { display: flex; align-items: baseline; gap: 10px; margin: 0; font-size: 20px; letter-spacing: -.01em; }
.mm-proto__section h2 small { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.mm-proto__sectionlead { margin: 6px 0 0; font-size: 14px; color: var(--text-soft); }
.mm-proto__table { margin-top: 14px; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.mm-proto__row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1.3fr);
  gap: 16px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-soft);
}
.mm-proto__row:first-child { border-top: 0; }
.mm-proto__row--head { background: var(--bg-subtle); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.mm-proto__row b { color: var(--text); }
.mm-proto__row a { text-decoration: none; }
.mm-proto__row a:hover b { color: var(--brand-600); }
.mm-proto__row small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-muted); }
.mm-proto__row code { font-family: var(--font-mono); font-size: 11.5px; color: var(--gray-600); overflow-wrap: anywhere; }
@media (max-width: 767px) {
  .mm-proto__row { grid-template-columns: 1fr; gap: 4px; }
  .mm-proto__row--head { display: none; }
}
