/* ==========================================================
   Virtuální muzeum perzekuce katolické církve
   Custom CSS — uses Tailwind CSS (CDN) for utility classes
   ========================================================== */

/* ---------- Google Fonts: Noto Sans ---------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

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

body {
  font-family: 'Noto Sans', ui-sans-serif, system-ui, sans-serif;
  line-height: 1.55;
}

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

/* ---------- Skip link (accessibility) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 5px;
  z-index: 100000;
  padding: 0.5rem 1.25rem;
  background: #ffffff;
  color: #111111;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.skip-link:focus {
  left: 5px;
  outline: 3px solid #111111;
  outline-offset: 2px;
}

/* ---------- Desktop navigation links ---------- */
.nav-link {
  display: block;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.6rem;
  border-radius: 0.3rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
  letter-spacing: 0.01em;
}
.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  text-decoration: none;
  color: #ffffff;
}
.nav-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
.nav-link--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- Mobile navigation links ---------- */
.mobile-nav-link {
  display: block;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.65rem 0.85rem;
  border-radius: 0.35rem;
  text-decoration: none;
  transition: background-color 0.15s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.mobile-nav-link:last-child {
  border-bottom: none;
}
.mobile-nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: #ffffff;
}
.mobile-nav-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
.mobile-nav-link--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- Mobile menu drawer ---------- */
#mobile-menu {
  /* Transition for smooth open/close */
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease;
  max-height: 0;
  opacity: 0;
}
#mobile-menu.is-open {
  max-height: 600px;
  opacity: 1;
}

/* ---------- Search form ---------- */
.search-form-wrapper {
  position: relative;
}
#search-form {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 200;
  min-width: 240px;
  background: #ffffff;
  border-radius: 0.4rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  /* Transition */
  transform-origin: top right;
  transition: opacity 0.15s ease, transform 0.15s ease;
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}
#search-form.is-open {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
#search-form input[type="search"] {
  width: 100%;
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: #111111;
  background: #ffffff;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  outline: none;
}
#search-form input[type="search"]:focus {
  border-bottom-color: #111111;
}
#search-form button[type="submit"] {
  width: 100%;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 600;
  color: #ffffff;
  background: #111111;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
  text-align: center;
}
#search-form button[type="submit"]:hover {
  background: #333333;
}

/* ---------- Header icon buttons ---------- */
.header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: transparent;
  border: none;
  border-radius: 0.3rem;
  padding: 0.4rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  line-height: 0;
}
.header-icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}
.header-icon-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* ---------- Hamburger / close icon toggle ---------- */

/* Hide the button entirely on desktop (overrides .header-icon-btn display:flex
   which would otherwise win over Tailwind's lg:hidden due to load order) */
@media (min-width: 1024px) {
  #menu-open {
    display: none;
  }
}

#menu-open .icon-close {
  display: none;
}
#menu-open[aria-expanded="true"] .icon-hamburger {
  display: none;
}
#menu-open[aria-expanded="true"] .icon-close {
  display: block;
}

/* ---------- Partner logos ---------- */
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  transition: opacity 0.15s ease;
}
.partner-logo:hover {
  opacity: 0.75;
}
.partner-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

/* ---------- Partner logos in footer ---------- */
.partner-logo--footer {
  background-color: var(--color-gray-900);
  padding: 0.4rem 0.85rem;
}
.partner-logo--footer:hover {
  background-color: var(--color-gray-900);
  opacity: 1;
}

/* ==========================================================
   Hero slideshow section
   ========================================================== */

/* Wrapper — defines the fixed height of the cinematic frame */
.hero-slideshow-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 432px;          /* < 768 px  */
}
@media (min-width: 768px) {
  .hero-slideshow-wrap { height: 576px; }  /* ≥ 768 px  */
}
@media (min-width: 1024px) {
  .hero-slideshow-wrap { height: 675px; }  /* ≥ 1024 px */
}
@media (min-width: 1200px) {
  .hero-slideshow-wrap { height: 810px; }  /* ≥ 1200 px */
}
@media (min-width: 1440px) {
  .hero-slideshow-wrap { height: 1080px; } /* ≥ 1440 px */
}

/* Individual slide — stacked via absolute positioning */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out; /* cross-dissolve duration */
  will-change: opacity;
}
.hero-slide.is-active {
  opacity: 1;
}

/* Semi-transparent dark overlay — dims photos so white text is readable */
.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.60);
  z-index: 1;
}

/* Content layer — sits on top of overlay */
.hero-content-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 100%;
}

/* Text block — left-aligned, prose width */
.hero-text-block {
  max-width: 76ch;
}

/* Main heading */
.hero-heading {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}
@media (min-width: 640px) {
  .hero-heading { font-size: 2rem; }
}
@media (min-width: 1024px) {
  .hero-heading { font-size: 2.5rem; margin-bottom: 1.5rem; }
}

/* Description paragraphs — desktop only (hidden on tablet / mobile) */
.hero-description {
  display: none;
}
@media (min-width: 1024px) {
  .hero-description {
    display: block;
  }
  .hero-description p {
    color: #f3f4f6;
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  }
  .hero-description p:last-child {
    margin-bottom: 0;
  }
}

