﻿/* Fraňek — web-admin + API sekce (lokální kopie stylů, nezasahuje do jiných dem) */
.hidden { display: none !important; }
.btn-sm { padding: 0.45rem 0.75rem; font-size: 0.85rem; }
.btn-secondary { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn-icon { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--muted); }
.zavreno { color: var(--muted); font-style: italic; }
.nav-logo-img { display: block; max-height: 48px; max-width: 160px; width: auto; height: auto; object-fit: contain; }
.gallery-section { background: var(--paper); }
.gallery-empty { text-align: center; color: var(--muted); padding: 2rem; }

/* Personál — 3 karty vedle sebe, fotka na šířku karty */
.team-section { background: #fff; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.team-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; position: relative; min-width: 0;
}
.team-card::before { content: none; }
.personel-edit-card {
  border: 2px solid #3a4550;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  background: #eef1f4;
  box-shadow: none;
}
.personel-edit-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.personel-edit-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.p-foto-preview { margin: 0.5rem 0; max-height: 120px; overflow: hidden; }
.p-foto-preview img { max-height: 120px; width: auto; border-radius: 8px; }
.admin-rozvrh { font-size: 0.8rem; margin: 0.5rem 0; width: 100%; border-collapse: collapse; }
.admin-rozvrh th, .admin-rozvrh td { border: 1px solid var(--line); padding: 0.35rem 0.5rem; text-align: left; }
.admin-rozvrh input[type="time"] { width: 100%; padding: 0.25rem; border: 1px solid var(--line); border-radius: 6px; font-family: inherit; }

