/* ============================================================
   🌐 ZÁKLAD
   ============================================================ */
* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #fff;
  color: #222;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   🔷 POZADÍ (HEXFIELD CANVAS)
   ============================================================ */
#bgCanvas{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: #f8fbff;
  pointer-events: none; /* důležité: neblokuje kliky */
}

/* ============================================================
   🧭 HLAVIČKA A NAVIGACE (NEUPRAVOVAT)
   ============================================================ */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 55px 5%;
  background-color: #ffffff;
  height: 40px;
  
}

.logo {
  width: 200px;
  cursor: pointer;
}

nav {
  display: flex;
  gap: 30px;
  transition: right 0.4s ease;
}

nav a {
  position: relative;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #0099ff;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 3px;
  background-color: #0099ff;
  border-radius: 2px;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a.active {
  color: #0099ff;
}

nav a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

.close-btn {
  display: none;
}

nav.active .close-btn {
  display: block !important;
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 26px;
  cursor: pointer;
  color: #333;
  transition: color 0.3s;
}

nav.active .close-btn:hover {
  color: #0099ff;
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100%;
    background-color: #fff;
    flex-direction: column;
    align-items: start;
    padding: 80px 20px;
    gap: 25px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  nav.active { right: 0; }

  nav a {
    font-size: 1.2rem;
    color: #111;
  }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.page{
  position: relative;
  z-index: 5; /* nad pozadím */
  max-width:1680px;
  margin:0 auto;
  padding:40px 5% 100px;
}

.head{ text-align:center; margin-bottom:30px; }
.head h1{ font-size:48px; margin:0; }
.head p{ color:#444; font-weight:600; }

/* ============================================================
   KARTA
   ============================================================ */
.p-card{
  background:#fff;
  border-radius:22px;
  padding:22px;
  border: 1px solid rgba(0,153,255,0.16);
  box-shadow: 0 20px 50px rgba(0,153,255,0.10);
  transition: transform .30s ease, box-shadow .30s ease, border-color .30s ease;
  overflow: visible;
}

.p-card:hover{
  transform: translateY(-10px);
  border-color: rgba(0,153,255,0.30);
  box-shadow: 0 25px 70px rgba(0,153,255,0.22);
}

.p-card__title{
  font-weight: 800;
  margin-bottom: 14px;
}

/* ============================================================
   FILTRY
   ============================================================ */
.filters{
  display:flex;
  justify-content:space-between;
  gap:15px;
  flex-wrap:wrap;
  margin-bottom:20px;
}

.chips{ display:flex; gap:10px; flex-wrap:wrap; }

.chip{
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(0,153,255,0.18);
  background:#fff;
  font-weight:700;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}

.chip:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,153,255,0.10);
  border-color: rgba(0,153,255,0.30);
}

.chip.active{
  border-color:#0099ff;
  color:#0099ff;
  background: rgba(0,153,255,0.08);
}

.right{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.label{ font-weight:700; }

.search{
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(0,153,255,0.18);
  outline: none;
  transition: box-shadow .2s ease, border-color .2s ease;
}

.search:focus{
  border-color: rgba(0,153,255,0.45);
  box-shadow: 0 0 0 4px rgba(0,153,255,0.12);
}

/* ============================================================
   GRID
   ============================================================ */
.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
  padding: 6px 2px 14px;
}

@media(max-width:900px){ .grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:600px){ .grid{ grid-template-columns:1fr; } }

/* ============================================================
   ITEM + OVERLAY
   ============================================================ */
.item{
  border-radius:18px;
  overflow:hidden;
  border: 1px solid rgba(0,153,255,0.12);
  box-shadow: 0 18px 44px rgba(0,153,255,0.10);
  transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
  background:#fff;
}

.item:hover{
  transform: translateY(-8px);
  border-color: rgba(0,153,255,0.26);
  box-shadow: 0 28px 70px rgba(0,153,255,0.18);
}

.img{ position:relative; cursor: zoom-in; }

.img img{
  width:100%;
  height:240px;
  object-fit:cover;
  transform: scale(1);
  transition: transform .26s ease;
}

.item:hover .img img{
  transform: scale(1.03);
}

.overlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:16px;
  background:linear-gradient(to top, rgba(0,0,0,.75), transparent);
  opacity:0;
  transition: opacity .22s ease, transform .22s ease;
  transform: translateY(6px);
}

.item:hover .overlay{
  opacity:1;
  transform: translateY(0);
}

.overlay .title{ color:#fff; font-weight:900; margin:0; }
.overlay .sub{ color:#eee; margin:4px 0 0; }

.overlay-row{
  display:flex;
  justify-content:space-between;
  margin-top:8px;
  align-items: center;
}

.tag{
  background:rgba(0,153,255,.82);
  color:#fff;
  padding:6px 10px;
  border-radius:999px;
  font-size:.85rem;
  font-weight:800;
}

.cta{
  color:#fff;
  font-weight:800;
  opacity:.95;
}

.badge{
  position:absolute;
  top:12px; right:12px;
  background:#fff;
  border-radius:50%;
  width:30px; height:30px;
  display:grid;
  place-items:center;
  font-weight:900;
  z-index: 3;
}

/* drobnosti */
.state{ margin-bottom:12px; }
.state.error{ color:#b00; font-weight:800; }
.empty{ padding: 12px 0; font-weight:700; color:#444; }

/* ============================================================
   LIGHTBOX (zvětšení obrázku)
   ============================================================ */
body.lb-open{
  overflow: hidden;
}

.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 28, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 22px;
}

.lightbox.is-open{
  display: flex;
}

.lightbox__inner{
  width: min(1100px, 92vw);
  max-height: 86vh;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0,153,255,0.18);
  box-shadow: 0 40px 120px rgba(0,0,0,0.35);
  overflow: hidden;
  position: relative;
}

.lightbox__img{
  width: 100%;
  height: 86vh;
  max-height: 86vh;
  object-fit: contain;
  background: #0b1220;
}

.lightbox__close{
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 2100;
  transition: transform .18s ease, background .18s ease;
}

.lightbox__close:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.18);
}


/* klik na overlay/badge má pořád otevřít lightbox (event jde na .item) */
.overlay, .badge { pointer-events: none; }



/* ============================================================
   🍪 COOKIE BANNER
   ============================================================ */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #ffffff;
  border-top: 1px solid rgba(0, 153, 255, 0.2);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.09);
  padding: 16px 5%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.cookie-banner--visible {
  opacity: 1;
  transform: translateY(0);
}
.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-text {
  flex: 1;
  min-width: 220px;
  font-size: 0.875rem;
  color: #555;
  line-height: 1.6;
  font-family: "Segoe UI", Arial, sans-serif;
}
.cookie-text strong {
  color: #0b2342;
  font-weight: 700;
  margin-right: 4px;
}
.cookie-btns {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}
.cookie-btn {
  display: inline-block;
  padding: 10px 26px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: "Segoe UI", Arial, sans-serif;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.cookie-btn:hover { transform: translateY(-1px); }
.cookie-btn--ok {
  background: #0099ff;
  color: #ffffff;
  border: 2px solid #0099ff;
  box-shadow: 0 4px 14px rgba(0, 153, 255, 0.3);
}
.cookie-btn--ok:hover { background: #007acc; border-color: #007acc; }
.cookie-btn--no {
  background: #ffffff;
  color: #0099ff;
  border: 2px solid rgba(0, 153, 255, 0.45);
}
.cookie-btn--no:hover { background: #f0f7ff; border-color: #0099ff; }
@media (max-width: 640px) {
  .cookie-banner { padding: 14px 4%; }
  .cookie-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cookie-btns { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}