/* ===================================================================
   /funkce – Prohlídka administrace
   Vizuály "jak vypadá administrace": browser-window mockup s reálnou
   skořápkou adminu (sidebar dle ProjectNavigationCatalog) a dvěma
   obrazovkami obsahu – Přehled a Recenze. Plus mapa administrace
   a showcase řádky (text + obrazovka).

   Tokeny dědíme z marketing-v7.css (var(--rz-*)).
   =================================================================== */

/* ===================================================================
   Browser-window mockup (vlastní, nezávislý na hero-stage.css)
   =================================================================== */
.adm-browser {
  position: relative;
  background: var(--rz-white);
  border: 1px solid var(--rz-border-soft);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(15, 26, 46, 0.05), 0 28px 60px rgba(15, 26, 46, 0.14);
  isolation: isolate;
}
.adm-browser__chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  background: var(--rz-bg-alt);
  border-bottom: 1px solid rgba(15, 26, 46, 0.06);
}
.adm-browser__dots {
  display: inline-flex;
  gap: 7px;
  flex-shrink: 0;
}
.adm-browser__dots i {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(15, 26, 46, 0.16);
}
.adm-browser__dots i:nth-child(1) { background: #ff5f57; }
.adm-browser__dots i:nth-child(2) { background: #febc2e; }
.adm-browser__dots i:nth-child(3) { background: #28c840; }
.adm-browser__url {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--rz-white);
  border: 1px solid rgba(15, 26, 46, 0.07);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rz-text-muted);
}
.adm-browser__url svg {
  width: 12px;
  height: 12px;
  color: var(--rz-green);
  flex-shrink: 0;
}

/* ===================================================================
   App shell – sidebar + main
   =================================================================== */
/* Admin mockup palette – zrcadlí reálné admin tokeny (design/tokens.css):
   světlý theme, modrý akcent #0052ff, Inter, slate text. */
.adm {
  --adm-accent: #0052ff;
  --adm-ink: #0f172a;
  --adm-muted: #64748b;
  --adm-border: #e2e8f0;
  --adm-card: #ffffff;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px;
  background: #fafafa;
  padding: 14px;
  min-height: 440px;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--adm-ink);
}

/* ---------- Sidebar (bílá plovoucí karta) ---------- */
.adm-side {
  background: var(--adm-card);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.adm-side__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 6px 12px;
  border-bottom: 1px solid var(--adm-border);
}
.adm-side__mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--adm-card);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.adm-side__mark img { width: 19px; height: 19px; display: block; }
.adm-side__brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.adm-side__brand-text strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--adm-ink);
}
.adm-side__brand-text small {
  font-size: 8.5px;
  color: var(--adm-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.adm-side__group { display: flex; flex-direction: column; gap: 2px; }
.adm-side__group-title {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--adm-muted);
  padding: 7px 8px 3px;
}
.adm-side__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 7px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--adm-ink);
}
.adm-side__ico {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: var(--adm-card);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--adm-muted);
}
.adm-side__ico svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.adm-side__label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adm-side__item--active {
  background: var(--adm-card);
  border-color: rgba(0, 82, 255, 0.24);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  font-weight: 700;
}
.adm-side__item--active .adm-side__ico {
  background: var(--adm-accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 82, 255, 0.25);
}
.adm-side__badge {
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 700;
  background: #eef2ff;
  color: var(--adm-accent);
  border-radius: 999px;
  padding: 1px 6px;
  line-height: 1.5;
}

