/* ============================================================
   KUCHYNĚ — Main Stylesheet
   ============================================================ */

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

body {
  background: #fff;
  color: #222;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

img { max-width: 100%; height: auto; display: block; }
:root { --kuchyne-accent: var(--kuchyne-accent); --kuchyne-accent-dark: var(--kuchyne-accent-dark); --kuchyne-accent-hover: #b85c00; }
a { color: var(--kuchyne-accent); text-decoration: none; }
a:hover { color: var(--kuchyne-accent-hover); }

/* Odstranit WP automatický block-gap margin pod headerem — platí globálně */
.hero-section,
.archive-hero,
.recipe-hero-banner,
.featured-recipe-section,
.cat-cards-section,
.latest-section {
  margin-block-start: 0 !important;
}
.page .entry-content .wp-block-shortcode,
.page .entry-content > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* ---- Header ---------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #1a1a1a;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.site-header .wp-block-group {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Site title inside header */
.site-header .wp-block-site-title a,
.site-header .wp-block-site-title {
  color: var(--kuchyne-accent) !important;
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  letter-spacing: -0.01em;
}

/* Nav links */
.site-header .wp-block-navigation a {
  color: #e8e8e8 !important;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0 0.75rem;
  transition: color .2s;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.site-header .wp-block-navigation a:hover { color: var(--kuchyne-accent) !important; }

/* Header search form */
.header-search-form {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  overflow: hidden;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.header-search-form:focus-within {
  background: rgba(255,255,255,0.13);
  border-color: #f5a623;
  box-shadow: 0 0 0 3px rgba(245,166,35,0.18);
}
.header-search-form input[type="search"] {
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  padding: 0.42rem 0.2rem 0.42rem 1rem;
  width: 200px;
  outline: none;
  -webkit-appearance: none;
}
.header-search-form input[type="search"]::-webkit-search-cancel-button { display: none; }
.header-search-form input[type="search"]::placeholder { color: rgba(255,255,255,0.45); }
.header-search-form button {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.9rem 0.42rem 0.5rem;
  transition: color .2s;
  flex-shrink: 0;
}
.header-search-form button svg { display: block; }
.header-search-form button:hover { color: #f5a623; }
@media (max-width: 700px) {
  .header-search-form input[type="search"] { width: 120px; padding-left: 0.75rem; }
}
@media (max-width: 480px) {
  .header-search-form input[type="search"] { width: 80px; font-size: 0.75rem; }
}

/* ---- Hero ------------------------------------------------- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #1a0e00 0%, #3d2000 40%, #5c3500 70%, #2d1a00 100%);
  min-height: 160px;
  margin-top: 0 !important;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(245,166,35,.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(245,166,35,.06) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.hero-tagline {
  display: inline-block;
  background: rgba(245,166,35,.15);
  border: 1px solid rgba(245,166,35,.3);
  color: var(--kuchyne-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.7);
  margin: 0 auto 0;
  max-width: 700px;
  line-height: 1.55;
}


/* Quick category links under hero search */
.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.hero-quick-links a {
  color: rgba(255,255,255,.75);
  font-size: 0.8125rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  transition: all .2s;
}

.hero-quick-links a:hover {
  color: #fff;
  border-color: rgba(245,166,35,.6);
  background: rgba(245,166,35,.1);
}

/* ---- Sticky header scroll effect ------------------------ */
.site-header {
  transition: background .25s, box-shadow .25s, backdrop-filter .25s;
}
.site-header.is-scrolled {
  background: rgba(20,20,20,.96) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
}

/* ---- Featured recipe (Recept dne) ----------------------- */
.featured-recipe-section {
  background: #fff;
  padding: 2rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  margin-top: 0 !important;
}

.featured-recipe-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.featured-recipe-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--kuchyne-accent);
  margin: 0 0 0.5rem;
}

.featured-recipe-cat {
  display: inline-block;
  background: #fff4e0;
  color: #c07000;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
  text-decoration: none;
  border: 1px solid rgba(245,166,35,.25);
}
.featured-recipe-cat:hover { background: #ffe5a0; }

.featured-recipe-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #111;
  margin: 0 0 1rem;
}
.featured-recipe-title a { color: inherit; text-decoration: none; }
.featured-recipe-title a:hover { color: var(--kuchyne-accent); }

.featured-recipe-excerpt {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

.featured-recipe-img-wrap {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
  transition: transform .4s ease, box-shadow .4s ease;
}
.featured-recipe-img-wrap:hover { transform: scale(1.02); box-shadow: 0 28px 72px rgba(0,0,0,.22); }

.featured-recipe-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.featured-recipe-img-wrap:hover img { transform: scale(1.05); }

@media (max-width: 768px) {
  .featured-recipe-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .featured-recipe-img-wrap { order: -1; }
}

/* ---- Category cards grid -------------------------------- */
.cat-cards-section {
  background: #fdf8f3;
  padding: 2rem 1.5rem;
  margin-top: 0 !important;
}

.cat-cards-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.cat-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  border-radius: 14px;
  background: var(--cat-bg, #f5f5f5);
  text-decoration: none;
  border: 2px solid transparent;
  transition: all .22s ease;
  text-align: center;
}

.cat-card:hover {
  border-color: var(--cat-ic, #f5a623);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
}

.cat-card-icon {
  font-size: 2.5rem;
  line-height: 1;
  display: block;
  transition: transform .22s ease;
}
.cat-card:hover .cat-card-icon { transform: scale(1.15); }

.cat-card-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.25;
}

.cat-card-count {
  font-size: 0.72rem;
  color: var(--cat-ic, #888);
  font-weight: 600;
  letter-spacing: 0.05em;
}

@media (max-width: 900px) { .cat-card-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .cat-card-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Search results section ----------------------------- */
.search-section {
  background: #f8f8f8;
  padding: 3rem 0 5rem;
  min-height: 60vh;
}

.search-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.search-head {
  margin-bottom: 2.5rem;
}

.search-query {
  color: var(--kuchyne-accent);
  font-style: normal;
  font-weight: 800;
}

.search-count {
  font-size: 0.9rem;
  color: #888;
  margin: 0.25rem 0 1.25rem;
}

.search-form-bar {
  display: flex;
  max-width: 500px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #efefef;
  transition: border-color .2s;
}
.search-form-bar:focus-within { border-color: var(--kuchyne-accent); }

.search-form-bar input[type=search] {
  flex: 1;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  outline: none;
  background: transparent;
  font-family: inherit;
  color: #333;
}

.search-form-bar button {
  background: var(--kuchyne-accent);
  color: #fff;
  border: none;
  padding: 0 1.25rem;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
}
.search-form-bar button:hover { background: var(--kuchyne-accent-dark); }

.search-empty {
  text-align: center;
  padding: 4rem 1rem;
}

.search-empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: .4;
}

.search-empty h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.search-empty p {
  color: #777;
  margin-bottom: 1.5rem;
}

/* ---- Footer (rozšířená verze) --------------------------- */
.footer-main {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding: 2.5rem 1.5rem 1.5rem;
}

.footer-brand-col {}

.footer-brand-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--kuchyne-accent);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.55;
  margin-bottom: 1rem;
  display: block;
}

.footer-socials {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #1e1e1e;
  color: #999;
  border: 1px solid #2a2a2a;
  transition: all .2s;
}
.footer-social-btn:hover { background: var(--kuchyne-accent); color: #fff; border-color: var(--kuchyne-accent); }

.footer-col-heading {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #555;
  margin: 0 0 0.75rem;
}

.footer-nav-col nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-nav-col nav a {
  font-size: 0.82rem;
  color: #777;
  text-decoration: none;
  transition: color .18s;
}
.footer-nav-col nav a:hover { color: var(--kuchyne-accent); }

@media (max-width: 700px) {
  .footer-main { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem; }
}

/* ---- Category Tabs --------------------------------------- */
.category-tabs-section {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 64px;
  z-index: 100;
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.category-tabs::-webkit-scrollbar { display: none; }

.category-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.9rem 1.25rem;
  color: #555;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all .2s;
  cursor: pointer;
  text-decoration: none;
}

.category-tab:hover,
.category-tab.active {
  color: var(--kuchyne-accent);
  border-bottom-color: var(--kuchyne-accent);
}

.category-tab .tab-icon {
  font-size: 1.35rem;
  line-height: 1;
}

/* ---- Section headings ----------------------------------- */
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--kuchyne-accent);
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #111;
  margin: 0 0 2rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* ---- Latest recipes section ---------------------------- */
.latest-section {
  background: #fff;
  padding: 2rem 0 2.5rem;
  margin-top: 0 !important;
}

.latest-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.latest-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.latest-footer {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

/* ---- Recipe card grid ---------------------------------- */
.recipe-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* ---- rcard (clean recipe card) ------------------------- */
.rcard {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #efefef;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
}

.rcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(0,0,0,.14), 0 0 0 2px rgba(245,166,35,.2);
  border-color: rgba(245,166,35,.35);
}

.rcard-img {
  position: relative;
  overflow: hidden;
  height: 195px;
  flex-shrink: 0;
  background: #f0ebe3;
}

.rcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s cubic-bezier(.25,.46,.45,.94);
}

.rcard:hover .rcard-img img {
  transform: scale(1.1);
}

.rcard-noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

/* Hover overlay "→" na kartě */
.rcard-img::after {
  content: "Zobrazit recept →";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s ease;
  border-radius: 0;
}
.rcard:hover .rcard-img::after { opacity: 1; }

.rcard-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: rgba(26,26,26,.75);
  backdrop-filter: blur(4px);
  color: var(--kuchyne-accent);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.rcard-body {
  padding: 0.9rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.rcard-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rcard:hover .rcard-title { color: var(--kuchyne-accent); }

.rcard-meta {
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rcard-date {
  font-size: 0.74rem;
  color: #bbb;
}

/* Archive page: WP query block cards */
.wp-block-post-template.is-layout-grid {
  gap: 1.25rem !important;
}

.wp-block-post {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #efefef;
  transition: transform .22s ease, box-shadow .22s ease;
}

.wp-block-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}

.wp-block-post-featured-image img,
.wp-block-post-featured-image a img {
  width: 100% !important;
  object-fit: cover;
  display: block;
}

.wp-block-post:hover .wp-block-post-featured-image img {
  transform: scale(1.05);
}

.wp-block-post-featured-image { overflow: hidden; }

.wp-block-post-title {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #111 !important;
}

.wp-block-post-title a { color: #111 !important; text-decoration: none; }
.wp-block-post-title a:hover { color: var(--kuchyne-accent) !important; }

.wp-block-post-terms { color: var(--kuchyne-accent) !important; }
.wp-block-post-terms a { color: var(--kuchyne-accent) !important; }

.wp-block-post-date { font-size: 0.8rem !important; color: #999 !important; }

.wp-block-post-excerpt { font-size: 0.85rem !important; color: #666 !important; line-height: 1.6 !important; }
.wp-block-post-excerpt__more-link { color: var(--kuchyne-accent) !important; font-weight: 600; }

/* ---- "View all" button --------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--kuchyne-accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.7rem 1.75rem;
  border-radius: 8px;
  transition: background .2s, transform .15s;
  letter-spacing: 0.04em;
}
.btn-primary:hover {
  background: var(--kuchyne-accent-dark);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--kuchyne-accent) !important;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  border: 2px solid var(--kuchyne-accent);
  transition: all .2s;
  letter-spacing: 0.04em;
}
.btn-outline:hover {
  background: var(--kuchyne-accent);
  color: #fff !important;
}

/* ---- Tag pills ----------------------------------------- */
.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tag-pill {
  background: #f5f5f5;
  color: #555;
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  transition: all .2s;
}

.tag-pill:hover {
  background: #fff4e0;
  color: var(--kuchyne-accent);
}

/* ---- Magazine / editorial row -------------------------- */
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.editorial-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #efefef;
}

.editorial-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.editorial-card-body {
  padding: 1.25rem;
}

/* ---- Footer -------------------------------------------- */
.site-footer {
  background: #111;
  color: #aaa;
  padding: 0;
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  border-top: 1px solid #1e1e1e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #444;
}
.footer-bottom p { margin: 0; }

/* ---- WP Navigation overrides for dark header ----------- */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
  color: #fff !important;
}

.wp-block-navigation__responsive-container.is-menu-open {
  background: #1a1a1a !important;
}

/* ---- Pagination ---------------------------------------- */
.wp-block-query-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.wp-block-query-pagination-numbers .page-numbers,
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #555;
  background: #f5f5f5;
  transition: all .2s;
}

.wp-block-query-pagination-numbers .page-numbers:hover,
.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination-next:hover {
  background: var(--kuchyne-accent);
  color: #fff;
}

.wp-block-query-pagination-numbers .current {
  background: var(--kuchyne-accent);
  color: #fff;
}

/* ---- Hero banner detailu receptu (cinematic overlay) --------- */
.recipe-hero-banner {
  position: relative;
  width: 100%;
  height: clamp(260px, 38vh, 360px);
  overflow: hidden;
  background: #1a1a1a;
}

.recipe-hero-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 8s ease;
}

.recipe-hero-banner:hover .recipe-hero-banner-img {
  transform: scale(1.03);
}

.recipe-hero-banner-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a0e00 0%, #3d2000 40%, #5c3500 70%, #2d1a00 100%);
}

.recipe-hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.12) 0%,
    rgba(0,0,0,0.05) 25%,
    rgba(0,0,0,0.45) 65%,
    rgba(0,0,0,0.82) 100%
  );
}