/* Ceník — dense technical spec sheet */
.pricing { background: var(--paper); }
.price-sheet { border: 1px solid var(--line); }
.price-sheet-head {
  display: flex; justify-content: space-between;
  padding: 0.7rem 1.2rem; background: var(--steel); color: #141414;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
}
.price-list { display: flex; flex-direction: column; }
.price-card {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 1.2rem; border-bottom: 1px dashed var(--line);
  background: #fff;
}
.price-card:nth-child(even) { background: #f3f8fb; }
.price-card:hover { background: #e8f3f7; }
.price-name { font-size: 0.95rem; font-weight: 500; }
.price-name::before { content: "▸ "; color: var(--steel); }
.price-value { font-family: var(--mono); font-size: 1.05rem; color: var(--steel); font-weight: 700; white-space: nowrap; }

/* Novinky — workshop bulletin tickets */
.news { background: #fff; }
.news-list { display: flex; flex-direction: column; gap: 1.25rem; max-width: 900px; margin: 0 auto; }
.news-card {
  display: flex; flex-direction: row; align-items: stretch; gap: 1.5rem;
  background: var(--paper); border: 1px solid var(--line); position: relative;
  padding: 1.4rem 1.4rem 1.4rem 1.7rem;
}
.news-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: repeating-linear-gradient(180deg, var(--steel) 0 8px, transparent 8px 16px);
}
.news-card-body { flex: 1; min-width: 0; }
.news-card time { font-family: var(--mono); font-size: 0.72rem; color: var(--steel); font-weight: 700; letter-spacing: 0.08em; }
.news-card h3 { font-family: var(--font); font-size: 1.1rem; text-transform: uppercase; margin: 0.5rem 0; }
.news-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; }
.news-card-media { flex-shrink: 0; width: 220px; margin: 0; }
.news-card-media img { width: 100%; height: auto; display: block; object-fit: contain; filter: grayscale(0.3); }
.news-card-media-zoom {
  cursor: zoom-in;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-card-media-zoom:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(6, 37, 54, 0.12);
}
.news-card-media-zoom:focus-visible {
  outline: 2px solid var(--teal, #6fd1d7);
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .news-card { flex-direction: column; align-items: stretch; padding-left: 1.4rem; }
  .news-card-media { width: 100%; max-width: 320px; margin: 0 auto; order: -1; }
}

.novinka-img-preview { min-height: 90px; max-height: 160px; border-radius: 8px; overflow: hidden; background: var(--paper); margin: 0.5rem 0; display: flex; align-items: center; justify-content: center; }
.novinka-img-preview img { max-width: 100%; max-height: 160px; width: auto; height: auto; object-fit: contain; }
.novinka-img-preview .placeholder { font-size: 0.8rem; color: var(--muted); }
.novinka-img-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.btn-remove-novinka-img { background: #fee; color: #c0392b; border: none; padding: 0.4rem 0.7rem; border-radius: 6px; font-size: 0.8rem; cursor: pointer; }

.contact-list strong { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-family: var(--mono); }
.hours-card {
  background: #fff; padding: 1.8rem; border: 1px solid var(--steel);
}
.hours-card h3 { font-family: var(--font); font-size: 1.2rem; text-transform: uppercase; margin-bottom: 0.4rem; color: var(--steel); }
.hours-card table { width: 100%; font-family: var(--mono); }
.hours-card td { padding: 0.5rem 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.hours-card td:last-child { text-align: right; font-weight: 600; }
.zavreno { color: var(--muted); font-style: italic; }
.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 50vh; color: var(--muted); gap: 1rem; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--line); border-top-color: var(--steel); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.9); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.lightbox img { max-height: 90vh; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* Admin - same structure, themed */
.admin-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--steel); color: #fff; border: none;
  font-size: 1.3rem; cursor: pointer;
  box-shadow: 0 4px 20px rgba(61,122,110,0.4);
}
.admin-panel { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.4); }
.admin-panel.open { display: flex; justify-content: flex-end; }
.admin-drawer {
  width: 100%; max-width: 440px; height: 100%; background: #fff;
  display: flex; flex-direction: column; animation: slideIn 0.3s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.admin-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.admin-header h2 { font-family: var(--font); font-size: 1.4rem; }
.admin-body { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem; }
.admin-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--line); }
.admin-hint { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.admin-hint.success { color: var(--steel); }
.admin-body .checkbox { flex-direction: row !important; align-items: center; color: var(--ink); margin: 0.75rem 0; }
.admin-body .checkbox input { width: auto; margin-right: 0.5rem; accent-color: var(--steel); }
.admin-body label { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 0.75rem; font-weight: 600; }
.admin-body input, .admin-body textarea {
  width: 100%; padding: 0.6rem 0.75rem; margin-top: 0.25rem;
  border: 1px solid var(--line); border-radius: 10px; font-family: inherit;
}
.admin-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem; }
.admin-tabs .tab {
  padding: 0.35rem 0.7rem; border-radius: 8px; border: 1px solid var(--line);
  background: transparent; font-size: 0.78rem; cursor: pointer; font-family: inherit;
}
.admin-tabs .tab.active { background: var(--steel); color: #fff; border-color: var(--steel); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.upload-box { margin-bottom: 1.5rem; }
.upload-box h4 { font-size: 0.9rem; margin-bottom: 0.75rem; }
.hero-preview { height: 120px; border-radius: 10px; overflow: hidden; background: var(--paper); margin-bottom: 0.75rem; display: flex; align-items: center; justify-content: center; }
.hero-preview img { width: 100%; height: 100%; object-fit: cover; }
.btn-upload { cursor: pointer; display: inline-block; }
.bunny-hint { font-size: 0.8rem; color: var(--muted); margin-top: 0.75rem; }
.gallery-edit { display: grid; gap: 0.75rem; margin-bottom: 0.75rem; }
.gallery-edit-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 0.5rem; align-items: center; padding: 0.5rem; border: 1px solid var(--line); border-radius: 10px; }
.gallery-edit-item img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; }
.btn-delete-img { background: #fee; color: #c0392b; border: none; padding: 0.35rem 0.6rem; border-radius: 6px; font-size: 0.75rem; cursor: pointer; }
.edit-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.edit-row input { flex: 1; min-width: 80px; }
.edit-block {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border: 2px solid #3a4550;
  border-radius: 12px;
  background: #eef1f4;
  box-shadow: none;
}
.edit-block .edit-row:last-of-type { border-bottom: none; }
.cenik-img-actions,
.novinka-img-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid #9aa3ad;
}
.status-msg { margin-top: 0.75rem; font-size: 0.85rem; text-align: center; }
.status-msg.error { color: #c0392b; }
.status-msg.success { color: #27ae60; }

.price-card-has-image {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.price-media {
  width: 144px;
  min-width: 144px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.05);
}

.price-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.price-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.cenik-img-preview {
  margin-top: 0.5rem;
  max-width: 180px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--border, #ddd);
  background: rgba(0, 0, 0, 0.03);
}

.cenik-img-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cenik-img-preview .placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.8rem;
  color: var(--muted, #666);
}

.cenik-img-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.nav-logo-img {
  display: block;
  max-height: 48px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.color-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.color-row input[type="color"] {
  width: 48px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(128,128,128,0.35);
  background: transparent;
  cursor: pointer;
}

.color-row input[type="text"] {
  flex: 1;
}

.site-banner {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1.1rem;
  background: color-mix(in srgb, var(--gold, #c9a962) 18%, var(--surface, #111));
  border: 1px solid var(--line, rgba(201,169,98,0.25));
  border-left: 3px solid var(--gold, #c9a962);
  color: var(--text, #f2ece4);
  font-size: 0.95rem;
  line-height: 1.45;
}

.admin-sep {
  margin: 1.25rem 0 1rem;
  border: 0;
  border-top: 1px solid var(--line, rgba(255,255,255,0.12));
}
.admin-sub {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold, #c9a962);
}

.role-pill {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
  color: #f3f8fb;
  background: var(--gold, #c9a962);
  border: 1px solid var(--gold, #c9a962);
}


/* Fraňek light-theme overrides for admin shell */
.admin-fab {
  background: var(--navy, #093c5d);
  color: #fff;
  box-shadow: 0 8px 24px rgba(9, 60, 93, 0.35);
}
.admin-drawer {
  background: #fff;
  color: var(--ink, #062536);
  box-shadow: -12px 0 40px rgba(6, 37, 54, 0.18);
}
.admin-header h2 { color: var(--navy, #093c5d); font-family: var(--font); }
.admin-tabs .tab.active { background: var(--navy, #093c5d); border-color: var(--navy, #093c5d); }
.admin-body input, .admin-body textarea { background: #fff; color: var(--ink, #062536); }
.hours-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line, rgba(9,60,93,0.14));
  border-radius: 14px;
  padding: 1.25rem;
  margin-top: 1.25rem;
}
.hours-card h3 { color: var(--navy, #093c5d); font-family: var(--font); text-transform: none; margin: 0 0 0.5rem; }
.gallery {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.gallery.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.gallery .gallery-item,
.gallery-grid .gallery-item,
.gallery-page .gallery-item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  background: #fff;
  min-width: 0;
}
.gallery .gallery-item img,
.gallery-grid .gallery-item img,
.gallery-page .gallery-item img {
  width: 100%;
  /* ~50 % vyšší náhled než 16/9 (jen Fraňek) */
  aspect-ratio: 16 / 13.5;
  object-fit: cover;
  display: block;
}
.gallery .gallery-item figcaption,
.gallery-grid .gallery-item figcaption,
.gallery-page .gallery-item figcaption {
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.gallery.gallery-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}
.gallery-viewport {
  overflow: hidden;
  min-width: 0;
  width: 100%;
  border-radius: 14px;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.gallery-viewport:active { cursor: grabbing; }
.gallery-track {
  display: flex;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.gallery-page {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 1rem;
  box-sizing: border-box;
}
.gallery-nav {
  position: relative;
  z-index: 3;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(6, 37, 54, 0.12);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.gallery-nav:hover { background: var(--paper); }
.gallery-dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.45rem;
  position: relative;
  z-index: 3;
}
.gallery-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  border: none;
  background: rgba(9, 60, 93, 0.25);
  cursor: pointer;
  padding: 0;
  touch-action: manipulation;
}
.gallery-dot.is-active { background: var(--navy); }

@media (max-width: 880px) {
  .gallery,
  .gallery.gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .gallery,
  .gallery.gallery-grid { grid-template-columns: 1fr; }
  .gallery.gallery-carousel {
    display: block;
    padding: 0 0.15rem;
  }
  .gallery-viewport {
    width: 100%;
  }
  .gallery-nav {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 2.8rem;
    height: 2.8rem;
    background: rgba(255, 255, 255, 0.95);
  }
  .gallery-prev { left: 0.2rem; }
  .gallery-next { right: 0.2rem; }
  .gallery-dots {
    display: flex;
    margin-top: 0.75rem;
  }
  .gallery-dot {
    width: 0.85rem;
    height: 0.85rem;
  }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 36px rgba(6, 37, 54, 0.06);
  min-width: 0;
}
.team-card::before { display: none; }
.team-head {
  padding: 1rem 1.1rem 0.7rem;
}
.team-head h3 {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--navy);
  text-transform: none;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.team-role {
  margin: 0.3rem 0 0;
  font-family: var(--mono);
  color: var(--steel);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.team-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e8f3f7;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy), var(--steel));
}
.team-below {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
  padding: 0.95rem 1.1rem 1.15rem;
  align-items: start;
  flex: 1;
}
.team-desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}
.team-desc-empty { min-height: 0; }
.team-hours {
  width: 100%;
  font-size: 0.75rem;
  border-collapse: collapse;
  font-family: var(--mono);
}
.team-hours td {
  padding: 0.28rem 0;
  border-bottom: 1px solid var(--line);
}
.team-hours td:first-child { color: var(--muted); width: 42%; }
.team-hours td:last-child { text-align: right; font-weight: 600; color: var(--navy); }

@media (max-width: 980px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-below { grid-template-columns: 1fr; }
}
.price-card:nth-child(even) { background: #f3f8fb !important; }
.price-card:hover { background: #e8f3f7 !important; }
.price-name::before { color: var(--steel); }
.price-value { color: var(--navy); }
.news-card { background: #fff; border-radius: 14px; }
.news-card::before { background: var(--teal); }
.news-card h3 { text-transform: none; color: var(--navy); }
.creator-bar {
  --creator-bar-bg: #062536;
  --creator-bar-border: rgba(255,255,255,0.12);
  --creator-bar-muted: rgba(244,251,255,0.7);
}
.site-banner {
  margin: 0;
  padding: 0.85rem 1.1rem;
  background: rgba(111, 209, 215, 0.18);
  border-bottom: 1px solid var(--line);
  color: var(--navy);
}