/* ---------- Main panel ---------- */
.adm-main {
  padding: 6px 4px 6px 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 0;
}
.adm-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.adm-top__title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--adm-ink);
}
.adm-top__title small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--adm-muted);
  margin-top: 2px;
}
.adm-top__spacer { flex: 1; }
.adm-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--adm-muted);
  background: var(--adm-card);
  border: 1px solid var(--adm-border);
  border-radius: 999px;
  padding: 5px 11px;
}
.adm-pill svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.adm-top__avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--adm-accent), #4d7cff);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- KPI row ---------- */
.adm-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.adm-kpi {
  background: var(--adm-card);
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  padding: 11px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.adm-kpi__label {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--adm-muted);
}
.adm-kpi__value {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--adm-ink);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.adm-kpi__value .adm-star { color: #f59e0b; font-size: 15px; }
.adm-kpi__delta {
  font-size: 10.5px;
  font-weight: 700;
  color: #16a34a;
}
.adm-kpi__delta--amber { color: #d97706; }

/* ---------- Overview lower grid (chart + latest reviews) ---------- */
.adm-grid2 {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 12px;
}
.adm-card {
  background: var(--adm-card);
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  padding: 13px 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.adm-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.adm-card__title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--adm-ink);
}
.adm-card__link {
  font-size: 11px;
  font-weight: 600;
  color: var(--adm-accent);
}
.adm-chart { width: 100%; height: 92px; display: block; }

/* ---------- Latest reviews mini-rows ---------- */
.adm-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #eef2f6;
}
.adm-mini:first-of-type { border-top: 0; }
.adm-mini__avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.adm-mini__body { min-width: 0; flex: 1; }
.adm-mini__name {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}
.adm-mini__src {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 500;
  color: #64748b;
  margin-top: 1px;
}
.adm-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex-shrink: 0;
}
.adm-dot--google { background: #1a73e8; }
.adm-dot--heureka { background: #6c2bd9; }
.adm-dot--seznam { background: #e8344e; }
.adm-dot--form { background: #16a34a; }
.adm-mini__stars { color: #f59e0b; font-size: 12px; letter-spacing: 1px; flex-shrink: 0; }

/* ---------- Status pills ---------- */
.adm-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.adm-status svg { width: 9px; height: 9px; stroke: currentColor; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.adm-status--ok { background: #dcfce7; color: #15803d; }
.adm-status--wait { background: #fef3c7; color: #b45309; }
.adm-status--flag { background: #fee2e2; color: #dc2626; }

/* ===================================================================
   Reviews screen – table
   =================================================================== */
.adm-filters {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.adm-filter {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 5px 11px;
}
.adm-filter--active {
  background: #0052ff;
  color: #fff;
  border-color: #0052ff;
}
.adm-filter__count {
  font-weight: 700;
  margin-left: 4px;
  opacity: 0.7;
}
.adm-search {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 5px 12px;
  min-width: 130px;
}
.adm-search svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.adm-table {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.adm-trow {
  display: grid;
  /* minmax(0, …fr) + pevný poslední sloupec = každý řádek spočítá stejné
     šířky sloupců, takže hlavička i data sedí na jedné ose (jinak si každý
     řádek jako samostatný grid dimenzuje sloupce podle svého obsahu). */
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 64px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid #eef2f6;
}
.adm-trow:first-child { border-top: 0; }
.adm-trow--head {
  background: #f8fafc;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  padding: 8px 14px;
}
.adm-trow__author { display: flex; align-items: center; gap: 9px; min-width: 0; }
.adm-trow__name { font-size: 12px; font-weight: 700; color: #0f172a; }
.adm-trow__name small { display: block; font-size: 10px; font-weight: 500; color: #64748b; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-src {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: #0f172a;
}
.adm-trow__stars { color: #f59e0b; font-size: 12px; letter-spacing: 1px; }
.adm-trow__actions { display: inline-flex; gap: 5px; justify-self: end; }
.adm-iconbtn {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}
.adm-iconbtn svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.adm-iconbtn--ok { border-color: #16a34a; color: #16a34a; background: #dcfce7; }
.adm-iconbtn--no { color: #dc2626; }

/* ===================================================================
   Mapa administrace – grid kopírující reálné menu
   =================================================================== */
.adm-map {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.adm-band__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rz-green);
  margin-bottom: 14px;
}
.adm-band__label::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--rz-green);
}
.adm-band__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.adm-card {
  background: var(--rz-white);
  border: 1px solid var(--rz-border);
  border-radius: var(--rz-radius);
  padding: 22px 20px;
  box-shadow: var(--rz-shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.adm-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--rz-shadow-card);
  border-color: var(--rz-green-2);
}
.adm-card__ico {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--rz-green-light);
  color: var(--rz-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.adm-card__ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.adm-card h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--rz-text);
  margin: 0 0 5px;
}
/* Specificita musí přebít bootstrap4-scoped `body.landing-template p`
   (0,1,2), které by jinak vnutilo font-size:18px. */
.adm-map .adm-card p {
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--rz-text-muted);
  margin: 0;
}

/* CTA dlaždice – žlutá, vyplní volné místo v posledním pásu */
.adm-card--cta {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: linear-gradient(150deg, var(--rz-amber) 0%, var(--rz-amber-2) 100%);
  border-color: transparent;
  box-shadow: 0 2px 6px rgba(255, 159, 28, 0.18), 0 14px 30px rgba(255, 159, 28, 0.22);
  position: relative;
  overflow: hidden;
}
.adm-card--cta::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  pointer-events: none;
}
.adm-card--cta:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(255, 159, 28, 0.24), 0 20px 40px rgba(255, 159, 28, 0.3);
}
.adm-card--cta .adm-card__ico {
  background: rgba(15, 26, 46, 0.12);
  color: var(--rz-bg-dark);
  position: relative;
  z-index: 1;
}
.adm-card--cta h4 {
  position: relative;
  z-index: 1;
  color: var(--rz-bg-dark);
}
.adm-map .adm-card--cta p {
  position: relative;
  z-index: 1;
  color: rgba(15, 26, 46, 0.72);
}
.adm-card__cta-link {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 800;
  color: var(--rz-bg-dark);
  position: relative;
  z-index: 1;
}
.adm-card__cta-link svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s ease;
}
.adm-card--cta:hover .adm-card__cta-link svg { transform: translateX(4px); }

/* ===================================================================
   Tour showcase – text vedle obrazovky
   =================================================================== */
.tour {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 40px;
  align-items: center;
}
.tour--flip .tour__copy { order: 2; }
.tour--flip .tour__visual { order: 1; }
.tour__overline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rz-green);
  margin-bottom: 14px;
}
.tour__overline::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--rz-green);
}
.tour__copy h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--rz-text);
  margin: 0 0 12px;
}
.tour__copy > p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--rz-text-muted);
  margin: 0 0 18px;
}
.tour__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tour__list li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--rz-text);
}
.tour__list li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--rz-green);
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tour__list li strong { font-weight: 700; }