.recipe-hero-banner-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 clamp(1.5rem, 5vw, 3.5rem) 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Drobečková navigace v banneru */
.recipe-hero-banner .recipe-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 0.9rem;
}
.recipe-hero-banner .recipe-breadcrumb a { color: rgba(255,255,255,.6); transition: color .18s; }
.recipe-hero-banner .recipe-breadcrumb a:hover { color: var(--kuchyne-accent); }
.recipe-hero-banner .recipe-breadcrumb span { color: rgba(255,255,255,.3); }

.recipe-hero-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--kuchyne-accent);
  margin-bottom: 0.65rem;
}

.recipe-hero-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  max-width: 760px;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
}

.recipe-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: rgba(255,255,255,.65);
}
.recipe-hero-meta svg { opacity: .7; flex-shrink: 0; }

@media (max-width: 600px) {
  .recipe-hero-banner { height: clamp(320px, 55vw, 420px); }
  .recipe-hero-title { font-size: clamp(1.5rem, 6vw, 2rem); }
}

/* ---- Recipe intro bar (meta lišta pod hero) -------------------- */
.recipe-intro-bar {
  background: #fdf9f4;
  border-bottom: 1px solid #ede8e0;
  padding: 1.1rem 1.5rem;
}

.recipe-intro-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.recipe-intro-stats {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.recipe-stat-cat {
  display: inline-flex;
  align-items: center;
  background: #fff3de;
  color: #c07000;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(245,166,35,.3);
}

.recipe-stat {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  color: #666;
}

.recipe-stat svg { color: var(--kuchyne-accent); flex-shrink: 0; }

.recipe-intro-cta {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--kuchyne-accent);
  text-decoration: none;
  border-bottom: 1px dashed rgba(245,166,35,.5);
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.recipe-intro-cta:hover { color: #b85c00; border-bottom-color: var(--kuchyne-accent); }

@media (max-width: 640px) {
  .recipe-intro-inner { flex-direction: column; align-items: flex-start; }
  .recipe-intro-stats { gap: 0.75rem; }
  .recipe-intro-bar { padding: 0.9rem 1rem; }
}

/* ---- Single post: obsah receptu ------------------------------ */
.wp-block-post-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #333;
}

.wp-block-post-content h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding: 0.7rem 1rem 0.7rem 1.25rem;
  background: linear-gradient(135deg, #fff9ee, #fff4e0);
  border-left: 4px solid var(--kuchyne-accent);
  border-radius: 0 8px 8px 0;
}

.wp-block-post-content h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

/* Čistá čitelná typografie odstavců — bez boxování */
.single .wp-block-post-content p,
.single .wp-block-post-content .wp-block-paragraph {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #3a3a3a;
  margin-bottom: 1.25rem;
}

/* Ingredience: checkmark mřížka */
.single .wp-block-post-content ul {
  list-style: none;
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
  background: #fafafa;
  border: 1px solid #f0ebe3;
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.35rem 1.5rem;
}

.single .wp-block-post-content ul li {
  padding: 0.3rem 0 0.3rem 1.4rem;
  position: relative;
  font-size: 0.975rem;
  color: #333;
  line-height: 1.5;
  border-bottom: 1px solid #f0ece6;
}

.single .wp-block-post-content ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--kuchyne-accent);
  font-weight: 700;
  font-size: 0.85rem;
  top: 0.3rem;
}

