/* ================================================================
   moj.pas.kitchen — zajednicki okvir (header + footer + baza)

   PRAVILO: ovo je KOPIJA pravila iz shop.pas.kitchen (index.html, blokovi
   RESET & BASE / CSS VARIABLES / NAVBAR / FOOTER). Portal mora izgledati
   kao ista aplikacija, ne kao rodak. Kad se header ili footer mijenja u
   ducanu, mijenja se i ovdje — i obrnuto.

   Zasto zasebna datoteka: dashboard.html, login.html i index.html su tri
   stranice. Dok su header i footer bili prepisani u svakoj, razisli su se
   (14.08.2026. index.html je zadrzao stari tekst koji su kupci vidjeli).
   Sada postoji jedno mjesto. Markup je u pk-chrome.js, uz istu logiku.
   ================================================================ */

/* ---------------- RESET & BASE (shop) ---------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #FBF5EE;
  color: #2B1A10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------------- CSS VARIABLES (shop) ---------------- */
:root {
  --white: #fff;
  --paragraphs: #341621;
  --heading: #1f1b1a;
  --green: #00a36c;
  --orange: #fb8c23;
  --border: #e8e3df;
  --background: #f4f2f0;
  --light: #cbe9de;

  /* Portal dodaje samo ovo — ducan ih ne treba. */
  --green-dark: #00895b;
  --red: #ff3000;
  --muted: #8a817b;
  --yellow-bg: #fdf3d7;
  --yellow-border: #f0d98c;
  --yellow-text: #7a5c00;
}

/* ---------------- NAVBAR (shop) ---------------- */
/* Razlika od ducana: ducan koristi position:fixed, portal sticky. Vizualno
   je isto na vrhu dokumenta, a sticky ne trazi rucno racunanje padding-topa
   ispod trake — portal ima jos i drugi red (tabovi), pa bi fixed znacio dva
   broja koja se moraju drzati u skladu. */
.navbar {
  z-index: 100;
  background-color: transparent;
  position: sticky;
  top: 0;
}

.block-navbar {
  background-color: var(--white);
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 10px 2% 3px;
  display: flex;
  box-shadow: 0 0 50px #3f2c272e;
}

.nav-group { justify-content: center; align-items: center; display: flex; }

.brand {
  justify-content: center;
  align-items: center;
  margin-right: 15px;
  padding: 5px;
  display: flex;
  text-decoration: none;
}

.logo-desktop { width: 175px; height: 64px; }
.logo-mobile  { width: 64px;  height: 64px; display: none; }

.nav-menu { z-index: 10; justify-content: center; align-items: center; display: flex; }

.nav-link {
  color: var(--paragraphs);
  letter-spacing: .06em;
  text-transform: uppercase;
  flex: 0 auto;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2em;
  text-decoration: none;
  font-family: 'Jost', sans-serif;
}
.nav-link:hover, .nav-link.w--current { color: var(--green); }

.nav-link-green {
  color: var(--green);
  letter-spacing: .06em;
  text-transform: uppercase;
  flex: 0 auto;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2em;
  text-decoration: none;
  font-family: 'Jost', sans-serif;
}

.dropdown { position: relative; }
.dropdown-toggle { padding: 14px 42px 14px 26px; cursor: pointer; display: flex; align-items: center; position: relative; }
.dropdown-text {
  color: var(--paragraphs);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2em;
  font-family: 'Jost', sans-serif;
}
.icon-dropdown {
  position: absolute; right: 0; top: 0; bottom: 0; margin: auto; margin-right: 20px;
  width: 1em; height: 1em; font-size: 12px; line-height: 1em;
  color: var(--paragraphs); display: flex; align-items: center;
}
.icon-dropdown::before { content: '▾'; }
.dropdown-list {
  z-index: 99; background-color: var(--white); display: none;
  position: absolute; top: 100%; left: 0; min-width: 200px;
  border-radius: 10px; padding: 12px; box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.dropdown:hover .dropdown-list { display: block; }
.dropdown-link {
  color: var(--heading);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2em;
  display: block;
  text-decoration: none;
  font-family: 'Jost', sans-serif;
}
.dropdown-link:hover { color: var(--green); }

.button-nav {
  background-color: var(--orange);
  color: var(--white);
  text-align: center;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 50px;
  padding: 13px 27px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2em;
  text-decoration: none;
  transition: background-color .3s, transform .3s;
  display: inline-block;
  font-family: 'Jost', sans-serif;
}
.button-nav:hover { background-color: var(--green); color: var(--white); transform: scale(1.05); }

.menu-button { display: none; border: none; background: none; cursor: pointer; }
.icon-menu { display: block; font-size: 24px; line-height: 1em; }
.icon-menu::before { content: '☰'; }

/* Jezicni izbornik — ista struktura i mjere kao u ducanu. */
.nav-locales {
  color: var(--paragraphs);
  letter-spacing: .06em;
  text-transform: uppercase;
  flex: 0 auto;
  padding: 14px 0 14px 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2em;
  font-family: 'Jost', sans-serif;
}
.locales-list { flex-direction: row; align-items: center; margin: 0; padding-left: 0; list-style-type: none; display: flex; }
.locales-item { border-left: 1px solid; align-items: center; margin-left: 8px; padding-left: 8px; line-height: 1; display: flex; }
.locales-item:first-child { border-left-width: 0; margin-left: 0; padding-left: 0; }
.locales-link { white-space: nowrap; color: inherit; text-decoration: none; }
.locales-link:hover { color: var(--green); }
.locales-link.is-current { color: var(--green); font-weight: 600; }

/* ---------------- Tabovi portala (drugi red) ---------------- */
/* Ducan ovo nema — portal ima tri ekrana pa mu treba navigacija. Stil je
   namjerno tiši od glavnog izbornika, da glavni ostane glavni. */
.portal-tabs-bar { background: var(--white); border-top: 1px solid var(--border); }
.portal-tabs-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 0 2%;
}
.nav-tabs { display: flex; gap: 4px; flex: 1; }
.nav-tab {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 13px 16px;
  border-bottom: 3px solid transparent;
}
.nav-tab:hover { color: var(--heading); }
.nav-tab.active { color: var(--heading); border-bottom-color: var(--green); }
.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--light);
  color: var(--green-dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  border: 2px solid transparent;
}
.avatar.active { border-color: var(--green); }

