/* Web CMS — CMS cards + layout preview */

.wk-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(15, 43, 32, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 43, 32, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wk-card:hover,
.wk-card:focus-within {
  border-color: rgba(5, 150, 105, 0.35);
  box-shadow: 0 4px 12px rgba(15, 43, 32, 0.08);
}

.wk-card--link {
  color: inherit;
}

.wk-card__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  background: linear-gradient(145deg, #f0f7f4 0%, #e8f0ec 100%);
  color: #059669;
  font-size: 1.75rem;
}

.wk-card__body {
  padding: 0.85rem 1rem 1rem;
}

.wk-preview {
  min-height: 120px;
  overflow: auto;
}

.wk-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  background: #e8eee9;
  color: #64748b;
  font-size: 0.85rem;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.wk-slideshow__track {
  position: relative;
}

.wk-slideshow__slide {
  display: none;
  margin: 0;
}

.wk-slideshow__slide.is-active {
  display: block;
}

.wk-slideshow__slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.wk-gallery__grid {
  display: grid;
  grid-template-columns: repeat(var(--wk-cols, 3), 1fr);
  gap: var(--wk-gap, 12px);
}

.wk-gallery__item {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
}

.wk-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.wk-gallery__cap {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.wk-parallax {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: center;
}

.wk-parallax__bg {
  position: absolute;
  inset: -20% 0;
  background-image: var(--wk-bg, none);
  background-size: cover;
  background-position: center;
  background-color: #0f2b20;
  transform: translateY(calc(var(--wk-intensity, 0.35) * -10%));
}

.wk-parallax__content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 2rem 1rem;
}

.wk-video {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  align-items: center;
}

.wk-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wk-video__overlay {
  position: absolute;
  inset: 0;
  background: var(--wk-overlay, rgba(15, 43, 32, 0.45));
}

.wk-video__content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 2rem 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .wk-parallax__bg {
    transform: none !important;
  }
  .wk-block {
    animation: none !important;
    transition: none !important;
  }
}

/* Veřejné vykreslení rozložení */
.ws-layout__row {
  width: 100%;
}
/* Hlavička/patička z modulů — bez extra paddingu layoutu */
.ws-layout__row:has(.site-header),
.ws-layout__row:has(.site-footer),
.ws-layout__row:has(.hero),
.ws-layout__row:has(.ws-hero) {
  background: transparent !important;
  color: inherit !important;
}
.ws-layout__row:has(.site-header) .ws-layout__inner,
.ws-layout__row:has(.site-footer) .ws-layout__inner,
.ws-layout__row:has(.hero) .ws-layout__inner,
.ws-layout__row:has(.ws-hero) .ws-layout__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.ws-layout__row:has(.site-header) .ws-layout__col,
.ws-layout__row:has(.site-footer) .ws-layout__col,
.ws-layout__row:has(.hero) .ws-layout__col,
.ws-layout__row:has(.ws-hero) .ws-layout__col {
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

.ws-layout__inner--container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}
.ws-layout__inner--container-fluid {
  width: 100%;
  padding-inline: 1rem;
  box-sizing: border-box;
}
.ws-layout__inner--none {
  width: 100%;
}
.ws-layout__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: flex-start;
}
.ws-layout__col {
  box-sizing: border-box;
  min-width: 0;
}
.ws-layout__row.is-sticky-top {
  position: sticky;
  top: 0;
  z-index: 40;
}
.ws-layout__row.is-sticky-bottom {
  position: sticky;
  bottom: 0;
  z-index: 40;
}
@media (max-width: 768px) {
  .ws-layout__col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

/* Layout builder preview */
.lb-legacy-layout {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.lb-legacy-row {
  border: 1px dashed rgba(15, 43, 32, 0.18);
  border-radius: 10px;
  padding: 0.5rem;
  background: #f8faf9;
}

.lb-legacy-row__name {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.lb-legacy-row__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.lb-legacy-col {
  background: #fff;
  border: 1px solid rgba(5, 150, 105, 0.25);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  min-height: 56px;
  box-sizing: border-box;
}

.lb-legacy-col__type {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #059669;
  letter-spacing: 0.03em;
}

.lb-legacy-col__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0f2b20;
}

.lb-legacy-col__span {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8;
}

@media (max-width: 576px) {
  .wk-gallery__grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .lb-legacy-col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}