.single .wp-block-post-content ol {
  padding-left: 1.5rem;
  counter-reset: step-counter;
  list-style: none;
  margin-bottom: 1.5rem;
}
.single .wp-block-post-content ol li {
  counter-increment: step-counter;
  padding: 0.6rem 0 0.6rem 0.5rem;
  font-size: 1.0125rem;
  line-height: 1.7;
  border-bottom: 1px solid #f5f5f5;
  position: relative;
}
.single .wp-block-post-content ol li::before {
  content: counter(step-counter) ".";
  color: var(--kuchyne-accent);
  font-weight: 700;
  margin-right: 0.5rem;
}

/* ---- Related recipes (shortcode) ----------------------- */
.related-recipes-section {
  background: #f9f6f2;
  padding: 3rem 0 4rem;
}

.related-recipes-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.related-recipes-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.related-label {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--kuchyne-accent);
}

.related-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.01em;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.related-card {
  display: block;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #efefef;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}

.related-card-img {
  overflow: hidden;
  height: 190px;
}

.related-card-img img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.related-card:hover .related-card-img img {
  transform: scale(1.05);
}

.related-card-noimg {
  background: #f0ebe3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.related-card-body {
  padding: 0.85rem 0.9rem 1rem;
}

.related-card-cat {
  margin: 0 0 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kuchyne-accent);
}

