/* ============================================================
   KOMPONENTY PODSTRÁNEK (přeneseno z page <style> do tématu)
   + adaptace pro nativní WP bloky
   ============================================================ */

/* --- Blog: výpis + sidebar --- */
.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: var(--sp-6); align-items: start; max-width: var(--max-w); margin: 0 auto; padding: var(--sp-6) var(--sp-4) var(--sp-7); }
@media (max-width: 920px) { .blog-layout { grid-template-columns: 1fr; } }

.blog-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.blog-list.wp-block-query { margin: 0; }
.post-row {
  display: flex; align-items: stretch; gap: var(--sp-4);
  background: var(--c-white); border: 1px solid var(--c-border);
  border-radius: var(--radius-md); overflow: hidden; transition: all var(--t);
}
.post-row:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
/* Obrázek je volitelný — když chybí, text zabere celou šířku */
.post-row__image { flex: 0 0 200px; background: var(--c-surface); margin: 0; align-self: stretch; }
.post-row__image img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; display: block; }
.post-row__body { flex: 1 1 auto; min-width: 0; padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); }
.post-row > .post-row__body:first-child { padding: var(--sp-4); }
.post-row__meta { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.post-row__date { font-size: 12px; color: var(--c-text-muted); }
.post-row__title, .post-row__title a { font-family: var(--f-serif); font-size: 1.1875rem; font-weight: 600; line-height: 1.35; color: var(--c-text); }
.post-row__title a:hover { color: var(--c-accent); }
.post-row__excerpt { font-size: 14px; color: var(--c-text-muted); line-height: 1.6; }
.post-row__excerpt p { margin: 0; }
.post-row__link, .post-row__link a { font-size: 13px; font-weight: 500; color: var(--c-accent); margin-top: auto; }
@media (max-width: 520px) {
  .post-row { grid-template-columns: 1fr; }
  .post-row__image, .post-row__image img { min-height: 0; aspect-ratio: 16/9; }
  .post-row__body { padding: var(--sp-4); }
}

.blog-sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: var(--sp-4); }
@media (max-width: 920px) { .blog-sidebar { position: static; } }
.widget { background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: var(--sp-4); }
.widget__title { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text); margin-bottom: var(--sp-3); padding-bottom: var(--sp-2); border-bottom: 2px solid var(--c-accent); }

/* Hledani (core/search) */
.widget__search .wp-block-search__inside-wrapper { gap: 6px; }
.widget__search input, .widget__search .wp-block-search__input { padding: 9px 12px; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm); font-family: var(--f-sans); font-size: 14px; }
.widget__search input:focus { border-color: var(--c-accent); outline: none; }
.widget__search button, .widget__search .wp-block-search__button { padding: 9px 14px; border-radius: var(--radius-sm); background: var(--c-ink); color: #fff; font-size: 14px; font-weight: 500; margin: 0; }

/* Kategorie (core/categories) */
.cat-list, .cat-list.wp-block-categories { margin: 0; padding: 0; list-style: none; }
.cat-list li { border-bottom: 1px solid var(--c-border-light); }
.cat-list li:last-child { border-bottom: none; }
.cat-list a { display: inline-block; padding: 9px 0; font-size: 14px; color: var(--c-text); }
.cat-list a:hover { color: var(--c-accent); }

/* Stitky (core/tag-cloud) */
.tag-cloud a, .tag-cloud.wp-block-tag-cloud a { display: inline-block; font-size: 13px !important; color: var(--c-text-muted); background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-full); padding: 4px 12px; margin: 0 4px 6px 0; }
.tag-cloud a:hover { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }

/* 15 nejnovejsich (core/latest-posts) */
.recent-list, .recent-list.wp-block-latest-posts { margin: 0; padding: 0; list-style: none; }
.recent-list li { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; border-bottom: 1px solid var(--c-border-light); }
.recent-list li:last-child { border-bottom: none; }
.recent-list .wp-block-latest-posts__post-title { font-size: 13.5px; font-weight: 500; line-height: 1.35; color: var(--c-text); }
.recent-list a.wp-block-latest-posts__post-title:hover { color: var(--c-accent); }
.recent-list .wp-block-latest-posts__post-date { font-size: 11.5px; color: var(--c-text-muted); }
/* malé srdíčko jako odrážka před titulkem */
.recent-list li > a:first-child::before,
.recent-list li > .wp-block-latest-posts__post-title:first-child::before { content: "💜 "; }

/* Drobečková navigace */
.breadcrumb { margin-bottom: var(--sp-3); }
.breadcrumb p { font-size: 13px; color: var(--c-text-muted); margin: 0; }
.breadcrumb a { color: var(--c-accent); }

/* Stránka příspěvku — levý sloupec */
.article-main { min-width: 0; }
.article-main .wp-block-post-content { margin-top: var(--sp-4); }

/* ============================================================
   PLNÉ STYLY STRÁNEK Z NÁVRHU (projekty, román, kontakt, článek)
   ============================================================ */

/* --- PROJEKTY --- */
.projekty-hero-card {
  background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  padding: var(--sp-5); display: grid; grid-template-columns: 100px 1fr; gap: var(--sp-5);
  align-items: center; margin-bottom: var(--sp-5); transition: all var(--t); text-decoration: none; color: inherit;
}
.projekty-hero-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.projekty-hero-card__logo {
  aspect-ratio: 1; border-radius: var(--radius-md); background: var(--c-accent-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-serif); font-size: 2rem; font-weight: 700; color: var(--c-accent);
}
.projekty-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.projekt-card {
  background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius-md);
  padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2);
  transition: all var(--t); text-decoration: none; color: inherit; height: auto;
}
.projekt-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.projekt-card__header { display: flex; align-items: center; gap: var(--sp-2); }
.projekt-card__logo {
  width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--c-surface);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-serif); font-size: 1.25rem; font-weight: 700; flex-shrink: 0;
}
.projekt-card__name { font-size: 1.0625rem; font-weight: 600; font-family: var(--f-serif); }
.projekt-card__role { font-size: 12px; color: var(--c-text-muted); margin-top: 2px; }
.projekt-card__desc { font-size: 14px; color: var(--c-text-muted); line-height: 1.6; flex: 1; }
.projekt-card__link { font-size: 13px; color: var(--c-accent); font-weight: 500; }
.roman-projekt-card {
  grid-column: span 2; background: var(--c-text); border: none; border-radius: var(--radius-md);
  padding: var(--sp-5); display: flex; align-items: center; gap: var(--sp-5);
  text-decoration: none; color: white; transition: all var(--t);
}
.roman-projekt-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
@media (max-width: 760px) {
  .projekty-hero-card { grid-template-columns: 72px 1fr; gap: var(--sp-3); }
  .projekty-grid { grid-template-columns: 1fr; }
  .roman-projekt-card { grid-column: span 1; flex-direction: column; align-items: flex-start; }
}