/* ===================================================================
   Reviews showcase – text v hlavičce, obrazovka přes celou šířku
   (na šířku, aby se 5sloupcová tabulka recenzí vešla bez překryvů)
   =================================================================== */
.rev-showcase {
  display: flex;
  flex-direction: column;
}
.rev-showcase__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 32px;
}
.rev-showcase__intro h3 { margin-bottom: 12px; }
.rev-showcase__intro > p { margin-bottom: 0; }
/* Browser mockup přes celou šířku kontejneru = víc místa pro tabulku */
.adm-browser--wide { width: 100%; }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 960px) {
  .tour { grid-template-columns: 1fr; gap: 28px; }
  .tour--flip .tour__copy { order: 1; }
  .tour--flip .tour__visual { order: 2; }
  .adm-band__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .adm-band__grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .rev-showcase__head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 24px; }
}

@media (max-width: 720px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    align-items: center;
  }
  .adm-side__brand { border-bottom: 0; padding: 0; width: 100%; }
  .adm-side__group { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; }
  .adm-side__group-title { display: none; }
  .adm-side__item { padding: 5px 9px; }
  .adm-side__item:not(.adm-side__item--active) { display: none; }
  .adm-kpis { grid-template-columns: repeat(2, 1fr); }
  .adm-grid2 { grid-template-columns: 1fr; }
  .adm-main { padding: 14px; }
  .adm-trow { grid-template-columns: 1.4fr auto; }
  .adm-trow__src, .adm-trow__stars, .adm-trow--head { display: none; }
  .adm-trow__status-cell { display: none; }
}
