/*
Theme Name: Gastro·Płock Lite
Theme URI: https://gastro-plock.pl
Description: Lekka, publiczna wersja motywu Gastro·Płock — katalog, lunche, mapa, blog. Funkcje społecznościowe, logowanie i recenzje są ukryte (wdrażane stopniowo).
Version: 1.0.0
Author: Gastro Płock
Text Domain: gastroplock-lite
*/

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── BASE ── */
body {
  font-family: 'Outfit', sans-serif;
  background: #f2f3f7;
  color: #252C41;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; }
img { max-width: 100%; }
.smush-detected-img { box-shadow: none !important; border: none !important; outline: none !important; }

/* ── CSS VARIABLES ── */
:root {
  --accent: #d42b1e;
  --navy:   #252C41;
  --bg:     #f2f3f7;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(37,44,65,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background .4s, backdrop-filter .4s, border-color .4s, opacity .4s, transform .35s ease;
}
.navbar.nav-fading {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border-bottom-color: transparent;
}
.navbar.nav-hidden {
  opacity: 0;
  pointer-events: none;
}
.navbar-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  height: 68px; display: flex; align-items: center; gap: 24px;
}

/* Logo */
.nav-logo,
.gp-logo {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.nav-logo img,
.gp-logo img { width: 32px; height: 32px; border-radius: 9px; }
.logo-text,
.nav-logo-text {
  font-family: 'Fira Sans', sans-serif; font-weight: 800; font-size: 16px;
  color: white; line-height: 1; transition: color .3s;
}
.navbar.scrolled .logo-text,
.navbar.scrolled .nav-logo-text { color: white; }
.dot { color: var(--accent); }
.logo-sub {
  font-family: 'Outfit', sans-serif; font-weight: 300; font-size: 10px;
  color: rgba(255,255,255,0.5); letter-spacing: 2.5px; text-transform: uppercase;
}

/* Breadcrumb (strony szczegółów) */
.nav-breadcrumb {
  display: flex; align-items: center; gap: 6px; font-size: 14px;
  font-family: 'Outfit', sans-serif; color: rgba(255,255,255,0.6); transition: color .3s;
}
.navbar.scrolled .nav-breadcrumb { color: rgba(255,255,255,0.6); }
.nav-breadcrumb a { color: inherit; transition: color .2s; }
.nav-breadcrumb a:hover { color: var(--accent); }
.nav-breadcrumb .sep { opacity: 0.4; }
.nav-breadcrumb .current {
  color: white; font-weight: 600; transition: color .3s;
}
.navbar.scrolled .nav-breadcrumb .current { color: white; }

/* Nav spacer */
.nav-spacer { flex: 1; }

/* Homepage nav linki */
.nav-links {
  display: flex; gap: 4px; flex: 1; justify-content: center;
}
.nav-links a {
  font-weight: 500; font-size: 14px; color: rgba(255,255,255,0.85);
  padding: 8px 14px; border-radius: 10px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { background: rgba(255,255,255,0.1); }
.nav-links a.active { color: #fff; font-weight: 700; background: rgba(255,255,255,0.12); }
.nav-right { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.btn-login {
  font-weight: 500; font-size: 14px; color: rgba(255,255,255,0.85);
  background: none; border: none; cursor: pointer; padding: 8px 14px;
  font-family: 'Outfit', sans-serif;
}
.btn-add {
  display: inline-block; line-height: 1;
  background: var(--accent); color: white; border: none; border-radius: 12px;
  padding: 9px 18px; cursor: pointer;
  font-family: 'Fira Sans', sans-serif; font-weight: 700; font-size: 14px;
  box-shadow: 0 4px 14px rgba(212,43,30,0.44); transition: transform .15s;
}
.btn-add:hover { transform: translateY(-1px); }

/* ── SLIM FOOTER (detail pages) ── */
.page-footer {
  background: var(--navy); color: rgba(255,255,255,0.5);
  padding: 24px 32px; display: flex; justify-content: space-between; align-items: center;
}
.footer-brand {
  font-family: 'Fira Sans', sans-serif; font-weight: 800; font-size: 16px; color: white;
}
.footer-copy { font-family: 'Outfit', sans-serif; font-size: 13px; }
.footer-back,
.footer-link {
  font-family: 'Outfit', sans-serif; font-size: 14px;
  color: rgba(255,255,255,0.65); font-weight: 600; transition: color .2s;
}
.footer-back:hover,
.footer-link:hover { color: white; }
.footer-detail-mobile { display: none; }
.footer-detail-desktop { display: block; }

/* ── UTILITY ── */
.section-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
}

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
  display: none; width: 44px; height: 44px; border: none; background: none;
  cursor: pointer; padding: 0; flex-shrink: 0; position: relative;
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px; background: white;
  border-radius: 2px; position: absolute; left: 11px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-hamburger span:nth-child(1) { top: 15px; }
.nav-hamburger span:nth-child(2) { top: 21px; }
.nav-hamburger span:nth-child(3) { top: 27px; }
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── MOBILE DRAWER ── */
.nav-drawer {
  display: none; position: fixed; top: 68px; left: 0; right: 0; bottom: 0; z-index: 199;
  background: rgba(37,44,65,0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  flex-direction: column; padding: 24px; gap: 6px;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.nav-drawer.is-open { display: flex; opacity: 1; transform: translateY(0); }
body.admin-bar .nav-drawer { top: calc(68px + 32px); }
.nav-drawer a, .nav-drawer button {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 17px;
  color: rgba(255,255,255,0.88); padding: 14px 16px; border-radius: 14px;
  background: none; border: none; cursor: pointer; width: 100%; text-align: left;
  transition: background .15s;
  min-height: 48px;
}
.nav-drawer a:hover, .nav-drawer button:hover { background: rgba(255,255,255,0.08); }
.nav-drawer a.active { color: white; font-weight: 700; background: rgba(255,255,255,0.1); }
.nav-drawer-sep {
  height: 1px; background: rgba(255,255,255,0.1); margin: 8px 0;
}
.nav-drawer .btn-add {
  display: flex; align-items: center; justify-content: center;
  margin-top: 8px; padding: 14px 24px; font-size: 15px; border-radius: 14px;
  min-height: 48px;
}

/* ── ADMIN BAR FIX ── */
body.admin-bar .navbar { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .navbar { top: 46px; }
  body.admin-bar .nav-drawer { top: calc(68px + 46px); }
}

/* ── FULL FOOTER (shared) ── */
.footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 48px 0 32px; }
.footer a,
.footer a:visited,
.footer a:active {
  color: rgba(255,255,255,0.7) !important;
  text-decoration: none !important;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.footer-desc { font-size: 14px; line-height: 1.7; max-width: 280px; margin-top: 16px; }
.footer-social {
  display: flex; align-items: center; justify-content: flex-start; gap: 22px;
  width: fit-content;
  margin-top: 4px;
  margin-bottom: 18px;
}
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  color: rgba(255,255,255,0.78) !important;
  transition: color .15s, transform .15s;
}
.footer-social a:hover {
  color: #fff !important;
  transform: translateY(-1px);
}
.footer-social svg {
  width: 21px; height: 21px;
  fill: currentColor;
  display: block;
}
.footer-col-title {
  font-family: 'Fira Sans', sans-serif; font-weight: 700; font-size: 14px;
  color: #fff; margin-bottom: 16px;
}
.footer-col a,
.footer-col a:visited,
.footer-col a:active { display: block; font-size: 13px; margin-bottom: 9px; color: rgba(255,255,255,0.7) !important; text-decoration: none !important; transition: color .15s; }
.footer-col a.footer-col-title,
.footer-col a.footer-col-title:visited,
.footer-col a.footer-col-title:active {
  font-family: 'Fira Sans', sans-serif; font-weight: 700; font-size: 14px;
  color: #fff !important; margin-bottom: 16px;
}
.footer-col a:hover { color: rgba(255,255,255,0.92); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,0.7);
}
.footer-bottom > div:last-child { display: none; }

/* ══════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
   ══════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ══════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
   ══════════════════════════════════════ */
@media (max-width: 768px) {
  /* Navbar */
  .navbar-inner { padding: 0 16px; gap: 12px; }
  .nav-links { display: none; }
  .nav-right { margin-left: auto; }
  .nav-right .btn-login { display: none; }
  .nav-right .btn-add { display: none; }
  .nav-hamburger { display: flex; align-items: center; justify-content: center; }
  .nav-spacer { display: none; }

  /* Slim footer */
  .footer-detail-desktop { display: none; }
  .footer-detail-mobile { display: flex; }
  .page-footer {
    flex-wrap: wrap; gap: 12px; padding: 20px 16px;
    justify-content: center; text-align: center;
  }
  .footer-brand { width: 100%; }
  .footer-copy { order: 3; width: 100%; }

  /* Full footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Utility */
  .section-inner { padding: 0 16px; }
}

/* ══════════════════════════════════════
   ADMIN BAR — sticky element offsets
   ══════════════════════════════════════ */
body.admin-bar .cat-strip    { top: calc(68px + 32px); }
body.admin-bar .sticky-bar   { top: 32px; }
body.admin-bar .lh-day-bar   { top: calc(68px + 32px); }
body.admin-bar .lh-filter-bar { top: calc(68px + 60px + 32px); }
body.admin-bar .day-tabs-bar { top: calc(68px + 32px); }
body.admin-bar .subcat-strip { top: calc(68px + 32px); }
body.admin-bar .filter-bar   { top: calc(68px + 52px + 32px); }
body.admin-bar .map-page     { height: calc(100vh - 68px - 32px); height: calc(100dvh - 68px - 32px); margin-top: calc(68px + 32px); }
body.admin-bar .sf-left      { top: calc(100px + 32px); }
body.admin-bar .sf-right     { top: calc(100px + 32px); max-height: calc(100vh - 140px - 32px); }

@media screen and (max-width: 782px) {
  body.admin-bar .cat-strip    { top: calc(68px + 46px); }
  body.admin-bar .sticky-bar   { top: 46px; }
  body.admin-bar .lh-day-bar   { top: calc(68px + 46px); }
  body.admin-bar .lh-filter-bar { top: calc(68px + 60px + 46px); }
  body.admin-bar .day-tabs-bar { top: calc(68px + 46px); }
  body.admin-bar .subcat-strip { top: calc(68px + 46px); }
  body.admin-bar .filter-bar   { top: calc(68px + 52px + 46px); }
  body.admin-bar .map-page     { height: calc(100vh - 68px - 46px); height: calc(100dvh - 68px - 46px); margin-top: calc(68px + 46px); }
}

/* ══════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