/* --- ROMÁN --- */
.roman-triptych { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-bottom: var(--sp-7); }
.roman-triptych-card { background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: var(--sp-4); }
.roman-triptych-card__icon {
  width: 44px; height: 44px; background: var(--c-accent-light); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: var(--sp-3);
}
.roman-triptych-card h3 { font-size: 14px; font-weight: 700; margin-bottom: var(--sp-2); color: var(--c-text); }
.roman-triptych-card p { font-size: 14px; color: var(--c-text-muted); line-height: 1.65; margin: 0; }
.roman-layout { display: grid; grid-template-columns: 1fr 320px; gap: var(--sp-8); align-items: start; margin-bottom: var(--sp-7); }
.roman-lead { font-family: var(--f-serif); font-size: 1.125rem; line-height: 1.85; color: var(--c-text); }
.roman-lead p { margin-bottom: var(--sp-4); }
.vydani-box { position: sticky; top: 80px; background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius-md); overflow: hidden; }
.vydani-box__header { background: var(--c-text); padding: var(--sp-4); color: white; text-align: center; }
.vydani-box__header h3 { font-size: 1.25rem; color: white; margin-bottom: 4px; }
.vydani-box__header p { font-size: 13px; color: rgba(255,255,255,.6); margin: 0; }
.vydani-box__body { padding: var(--sp-4); }
.vydani-stat { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--c-surface); font-size: 14px; }
.vydani-stat:last-of-type { border-bottom: none; }
.vydani-stat__label { color: var(--c-text-muted); }
.vydani-stat__val { font-weight: 600; }
.quote-strip { background: var(--c-text); padding: var(--sp-7) 0; text-align: center; margin-bottom: var(--sp-7); }
.quote-strip blockquote { font-family: var(--f-serif); font-size: 1.5rem; font-style: italic; line-height: 1.5; color: white; max-width: 720px; margin: 0 auto var(--sp-3); border: none; padding: 0; }
.quote-strip cite { font-size: 13px; font-style: normal; color: rgba(255,255,255,.45); }
.roman-vznik { background: var(--c-accent-light); border-radius: var(--radius-lg); padding: var(--sp-6); margin-bottom: var(--sp-7); display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: center; }
.roman-vznik__text h2 { margin-bottom: var(--sp-3); }
.roman-vznik__text p { font-size: 1rem; line-height: 1.8; color: var(--c-text); margin-bottom: var(--sp-3); }
.roman-vznik__text p:last-of-type { margin-bottom: 0; }
.roman-vznik__meta { background: white; border-radius: var(--radius-md); padding: var(--sp-4); text-align: center; }
.roman-vznik__datum { font-family: var(--f-serif); font-size: 2.25rem; font-weight: 700; color: var(--c-accent); display: block; margin-bottom: 4px; }
.roman-vznik__sub { font-size: 13px; color: var(--c-text-muted); }
@media (max-width: 860px) {
  .roman-layout { grid-template-columns: 1fr; }
  .vydani-box { position: static; }
  .roman-triptych { grid-template-columns: 1fr; }
  .roman-vznik { grid-template-columns: 1fr; }
}

/* --- KONTAKT --- */
.contact-layout { display: grid; grid-template-columns: 1fr 380px; gap: var(--sp-8); align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: var(--sp-3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--c-text); }
.form-group input, .form-group textarea, .form-group select {
  padding: 11px 14px; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm);
  font-family: var(--f-sans); font-size: 15px; color: var(--c-text); background: var(--c-white);
  transition: border-color var(--t); outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-light); }
.form-group textarea { min-height: 160px; resize: vertical; }
.contact-info { display: flex; flex-direction: column; gap: var(--sp-4); }
.contact-info-box h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-muted); margin-bottom: var(--sp-3); }
.contact-detail { display: flex; gap: var(--sp-2); align-items: flex-start; margin-bottom: var(--sp-2); font-size: 14px; }
.contact-detail strong { min-width: 60px; color: var(--c-text-muted); }
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* --- ČLÁNEK (autor box + související) z návrhu --- */
.author-box { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-4); background: var(--c-accent-light); border-radius: var(--radius-md); margin-top: var(--sp-6); }
.author-box__avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--c-surface); }
.author-box__avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box__name { font-weight: 600; font-family: var(--f-serif); }
.author-box__bio { font-size: 13px; color: var(--c-text-muted); margin-top: 4px; line-height: 1.6; }
.related-card { text-decoration: none; color: inherit; }
.related-card__img { aspect-ratio: 16/9; background: var(--c-surface); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: var(--sp-2); }
.related-card__img img { width: 100%; height: 100%; object-fit: cover; }