/* Mobile / tablet: description block below the slideshow (dark background) */
.hero-text-mobile {
  background-color: #111111;
}
.hero-text-mobile p {
  font-size: 1rem;
  line-height: 1.75;
  color: #d1d5db;
  margin-bottom: 1rem;
}
.hero-text-mobile p:last-child {
  margin-bottom: 0;
}
@media (min-width: 1024px) {
  .hero-text-mobile {
    display: none;
  }
}

/* ---------- Logo / image link (used in slovo-k-logu section) ---------- */
.hero-image-link {
  display: block;
  transition: opacity 0.2s ease;
}
.hero-image-link:hover {
  opacity: 0.9;
}

/* ---------- Slovo k logu section ---------- */
.slovo-k-logu-section {
  background-color: #fafaf9; /* stone-50 */
}

/* ---------- Footer ---------- */
footer {
  margin-top: auto;
}

/* ---------- Focus ring (global, accessible) ---------- */
:focus-visible {
  outline-width: 2px;
  outline-style: solid;
}

/* ---------- Smooth scroll ---------- */
html {
  scroll-behavior: smooth;
}

/* ==========================================================
   Page content styles (subpages)
   ========================================================== */

/* Active nav link (current page) */
.nav-link--active {
  background-color: rgba(255, 255, 255, 0.2);
  font-weight: 600;
}
.mobile-nav-link--active {
  background-color: rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

/* Page title (h1 at top of each subpage) */
.page-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
  margin-bottom: 1.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid #e5e7eb;
}
@media (min-width: 640px) {
  .page-title { font-size: 2.4rem; }
}

/* Prose / article body */
.prose-content {
  color: #374151;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 96ch;
}
.prose-content p {
  margin-bottom: 1.1rem;
}
.prose-content p:last-child {
  margin-bottom: 0;
}
.prose-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #d8613c;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}
.prose-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.prose-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
}
.prose-content a {
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose-content a:hover {
  text-decoration: none;
}
.prose-content strong {
  font-weight: 600;
  color: #111827;
}
.prose-content em {
  font-style: italic;
}
.prose-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.prose-content ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.prose-content li {
  margin-bottom: 0.35rem;
}

/* Details / summary accordion */
.details-block {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.details-block summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: #111827;
  background-color: #f9fafb;
  cursor: pointer;
  user-select: none;
  list-style: none;
  gap: 0.5rem;
  transition: background-color 0.15s ease;
}
.details-block summary::-webkit-details-marker { display: none; }
.details-block summary::after {
  content: '+';
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
  color: #6b7280;
}
.details-block[open] summary::after {
  content: '−';
}
.details-block summary:hover {
  background-color: #f3f4f6;
}
.details-block[open] summary {
  border-bottom: 1px solid #e5e7eb;
}
.details-body {
  padding: 1.25rem 1.1rem;
  background: #ffffff;
}

/* Media + text publication block */
.media-text-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
.media-text-block img {
  width: 100px;
  height: auto;
  object-fit: contain;
  border-radius: 0.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
@media (min-width: 1024px) {
  .media-text-block { grid-template-columns: auto 1fr; }
  .media-text-block img { width: 130px; }
}

/* Image gallery (vystavy, aktuality) */
.content-gallery {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}
.content-gallery img {
  width: 100%;
  max-width: 720px;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

/* Centered page subtitle / section heading */
.section-heading {
  font-size: 1.45rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
  margin-bottom: 0.4rem;
}
.section-subheading {
  font-size: 1rem;
  color: #6b7280;
  text-align: center;
  margin-bottom: 2rem;
}

/* ==========================================================
   Kadence Tabs (kt-tabs) – custom styling
   ========================================================== */

.kt-tabs-wrap {
  width: 100%;
  box-sizing: border-box;
}

/* Tab title list */
.kt-tabs-title-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 0 0 0;
  padding: 0;
  border-bottom: 2px solid #e5e7eb;
  gap: 0;
}

.kt-title-item {
  margin: 0;
}

.kt-tab-title {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  border: 2px solid transparent;
  border-bottom: none;
  border-radius: 0.35rem 0.35rem 0 0;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
  background: transparent;
  white-space: nowrap;
}
.kt-tab-title:hover {
  color: #111827;
  background-color: #f9fafb;
}
.kt-tab-title-active .kt-tab-title,
.kt-title-item .kt-tab-title.kt-tab-title-active,
a.kt-tab-title[data-tab].kt-tab-title-active {
  color: #111827;
  background: #ffffff;
  border-color: #e5e7eb;
  border-bottom-color: #ffffff;
}

/* Tab content wrapper */
.kt-tabs-content-wrap {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 0.4rem 0.4rem;
  overflow: hidden;
}

/* Individual tab pane */
.wp-block-kadence-tab {
  display: none;
}
.wp-block-kadence-tab.kt-tab-inner-content:first-child {
  /* shown by default via JS; but we show tab 1 as fallback */
  display: block;
}
.kt-inner-tab-active {
  display: block !important;
}
.kt-tab-inner-content-inner {
  padding: 1.5rem 1.25rem;
}

/* Map tab – remove padding so map fills edge to edge */
.kt-tab-inner-content-inner:has(#ustr-map) {
  padding: 0;
}