.related-card-title {
  margin: 0 0 0.5rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: #111;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card-date {
  margin: 0;
  font-size: 0.74rem;
  color: #bbb;
}

@media (max-width: 700px) {
  .related-grid { grid-template-columns: 1fr; }
  .related-recipes-head { flex-direction: column; align-items: flex-start; }
}

/* ---- Archive hero header (shortcode kuchyne_archive_header) --- */
.archive-hero {
  position: relative;
  background: linear-gradient(135deg, #1a0e00 0%, #3d2000 40%, #5c3500 70%, #2d1a00 100%);
  min-height: 160px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 1.75rem 1.5rem;
}
.archive-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(245,166,35,.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(245,166,35,.06) 0%, transparent 50%);
  pointer-events: none;
}
.archive-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.archive-hero-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--kuchyne-accent);
  margin: 0 0 0.6rem;
}
.archive-hero-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}
.archive-hero-desc {
  color: #cccccc;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  max-width: 640px;
}

/* ---- Archive sekce (shortcode kuchyne_archive) --------- */
.archive-section {
  background: #f8f8f8;
  padding: 3rem 0 4rem;
}

.archive-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.archive-empty {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  color: #78716c;
}

/* Stránkování archivu (paginate_links vrací <ul>) */
.archive-pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.archive-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #555;
  background: #fff;
  border: 1px solid #efefef;
  transition: all .18s;
  text-decoration: none;
}

.archive-pagination .page-numbers:hover {
  background: var(--kuchyne-accent);
  color: #fff;
  border-color: var(--kuchyne-accent);
}

.archive-pagination .page-numbers.current {
  background: var(--kuchyne-accent);
  color: #fff;
  border-color: var(--kuchyne-accent);
}

.archive-pagination .page-numbers.dots {
  background: transparent;
  border-color: transparent;
}

/* ---- Responsive --------------------------------------- */
@media (max-width: 1100px) {
  .recipe-card-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .editorial-grid { grid-template-columns: 1fr; }
  .recipe-card-grid { grid-template-columns: repeat(2, 1fr); }
  .latest-head { align-items: flex-start; }
}

@media (max-width: 600px) {
  .recipe-card-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .footer-compact { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .footer-compact-brand { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
.hero-title { font-size: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.3rem; text-align: center; }
  .latest-head { flex-direction: column; }
}

@media (max-width: 400px) {
  .recipe-card-grid { grid-template-columns: 1fr; }
}

/* ---- Utility ------------------------------------------ */
.text-orange { color: var(--kuchyne-accent); }
.bg-dark { background: #1a1a1a; }
.bg-light { background: #f8f8f8; }
.text-center { text-align: center; }
.w-full { width: 100%; }