/* --- Clanek (single) --- */
.article-wrap { padding-top: var(--sp-5); padding-bottom: var(--sp-5); }
.post-meta { gap: var(--sp-2); color: rgba(255,255,255,.85); font-size: 14px; }
.author-box { gap: var(--sp-3); align-items: flex-start; padding: var(--sp-4); background: var(--c-accent-light); border-radius: var(--radius-md); margin-top: var(--sp-6); }
.author-box__avatar img { border-radius: 50%; }
.author-box__name { font-weight: 600; font-family: var(--f-serif); margin: 0; }
.author-box__bio { font-size: 13px; color: var(--c-text-muted); margin: 4px 0 0; line-height: 1.6; }
.related-posts { padding-top: var(--sp-5); margin-top: var(--sp-6); border-top: 1px solid var(--c-border); }
.related-grid { margin-top: var(--sp-4); }
.related-card { text-decoration: none; }
.related-card__img img { aspect-ratio: 16/9; width: 100%; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: var(--sp-2); }
.related-card__title, .related-card__title a { font-size: 14px; font-weight: 600; font-family: var(--f-serif); line-height: 1.4; color: var(--c-text); }
.related-card__date { font-size: 12px; color: var(--c-text-muted); margin-top: 4px; }

/* --- Projekty --- */
.projekty-hero-card { background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: var(--sp-5); margin-bottom: var(--sp-5); }
.projekty-grid-title { font-size: 12px !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-text-muted); margin-bottom: var(--sp-4); }
.projekt-card { background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: var(--sp-4); height: 100%; }
.projekt-card h4 { margin-bottom: var(--sp-2); }
.projekt-card p { font-size: 14px; color: var(--c-text-muted); }

/* --- Roman --- */
.quote-strip { padding: var(--sp-7) var(--sp-4); }
.quote-strip .wp-block-quote { border: none; max-width: 720px; margin: 0 auto; padding: 0; }
.quote-strip p { font-family: var(--f-serif); font-size: 1.5rem; font-style: italic; line-height: 1.5; }
.roman-layout { gap: var(--sp-6); }
.vydani-box { background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: var(--sp-4); }
.vydani-box .wp-block-list { list-style: none; margin: 0 0 var(--sp-3); padding: 0; }
.vydani-box .wp-block-list li { padding: 9px 0; border-bottom: 1px solid var(--c-border-light); font-size: 14px; }

/* --- Kontakt --- */
.contact-layout { gap: var(--sp-6); }
.contact-info-box { background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: var(--sp-4); }
.contact-info-box h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-muted); margin-bottom: var(--sp-3); }
.contact-info-box p { font-size: 14px; }
.form-note { font-size: 13px; color: var(--c-text-muted); }

