/*
Theme Name: OPC City App
Theme URI: https://opava.city
Author: by George / OPC City
Description: Lehká bloková šablona pro síť OPAVA.CITY, PRAHA.CITY, NYCITY.CITY a LACITY.CITY. Web působí jako aplikace a podporuje vizuální edice.
Version: 1.1.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: opc-city-app
*/

:root {
  --opc-safe-bottom: env(safe-area-inset-bottom, 0px);
  --opc-radius: 24px;
  --opc-border: rgba(255,255,255,.18);
  --opc-panel: rgba(18,18,20,.78);
}

html { scroll-behavior: smooth; }
body { margin: 0; text-rendering: optimizeLegibility; }
a { text-underline-offset: .18em; }

.opc-app-shell { min-height: 100vh; padding-bottom: calc(76px + var(--opc-safe-bottom)); }
.home .opc-app-shell { padding-bottom: 0; }
.home .opc-footer { display: none; }
.opc-topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,11,13,.88); color: #fff;
  border-bottom: 1px solid var(--opc-border);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.opc-topbar__inner {
  max-width: 1440px; min-height: 68px; margin: auto; padding: 0 24px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
}
.opc-brand { color: #fff; font-size: clamp(1.25rem,2vw,2rem); font-weight: 900; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.opc-city-switcher { display: flex; justify-content: center; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.opc-city-switcher::-webkit-scrollbar { display: none; }
.opc-city-switcher a {
  padding: 9px 13px; border-radius: 999px; color: rgba(255,255,255,.66);
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-decoration: none; white-space: nowrap;
}
.opc-city-switcher a:hover, .opc-city-switcher a[aria-current="true"] { background: #fff; color: #0b0b0d; }
.opc-topbar__actions { display: flex; align-items: center; gap: 10px; }
.opc-icon-link { color: #fff; text-decoration: none; font-size: 1.2rem; line-height: 1; }

.opc-hero {
  position: relative; isolation: isolate; min-height: min(76vh,860px); overflow: hidden;
  display: flex; align-items: flex-end; border-radius: 0 0 34px 34px; color: #fff; background: #111;
}
.opc-cover {
  position: relative; isolation: isolate; min-height: calc(100svh - 68px);
  display: grid; place-items: center; overflow: hidden; color: #fff; background: #120f0d;
}
.opc-cover::before {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background: url('assets/images/edition-mosaic.png') center 18% / cover no-repeat;
  transform: scale(1.015);
}
.opc-cover::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg,rgba(0,0,0,.12),rgba(0,0,0,.22) 42%,rgba(0,0,0,.9));
}
.opc-cover__panel {
  width: min(880px,calc(100% - 32px)); margin-top: auto; padding: 44px 0 max(112px,calc(88px + var(--opc-safe-bottom)));
  text-align: center;
}
.opc-cover__edition { margin-bottom: 14px; font-size: .72rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.opc-cover h1 { margin: 0 0 10px; color: #fff; font-size: clamp(2.35rem,7vw,6rem); line-height: .9; letter-spacing: -.055em; text-transform: uppercase; }
.opc-cover__claim { margin: 0 auto 24px; font-size: clamp(.95rem,2vw,1.25rem); font-weight: 700; }
.opc-cover-search { max-width: 760px; margin: 0 auto; padding: 9px; border-radius: 999px; background: rgba(255,255,255,.96); box-shadow: 0 18px 55px rgba(0,0,0,.3); }
.opc-cover-search .wp-block-search__inside-wrapper { border: 0 !important; padding: 0 !important; }
.opc-cover-search input { min-height: 56px; padding: 0 22px !important; border: 0 !important; border-radius: 999px !important; background: transparent; color: #0b0b0d; font-size: 1rem; }
.opc-cover-search button { min-width: 112px; border: 0; border-radius: 999px !important; background: #0b0b0d !important; color: #fff !important; font-weight: 900; }
.opc-cover__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.opc-cover__actions a { min-height: 44px; padding: 0 17px; display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; background: rgba(0,0,0,.38); color: #fff; font-size: .75rem; font-weight: 900; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; backdrop-filter: blur(12px); }
.opc-cover__actions a:first-child { background: #fff; color: #0b0b0d; }
.opc-hero::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg,rgba(0,0,0,.05) 25%,rgba(0,0,0,.86) 100%); }
.opc-hero img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; }
.opc-hero__content { width:min(1180px,calc(100% - 40px)); margin:0 auto; padding:clamp(40px,8vw,100px) 0; }
.opc-kicker { font-size:.75rem; font-weight:900; letter-spacing:.16em; text-transform:uppercase; }
.opc-hero h1 { max-width:900px; margin:.25em 0 .16em; color:#fff; font-size:clamp(3rem,9vw,8.5rem); line-height:.82; letter-spacing:-.065em; text-transform:uppercase; }
.opc-hero p { max-width:680px; font-size:clamp(1rem,2vw,1.35rem); }
.opc-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:26px; }
.opc-button { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:0 20px; border-radius:999px; background:#fff; color:#0b0b0d; font-weight:800; text-decoration:none; }
.opc-button--ghost { border:1px solid rgba(255,255,255,.55); background:rgba(0,0,0,.25); color:#fff; backdrop-filter:blur(10px); }

.opc-search-panel { position:relative; z-index:3; width:min(980px,calc(100% - 40px)); margin:-32px auto 44px; padding:12px; border:1px solid rgba(0,0,0,.08); border-radius:999px; background:#fff; box-shadow:0 18px 55px rgba(0,0,0,.15); }
.opc-search-panel .wp-block-search__inside-wrapper { border:0 !important; padding:0 !important; }
.opc-search-panel input { min-height:54px; padding:0 22px !important; border:0 !important; border-radius:999px !important; font-size:1rem; }
.opc-search-panel button { min-width:110px; border:0; border-radius:999px !important; background:#0b0b0d !important; color:#fff !important; font-weight:800; }

.opc-section { width:min(1280px,calc(100% - 40px)); margin:0 auto 64px; }
.opc-section-title { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:20px; }
.opc-section-title h2 { margin:0; font-size:clamp(1.9rem,4vw,3.6rem); letter-spacing:-.045em; }
.opc-grid .wp-block-post-template { display:grid; grid-template-columns:repeat(12,1fr); gap:16px; margin:0; }
.opc-grid .wp-block-post { grid-column:span 4; overflow:hidden; border-radius:var(--opc-radius); background:#f0f0f2; }
.opc-grid .wp-block-post:first-child { grid-column:span 8; }
.opc-grid .wp-block-post-featured-image { margin:0; aspect-ratio:4/3; overflow:hidden; }
.opc-grid .wp-block-post-featured-image img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.opc-grid .wp-block-post:hover img { transform:scale(1.025); }
.opc-card-body { padding:20px; }
.opc-grid .wp-block-post-title { margin:.2em 0; font-size:clamp(1.25rem,2.5vw,2.1rem); line-height:1; letter-spacing:-.035em; }
.opc-grid .wp-block-post-title a { color:inherit; text-decoration:none; }

.opc-quick-actions { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.opc-quick-action { min-height:112px; padding:20px; display:flex; flex-direction:column; justify-content:space-between; border-radius:22px; background:#0b0b0d; color:#fff; text-decoration:none; font-weight:800; }
.opc-quick-action span:first-child { font-size:1.6rem; }
.opc-quick-action small { color:rgba(255,255,255,.62); }

.opc-bottom-nav { position:fixed; left:0; right:0; bottom:0; z-index:120; display:none; padding-bottom:var(--opc-safe-bottom); background:rgba(11,11,13,.94); border-top:1px solid var(--opc-border); backdrop-filter:blur(18px); }
.opc-bottom-nav__inner { display:grid; grid-template-columns:repeat(5,1fr); }
.opc-bottom-nav a { min-height:64px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; color:rgba(255,255,255,.72); font-size:.66rem; font-weight:800; letter-spacing:.04em; text-decoration:none; text-transform:uppercase; }
.opc-bottom-nav b { font-size:1.15rem; color:#fff; }

.opc-footer { padding:56px 24px 110px; background:#0b0b0d; color:#fff; }
.opc-footer a { color:#fff; }

.woocommerce ul.products li.product { overflow:hidden; border-radius:22px; }
.woocommerce ul.products li.product img { border-radius:22px; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { border-radius:999px !important; background:#0b0b0d !important; color:#fff !important; }

@media (max-width: 820px) {
  .opc-topbar__inner { min-height:60px; padding:0 16px; grid-template-columns:auto 1fr auto; gap:10px; }
  .opc-brand { font-size:1.05rem; }
  .opc-city-switcher { justify-content:flex-start; }
  .opc-city-switcher a { padding:8px 9px; font-size:.61rem; }
  .opc-icon-link--search { display:none; }
  .opc-hero { min-height:68vh; border-radius:0 0 24px 24px; }
  .opc-hero h1 { font-size:clamp(3.2rem,17vw,6rem); }
  .opc-search-panel { margin-top:-24px; padding:8px; }
  .opc-search-panel button { min-width:auto; padding:0 16px; }
  .opc-grid .wp-block-post-template { grid-template-columns:1fr; }
  .opc-grid .wp-block-post, .opc-grid .wp-block-post:first-child { grid-column:auto; }
  .opc-quick-actions { grid-template-columns:repeat(2,1fr); }
  .opc-bottom-nav { display:block; }
  .opc-cover { min-height: calc(100svh - 60px); align-items: end; }
  .opc-cover::before { background-position: center top; }
  .opc-cover__panel { padding-bottom: calc(86px + var(--opc-safe-bottom)); }
  .opc-cover h1 { font-size: clamp(2.25rem,12vw,4.2rem); }
  .opc-cover__claim { max-width: 310px; }
  .opc-cover-search { padding: 7px; }
  .opc-cover-search input { min-height: 52px; padding: 0 15px !important; font-size: .9rem; }
  .opc-cover-search button { min-width: auto; padding: 0 15px; }
  .opc-cover__actions a { font-size: .67rem; padding: 0 13px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } * { transition:none !important; } }
