/*
Theme Name: Pragotron Sbírka
Theme URI:  https://vdtzs.cz
Author:     Sbírka Pragotronů
Description: Vlastní šablona pro katalog sbírky hodin Pragotron se stříbrným čtvercovým ciferníkem Pragotron, skokovým pohybem ručiček po minutách, hierarchickým řazením skupin a upravenou hlavičkou.
Version:    1.34.0
License:    GNU General Public License v2 or later
Text Domain: pragotron-sablona
*/

:root {
  --prg-bg: #111317;
  --prg-surface: #181b21;
  --prg-surface-alt: #21252e;
  --prg-ink: #f4f2ec;
  --prg-muted: #9da4b3;
  --prg-border: rgba(244, 242, 236, 0.13);
  --prg-grid-minor: rgba(244, 242, 236, 0.05);
  --prg-grid-major: rgba(244, 242, 236, 0.11);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--prg-bg);
  background-image:
    linear-gradient(to right, var(--prg-grid-minor) 1px, transparent 1px),
    linear-gradient(to bottom, var(--prg-grid-minor) 1px, transparent 1px),
    linear-gradient(to right, var(--prg-grid-major) 1px, transparent 1px),
    linear-gradient(to bottom, var(--prg-grid-major) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
  color: var(--prg-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.prg-site-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.prg-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.prg-topbar {
  border-bottom: 1px solid var(--prg-border);
  background: rgba(17, 19, 23, 0.88);
  backdrop-filter: blur(8px);
}

.prg-topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.prg-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.prg-brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9da4b3;
}

.prg-brand-name {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.prg-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}

.prg-nav-list a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--prg-muted);
  transition: color 0.15s ease;
}

.prg-nav-list a:hover,
.prg-nav-list .current-menu-item a {
  color: var(--prg-ink);
}

.prg-header {
  padding: 1.5rem 0 1rem;
}

.prg-header-panel {
  background: rgba(24, 27, 33, 0.92);
  border: 1px solid var(--prg-border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 640px) {
  .prg-header-panel {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem 1.1rem;
  }
}

.prg-header-clocks {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1.15rem;
}

/* Stříbrný čtvercový rám + hluboký vnitřní rámeček + bílý ciferník Pragotron */
.prg-header-panel .prg-sq-clock-box,
.prg-sq-clock-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  min-width: 120px;
  max-width: 120px;
  min-height: 120px;
  max-height: 120px;
  padding: 7px;
  margin: 0;
  border-radius: 2px;
  background: linear-gradient(145deg, #cfd3d8 0%, #999ea6 52%, #b5bac1 100%);
  border: 1px solid #dce0e6;
  box-shadow:
    inset 0 0 0 2px #f5f6f8,
    inset 0 0 0 5px #dfe2e7,
    0 8px 20px rgba(0, 0, 0, 0.5);
  flex: 0 0 120px;
}

@media (max-width: 640px) {
  .prg-header-panel .prg-sq-clock-box,
  .prg-sq-clock-box {
    width: 96px;
    height: 96px;
    min-width: 96px;
    max-width: 96px;
    min-height: 96px;
    max-height: 96px;
    flex: 0 0 96px;
    padding: 5px;
  }
}

.prg-header-panel .prg-sq-clock-svg,
svg.prg-sq-clock-svg {
  width: 100%;
  height: 100%;
  display: block;
  shape-rendering: geometricPrecision;
}

.prg-header-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.prg-header-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.25rem, 2.3vw, 1.95rem);
  line-height: 1.2;
}

.prg-header-text {
  margin: 0;
  color: var(--prg-ink);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.35;
}

.prg-main {
  flex: 1;
  padding: 0.5rem 0 3rem;
}

.prg-panel {
  background: rgba(24, 27, 33, 0.9);
  border: 1px solid var(--prg-border);
  border-radius: 14px;
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.5rem;
}

.prg-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.prg-filter-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.prg-menu-tree {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.prg-menu-branch {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}


.prg-menu-branch--has-children {
  padding: 0.35rem 0.5rem 0.45rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(244, 242, 236, 0.08);
}

.prg-menu-subitems {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-left: 1.35rem;
  padding-left: 0.85rem;
  border-left: 2px solid rgba(244, 242, 236, 0.24);
}

.prg-filter-caption {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--prg-muted);
  margin-right: 0.2rem;
}