/* --- Domu: roman banner cover + worlds adaptace --- */
.roman-banner-cover .container { width: 100%; }
.roman-banner__label { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.92); margin-bottom: var(--sp-2); }
.world-card .wp-block-cover__inner-container { width: 100%; }
.world-card__tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: 6px; }
.world-card__title { color: #fff; margin-bottom: 6px; }
.world-card__desc { color: rgba(255,255,255,.8); font-size: 14px; margin-bottom: 8px; }
.world-card__link a { color: #fff; font-weight: 600; font-size: 14px; }

/* --- Roman: triptych (3 karty) --- */
.roman-triptych { margin-bottom: var(--sp-6); }
.roman-triptych-card { background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: var(--sp-4); height: 100%; }
.roman-triptych-card__icon { width: 44px; height: 44px; background: var(--c-accent-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: var(--sp-3); }
.roman-triptych-card h3 { font-size: 14px !important; font-weight: 700; margin-bottom: var(--sp-2); color: var(--c-text); }
.roman-triptych-card p { font-size: 14px; color: var(--c-text-muted); line-height: 1.65; margin: 0; }

/* --- Roman: jak vznikala (roman-vznik) + autorka --- */
.roman-vznik { background: var(--c-accent-light); border-radius: var(--radius-lg); padding: var(--sp-6); margin-bottom: var(--sp-6); }
.roman-vznik .wp-block-column { align-self: center; }
.roman-vznik h2 { margin-bottom: var(--sp-3); }
.roman-vznik p { font-size: 1rem; line-height: 1.8; color: var(--c-text); margin-bottom: var(--sp-3); }
.roman-vznik__meta { background: #fff; border-radius: var(--radius-md); padding: var(--sp-4); text-align: center; }
.roman-vznik__datum { font-family: var(--f-serif); font-size: 2.25rem; font-weight: 700; color: var(--c-accent); display: block; margin-bottom: 4px; line-height: 1.1; }
.roman-vznik__sub { font-size: 13px; color: var(--c-text-muted); }
.roman-autorka { background: var(--c-surface); }

/* --- O mně: citát + profesní box --- */
.about-quote { background: var(--c-accent-light); border-left: 3px solid var(--c-accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: var(--sp-3) var(--sp-4); margin: var(--sp-5) 0 0; }
.about-quote p { font-family: var(--f-serif); font-style: italic; font-size: 1.0625rem; color: var(--c-text); margin: 0; }
.about-pro-box { background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: var(--sp-4); margin-top: var(--sp-5); }
.about-pro-box h4 { margin-bottom: var(--sp-2); }
.about-pro-box p { font-size: 14px; color: var(--c-text-muted); margin-bottom: var(--sp-3); }

/* ============================================================
   DOMOVSKÁ — nativní bloky (editovatelné)
   ============================================================ */
/* Moje světy — cover karty ve sloupcích (vlevo vysoká, vpravo dvě) */
.worlds-cols { gap: var(--sp-3); }
.worlds-cols .wp-block-column { gap: var(--sp-3); }
.world-card.wp-block-cover { border-radius: var(--radius-md); overflow: hidden; }
.world-card .wp-block-cover__inner-container { padding: var(--sp-4); width: 100%; }
.world-card .world-card__title { color: #fff; margin-bottom: 6px; }
.world-card .world-card__tag { color: rgba(255,255,255,.85); display: inline-block; margin-bottom: 6px; }
.world-card .world-card__desc { color: rgba(255,255,255,.82); font-size: 14px; margin-bottom: 8px; display: block; }
.world-card .world-card__link a { color: #fff; font-weight: 600; font-size: 14px; }

/* Zápisky — automatické poslední články (latest-posts) jako karty */
ul.wp-block-latest-posts.posts-grid { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin: 0 !important; padding: 0 !important; list-style: none; }
ul.wp-block-latest-posts.posts-grid > li { width: auto !important; max-width: none !important; margin: 0 !important; background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; transition: all var(--t); }
ul.wp-block-latest-posts.posts-grid > li:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
ul.wp-block-latest-posts.posts-grid .wp-block-latest-posts__featured-image { display: block; margin: 0; }
ul.wp-block-latest-posts.posts-grid .wp-block-latest-posts__featured-image a,
ul.wp-block-latest-posts.posts-grid .wp-block-latest-posts__featured-image img { width: 100% !important; max-width: 100% !important; display: block; }
ul.wp-block-latest-posts.posts-grid .wp-block-latest-posts__featured-image img { aspect-ratio: 16/9; object-fit: cover; height: auto; }
ul.wp-block-latest-posts.posts-grid .wp-block-latest-posts__post-title { display: block; padding: var(--sp-3) var(--sp-3) 0; font-family: var(--f-serif); font-size: 1.0625rem; font-weight: 600; line-height: 1.35; color: var(--c-text); }
ul.wp-block-latest-posts.posts-grid a.wp-block-latest-posts__post-title:hover { color: var(--c-accent); }
ul.wp-block-latest-posts.posts-grid .wp-block-latest-posts__post-date { padding: 6px var(--sp-3) var(--sp-3); font-size: 12px; color: var(--c-text-muted); }
@media (max-width: 768px) { ul.wp-block-latest-posts.posts-grid { grid-template-columns: 1fr !important; } }

/* Domovská bio */
.mini-bio.wp-block-columns { align-items: center; }
