/* ============================================================
   SITE-CHROME.CSS
   Header (site-nav), breadcrumb, faqe-toolbar (printo/ndaj),
   footer dhe login-modal — të përbashkëta për të gjitha faqet
   publike (index, kuizet, kalkulatorët, loja). Përdor variablat
   e paletës (--blue, --paper, --rule, --ink, --ink-soft, --red,
   --paper-2, --blue-bright) të cilat çdo faqe i përcakton në
   :root-in e vet përpara se ta ngarkojë këtë skedar.

   MOS e përdor këtë skedar te admin.html — paneli admin ka
   topbar strukturalisht të ndryshëm (pa kërkim, "dil" në vend
   të "hyrje", pa breadcrumb/footer publik).
   ============================================================ */

/* ---------- HEADER ---------- */
/* Klasë e veçantë (jo selektori i thjeshtë "nav") — disa faqe
   kanë edhe një element <nav> tjetër (breadcrumb-i), i cili
   s'duhet të bëhet "sticky". */
.site-nav { position: sticky; top: 0; z-index: 200; align-self: stretch; width: 100%; }
.nav-top {
  padding: 0 28px; height: 66px; display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.98); border-bottom: 1px solid var(--rule);
}
.nav-secondary { background: var(--blue); height: 5px; }
.nav-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--blue); flex: 1; min-width: 0; }
.nav-brand-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 9px; overflow: hidden;
  background: rgba(35,65,171,0.1); color: var(--blue); display: flex; align-items: center; justify-content: center;
  animation: navBrandIconIntro 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.nav-brand-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes navBrandIconIntro {
  0% { opacity: 0; transform: scale(0.4) rotate(-12deg); }
  60% { opacity: 1; transform: scale(1.08) rotate(3deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-brand-icon { animation: none; }
}
.nav-brand-text {
  font-family: var(--display); font-weight: 500; font-size: 13px; color: var(--ink);
  text-transform: uppercase; letter-spacing: 0.045em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-right { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.nav-logos { display: flex; align-items: center; }
.nav-logo-bqk img { height: 32px; display: block; }
.nav-logo-ef { padding-left: 18px; border-left: 1px solid var(--rule); }
.nav-logo-ef img { height: 34px; display: block; }
.nav-utility { display: flex; align-items: center; gap: 18px; padding-left: 18px; border-left: 1px solid var(--rule); }
.nav-utility-item { display: flex; align-items: center; position: relative; }
.nav-utility-item:not(:first-child)::before {
  content: ''; position: absolute; left: -9px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 16px; background: var(--rule);
}
.nav-utility-btn {
  display: flex; align-items: center; gap: 8px; padding: 0; height: 24px;
  font-family: var(--body); font-size: 14px; font-weight: 400; color: var(--ink);
  background: none; border: none; cursor: pointer; white-space: nowrap;
}
.nav-utility-btn:hover { color: var(--blue); }
.nav-utility-chevron { transition: transform 0.15s ease; flex-shrink: 0; }
.nav-utility-btn[aria-expanded="true"] .nav-utility-chevron { transform: rotate(180deg); }
.nav-dropdown {
  display: none; position: absolute; top: calc(100% + 10px); left: 0; width: 260px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 6px;
  box-shadow: 0 12px 30px rgba(2,29,60,0.14); padding: 6px; z-index: 300;
}
.nav-dropdown.open { display: block; }
.nav-dropdown a { display: block; padding: 10px 12px; border-radius: 4px; font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.4; }
.nav-dropdown a:hover { background: var(--paper-2); color: var(--blue); }
.nav-dropdown a + a { border-top: 1px solid var(--rule); margin-top: 2px; padding-top: 12px; }
.nav-search { position: relative; }
.nav-search-panel {
  display: none; position: absolute; top: calc(100% + 10px); right: 0; width: 260px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 6px;
  box-shadow: 0 12px 30px rgba(2,29,60,0.14); padding: 10px; z-index: 300;
}
.nav-search-panel.open { display: block; }
.nav-search-panel input { width: 100%; padding: 10px 12px; font-family: var(--body); font-size: 14px; border: 1.5px solid var(--rule); border-radius: 4px; color: var(--ink); }
.nav-search-panel input:focus { outline: none; border-color: var(--blue); }
.nav-search-empty { font-size: 12.5px; color: var(--ink-soft); padding: 20px 4px; text-align: center; display: none; }
@media (max-width: 860px) { .nav-utility-label { display: none; } }
@media (max-width: 680px) { .nav-utility { display: none; } }
.nav-login { font-family: var(--body); font-size: 14px; font-weight: 600; color: var(--blue); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.nav-login:hover { text-decoration: underline; }
.nav-lang { position: relative; display: flex; align-items: center; }
.nav-lang-dropdown { left: auto; right: 0; width: 96px; }
.nav-lang-dropdown a + a { border-top: none; margin-top: 0; padding-top: 8px; }
a.nav-lang-option { display: block; padding: 8px 12px; border-radius: 4px; font-size: 13px; font-weight: 400; color: var(--ink); text-decoration: none; position: relative; }
.nav-lang-option:hover { background: var(--paper-2); color: var(--blue); }
.nav-lang-option.active { color: var(--blue); }
@media (max-width: 700px) { .nav-brand-text { display: none; } }
@media (max-width: 480px) {
  .nav-top { padding: 0 14px; }
  .nav-logo-bqk img { height: 22px; }
  .nav-logo-ef { padding-left: 8px; }
  .nav-logo-ef img { height: 18px; }
  .nav-right { gap: 8px; }
}

/* ---------- LOGIN MODAL ---------- */
.login-overlay { position: fixed; inset: 0; background: rgba(13,37,71,0.75); display: none; align-items: center; justify-content: center; z-index: 999; padding: 20px; }
.login-card {
  background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--blue);
  border-radius: 6px; padding: 40px 36px; max-width: 380px; width: 100%;
  box-shadow: 0 20px 50px rgba(2,29,60,0.25); text-align: center; position: relative;
}
.login-close {
  position: absolute; top: 14px; right: 14px; background: none; border: none; cursor: pointer;
  color: var(--ink-soft); width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 4px;
}
.login-close:hover { background: var(--paper-2); color: var(--ink); }
.login-icon { width: 52px; height: 52px; border-radius: 4px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.login-title { font-family: var(--display); font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.login-sub { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 26px; }
.login-input { width: 100%; padding: 13px 16px; font-size: 15px; font-family: var(--body); border: 1.5px solid var(--rule); border-radius: 4px; margin-bottom: 14px; color: var(--ink); }
.login-input:focus { outline: none; border-color: var(--blue); }
.login-password-wrap { position: relative; margin-bottom: 14px; }
.login-password-wrap .login-input { margin-bottom: 0; padding-right: 44px; }
.login-eye-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--ink-soft); padding: 8px; display: flex; align-items: center; justify-content: center; }
.login-eye-toggle:hover { color: var(--ink); }
.login-btn { width: 100%; padding: 13px; font-family: var(--body); font-size: 14.5px; font-weight: 700; color: #fff; background: var(--blue); border: none; border-radius: 4px; cursor: pointer; transition: background 0.18s ease; }
.login-btn:hover { background: var(--blue-bright); }
.login-error { color: var(--red); font-size: 13px; margin-top: 12px; display: none; }

/* ---------- RRESHTI I SIPËRM: breadcrumb + printo/ndaj (gjerësi si index.html) ---------- */
.page-container-outer { width: 100%; padding: 28px 28px 0; }
.page-container { width: 100%; max-width: 1180px; margin: 0 auto; }
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-family: var(--body); font-size: 13px; color: var(--muted); margin-bottom: 0;
}
.breadcrumb a { color: var(--navy); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--border); }
.breadcrumb-current { color: var(--muted); font-weight: 500; }
.page-toolbar {
  width: 100%; margin: 20px 0 0; display: flex; align-items: center;
  justify-content: flex-end; gap: 12px; flex-wrap: wrap; padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.page-toolbar-icons { display: flex; align-items: center; gap: 8px; }
.toolbar-icon-btn {
  width: 34px; height: 34px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  background: var(--navy-lt); color: var(--navy); border: none; cursor: pointer; text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.toolbar-icon-btn:hover { background: var(--navy); color: #fff; }
@media print {
  nav, .nav-secondary, .breadcrumb, .page-toolbar { display: none !important; }
  body { padding: 0; }
}

/* ---------- FOOTER ---------- */
footer { width: 100%; align-self: stretch; background: var(--ink); color: rgba(255,255,255,0.78); padding: 56px 28px 40px; border-top: 4px solid var(--blue); margin-top: 60px; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.footer-logos { display: flex; align-items: center; gap: 26px; }
.footer-logo-bqk, .footer-logo-ef, .footer-logo-krahaso { filter: brightness(0) invert(1); opacity: 0.85; }
.footer-logo-bqk { height: 26px; }
.footer-logo-ef { height: 30px; }
.footer-logo-krahaso { height: 22px; }
.footer-note { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.8; max-width: 380px; text-align: right; }
@media (max-width: 640px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-note { text-align: left; }
}
@media print { footer { display: none !important; } }