.prg-pill {
  appearance: none;
  border: 1px solid var(--prg-border);
  background: var(--prg-surface-alt);
  color: var(--prg-ink);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.prg-pill--main {
  border-color: rgba(244, 242, 236, 0.34);
  background: #272c38;
  font-weight: 700;
}

.prg-pill--sub {
  font-size: 0.82rem;
  padding: 0.34rem 0.78rem;
  background: rgba(33, 37, 46, 0.72);
  color: var(--prg-muted);
}

.prg-pill:hover {
  border-color: #9da4b3;
  color: var(--prg-ink);
}

.prg-pill.is-active {
  background: #f4f2ec;
  border-color: #f4f2ec;
  color: #14171c;
}

.prg-input,
.prg-select {
  border: 1px solid var(--prg-border);
  background: var(--prg-surface-alt);
  color: var(--prg-ink);
  border-radius: 8px;
  padding: 0.48rem 0.75rem;
  font-size: 0.9rem;
}

.prg-input {
  min-width: 210px;
  flex: 1 1 200px;
  max-width: 320px;
}

.prg-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

@media (max-width: 980px) {
  .prg-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .prg-cards {
    grid-template-columns: 1fr;
  }
}

.prg-card {
  background: rgba(24, 27, 33, 0.94);
  border: 1px solid var(--prg-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.prg-card:hover {
  transform: translateY(-3px);
  border-color: #9da4b3;
}

.prg-card.is-hidden {
  display: none;
}

.prg-card-thumb {
  aspect-ratio: 4 / 3;
  background: #0d0f13;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem;
}

.prg-card-thumb a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prg-card-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

.prg-card-empty-thumb {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--prg-muted);
  background: radial-gradient(circle at center, #242934 0%, #101216 80%);
}

.prg-card-content {
  padding: 1.1rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.prg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.prg-tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  background: var(--prg-surface-alt);
  color: var(--prg-ink);
}

.prg-tag--type {
  background: rgba(244, 242, 236, 0.12);
  color: var(--prg-ink);
}

.prg-card-title {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  line-height: 1.3;
}

.prg-card-title a {
  text-decoration: none;
}

.prg-card-title a:hover {
  text-decoration: underline;
}

.prg-card-desc {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: var(--prg-muted);
}

.prg-meta-grid {
  margin: 0 0 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--prg-border);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.75rem;
  font-size: 0.82rem;
}

.prg-meta-grid dt {
  color: var(--prg-muted);
}

.prg-meta-grid dd {
  margin: 0.08rem 0 0;
  font-weight: 700;
}

.prg-card-bottom {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--prg-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.prg-card-link {
  color: var(--prg-ink);
  font-weight: 700;
  text-decoration: none;
  margin-left: auto;
}

.prg-article-panel {
  background: rgba(24, 27, 33, 0.94);
  border: 1px solid var(--prg-border);
  border-radius: 14px;
  padding: 1.5rem;
}

.prg-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.25rem;
}

.prg-specs-table th,
.prg-specs-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--prg-border);
}

.prg-specs-table th {
  width: 240px;
  color: var(--prg-muted);
}

.prg-footer {
  border-top: 1px solid var(--prg-border);
  background: rgba(17, 19, 23, 0.9);
  padding: 1.25rem 0;
  font-size: 0.86rem;
  color: var(--prg-muted);
}

.prg-header-text--motto {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  font-family: "Bad Script", Georgia, "Times New Roman", cursive;
  font-style: italic;
  font-weight: 500;
  color: var(--prg-ink);
  letter-spacing: 0.01em;
}

.prg-motto-line {
  display: block;
  line-height: 1.18;
}

.prg-motto-line--1 {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  padding-left: 0.65rem;
}

.prg-motto-line--2 {
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  padding-left: 0;
}

.prg-motto-line--3 {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  padding-left: 1.85rem;
}

@media (max-width: 640px) {
  .prg-motto-line--1 {
    font-size: 1.12rem;
    padding-left: 0.35rem;
  }
  .prg-motto-line--2 {
    font-size: 1.02rem;
    padding-left: 0;
  }
  .prg-motto-line--3 {
    font-size: 1.12rem;
    padding-left: 1.15rem;
  }
}