/* ---------------- FOOTER (shop) ---------------- */
.site-footer { background-color: var(--heading); padding: 50px 25px 36px; position: relative; margin-top: auto; }
.footer-grid {
  width: 100%; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: .5fr .5fr 1fr;
  grid-column-gap: 24px; grid-row-gap: 24px; align-items: center;
}
.footer-logo { width: 175px; height: 64px; display: block; }
.footer-tagline { color: var(--light); text-align: center; font-size: 18px; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.link-footer {
  opacity: .4; color: var(--light); text-align: center;
  margin-left: 16px; font-size: 16px; text-decoration: none;
  transition: opacity 0.2s; white-space: nowrap;
}
.link-footer:hover { opacity: 1; }
.footer-social { display: flex; gap: 10px; margin-left: 16px; }
.social-link {
  background-color: rgba(255,255,255,.05);
  border-radius: 100%;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; text-decoration: none;
  transition: background-color .3s, transform .3s; flex-shrink: 0;
}
.social-link:hover { background-color: rgba(255,255,255,.15); transform: scale(1.1); }
.image-social { width: 16px; height: 16px; }
.footer-row2 { display: flex; align-items: center; gap: 24px; margin-top: 24px; flex-wrap: wrap; max-width: 1200px; margin-left: auto; margin-right: auto; }
.footer-badge { width: 130px; display: block; }

/* ---------------- Breakpointi (shop) ---------------- */
@media screen and (max-width: 991px) {
  .block-navbar { padding-left: 20px; padding-right: 20px; }

  .nav-menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0; width: 100%;
    background-color: var(--white); padding: 5px 0 15px;
  }
  .nav-menu.is-open { display: block; animation: nav-drop .3s ease; }

  .nav-link, .nav-link-green { margin-left: 20px; margin-right: 20px; padding: 17px 10px; display: block; }

  .dropdown { width: auto; padding-left: 20px; padding-right: 20px; }
  .dropdown-toggle { display: block; padding: 10px; line-height: 30px; }
  .dropdown-text { display: inline-block; }
  .icon-dropdown { position: relative; display: inline-block; margin: 0 5px; }
  .dropdown-list {
    position: static; box-shadow: none; background-color: var(--background);
    border-radius: 10px; padding: 12px; overflow: hidden; display: none;
  }
  .dropdown:hover .dropdown-list { display: none; }
  .dropdown.is-open .dropdown-list { display: block; }

  .menu-button {
    display: block;
    background-color: var(--background);
    color: var(--heading);
    border-radius: 50px;
    margin-left: 5px;
    padding: 12px;
    line-height: 1.2em;
    transition: color .3s cubic-bezier(.25,.46,.45,.94), background-color .3s cubic-bezier(.25,.46,.45,.94);
  }
  .menu-button.is-open { background-color: var(--orange); color: var(--white); }
  .menu-button.is-open .icon-menu::before { content: '✕'; }
  .icon-menu { font-size: 20px; }

  /* Traka je referenca za rasklopljeni izbornik. */
  .navbar { position: relative; }

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

@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-menu.is-open { animation: none; }
}

@media screen and (max-width: 767px) {
  .logo-desktop { display: none; }
  .logo-mobile  { display: block; }
  .menu-button  { background-color: var(--white); }
  .icon-menu    { font-size: 40px; }

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-logo { margin: 0 auto; }
  .footer-social { justify-content: center; margin-left: 0; }
  .nav-tab { padding: 12px 10px; font-size: 13px; }
}
