/*
Theme Name: Redakce
Theme URI: https://example.com/redakce
Author: Vytvořeno pro Jakuba (Claude)
Author URI: https://claude.ai
Description: Tmavý magazínový motiv pro WordPress v identitě Nest Magazine – barevný přechodový pruh, čitelné titulky, barevně odlišené rubriky, boční panel s widgety „Trending“ a „Kalendář vydání“, přepínač světlého/tmavého režimu, plně responzivní.
Version: 2.28.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: redakce
Tags: blog, news, dark-mode, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

/* ==========================================================================
   1. Proměnné, barvy rubrik a reset
   ========================================================================== */
:root {
    /* Značkové barvy Nest – oficiální paleta identity (doplněno 17. 9. 2026) */
    --brand-teal: #3adfca;
    --brand-pink: #d898c1;
    --brand-coral: #f06e6c;
    --brand-blue: #9bade4;
    --brand-violet: #b18aff;
    --brand-amber: #f7cd58;
    --brand-lime: #c9e265;
    --brand-cream: #f0eade;
    /* Stínové/tmavší varianty ze stejné palety – pro hover stavy a kontrast na světlém pozadí */
    --brand-blue-shadow: #89a0db;
    --brand-coral-shadow: #d85555;
    /* Tmavě modrá nahrazuje v identitě čistě černou (viz text loga) */
    --brand-navy: #0b1f51;

    /* Tmavé schéma (výchozí) */
    --color-bg: #0a0a0e;
    --color-bg-alt: #131218;
    --color-surface: #16151d;
    --color-surface-2: #1c1b25;
    --color-text: #f4f3f7;
    --color-text-muted: #9c99a8;
    --color-border: rgba(255, 255, 255, 0.09);
    --color-accent: var(--brand-coral);
    --color-accent-dark: var(--brand-coral-shadow);
    --color-link: #f4f3f7;
    --header-bg: #0e0d13;
    --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.35);

    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --max-width: 1360px;
    --radius: 12px;
    --radius-sm: 8px;

    /* Barvy rubrik */
    --cat-hry: var(--brand-teal);
    --cat-filmy: var(--brand-coral);
    --cat-komiksy: var(--brand-violet);
    --cat-recenze: var(--brand-blue);
    --cat-clanky: var(--brand-pink);
    --cat-videa: var(--brand-amber);
    --cat-podcast: var(--brand-blue);
    --cat-novinky: var(--brand-coral);
    --cat-serialy: var(--brand-pink);
    --cat-technologie: var(--brand-blue);
    --cat-default: var(--brand-coral);
}

:root[data-theme="light"] {
    --color-bg: #ffffff;
    --color-bg-alt: var(--brand-cream);
    --color-surface: #ffffff;
    --color-surface-2: var(--brand-cream);
    --color-text: #1c1c1c;
    --color-text-muted: #6b6b6b;
    --color-border: #e4e2dd;
    --color-accent: var(--brand-coral-shadow);
    --color-accent-dark: #b84848;
    --color-link: #1c1c1c;
    --header-bg: #ffffff;
    --shadow-card: 0 10px 24px rgba(20, 16, 10, 0.08);
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.2s ease, color 0.2s ease;
}

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

a {
    color: var(--color-link);
    text-decoration: none;
}

a:hover {
    color: var(--color-accent);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.15;
    margin: 0 0 0.5em;
    font-weight: 800;
    color: var(--color-text);
}

ul, ol {
    padding-left: 1.2em;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Barevný přechodový pruh nahoře webu – identita Nest */
.brand-topbar {
    height: 4px;
    width: 100%;
    background: linear-gradient(
        90deg,
        var(--brand-teal),
        var(--brand-blue),
        var(--brand-violet),
        var(--brand-pink),
        var(--brand-coral)
    );
}

/* ==========================================================================
   2. Hlavička
   ========================================================================== */
.site-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 16px 0;
}

.site-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex-shrink: 1;
    min-width: 0;
}

.site-logo-link {
    display: block;
    line-height: 0;
    min-width: 0;
    max-width: 100%;
}

/* Kompletní logo (ikona + wordmark „Nest Magazine“) jako jeden obrázek.
   Dvě barevné varianty – s černým textem pro světlý režim, s krémovým
   textem pro tmavý – se přepínají čistě CSS podle [data-theme] na <html>,
   stejně jako ostatní barvy webu (viz proměnné v :root výše). Vždy jen
   jedna z nich je v DOM viditelná, druhá má display:none. */
.site-logo-full {
    display: block;
    height: 64px;
    width: auto;
    max-width: 100%;
}

.site-logo-full-dark {
    display: none;
}

:root[data-theme="light"] .site-logo-full-light {
    display: block;
}

:root[data-theme="light"] .site-logo-full-dark {
    display: none;
}

:root:not([data-theme="light"]) .site-logo-full-light {
    display: none;
}

:root:not([data-theme="light"]) .site-logo-full-dark {
    display: block;
}

.site-description {
    margin: 0;
    font-size: 10px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    color: var(--color-text-muted);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-family: var(--font-body);
}

.primary-navigation {
    flex: 1;
    min-width: 0;
}

.primary-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    display: block;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-text-muted);
    border-bottom: 2px solid transparent;
}

/* Malá šipka u položek s podnabídkou (např. "Více") – jasně signalizuje,
   že jde o rozbalovací skupinu, ne o samostatný odkaz. */
.primary-menu li.menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 0 1px 5px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.7;
}

.primary-menu > li:hover > a,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-parent > a {
    color: var(--color-text);
    border-bottom-color: var(--brand-teal);
}

.primary-menu ul {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    min-width: 200px;
    padding: 6px 0;
    display: none;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    z-index: 10;
}

.primary-menu li:hover > ul {
    display: block;
}

.primary-menu ul a {
    text-transform: none;
    font-weight: 500;
    padding: 8px 16px;
    border-bottom: none;
}

.primary-menu ul a:hover {
    color: var(--brand-teal);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
}

.header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
}

.header-icon-btn:hover {
    background: var(--color-surface);
    color: var(--color-text);
}

.header-icon-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-search {
    display: none;
    position: absolute;
    top: 100%;
    right: 24px;
    margin-top: 8px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 10px;
    box-shadow: var(--shadow-card);
    z-index: 20;
}

.header-search.is-open {
    display: block;
}

.header-search .search-form {
    width: 260px;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--color-text);
    margin: 3px auto;
}

/* ==========================================================================
   3. Hlavní obsah / layout
   ========================================================================== */
.site-main-wrap {
    padding: 32px 0 60px;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
}

.content-layout.no-sidebar {
    grid-template-columns: minmax(0, 1fr);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 20px;
    color: var(--color-text);
}

.section-title::before {
    content: "";
    display: block;
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: var(--brand-teal);
}

.section-title.is-coral::before { background: var(--brand-coral); }
.section-title.is-violet::before { background: var(--brand-violet); }

/* ==========================================================================
   4. Hero / karuselová sekce na titulní straně
   ========================================================================== */
.hero-carousel {
    position: relative;
    margin-bottom: 44px;
}

.hero-slides {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 480px;
    background: var(--color-surface);
}

.featured-post {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    background: var(--color-surface);
}

.hero-slides .featured-post {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
    margin-bottom: 0;
}

.hero-slides .featured-post.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

/* Celý aktivní snímek karuselu je klikatelný (viz navigation.js) – kurzor
   ukazuje, že lze kliknout kdekoli, nejen na tlačítko/nadpis. */
.hero-slides .featured-post {
    cursor: pointer;
}

.featured-post .featured-post-media {
    position: absolute;
    inset: 0;
}

.featured-post .featured-post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-post .featured-post-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.05) 100%);
}

.featured-post-content {
    position: relative;
    color: #fff;
    padding: 48px;
    max-width: 620px;
}

.featured-post-content .eyebrow {
    color: var(--brand-teal);
}

.featured-post-content h2 {
    font-size: 44px;
    font-weight: 900;
    text-transform: none;
    letter-spacing: -0.01em;
    margin: 10px 0 16px;
    line-height: 1.05;
}

.featured-post-content h2 a {
    color: #fff;
}

.featured-post-content .post-excerpt {
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    max-width: 480px;
}

.featured-post-content .post-meta {
    color: rgba(255, 255, 255, 0.65);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding: 12px 22px;
    background: var(--brand-teal);
    color: #08201b;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
}

.hero-cta:hover {
    background: var(--brand-coral);
    color: #2a0d08;
}

.hero-cta svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.4;
}

.hero-controls {
    display: flex;
    margin-top: 18px;
}

/* Jednoduchý posuvník karuselu: jedna tenká lišta přes celou šířku karuselu
   (žádné jednotlivé tečky). Vyplněná část zleva ukazuje postup – kolikátý
   snímek ze všech je právě aktivní – a plynule se posouvá při každé změně
   snímku (viz transition na .hero-progress-fill a JS v navigation.js). Na
   lištu lze i kliknout kamkoli a karusel skočí na odpovídající snímek. */
.hero-controls .hero-progress {
    position: relative;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: var(--color-border);
    cursor: pointer;
    overflow: hidden;
}

.hero-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    background: var(--brand-teal);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.featured-post.no-media {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.featured-post.no-media .featured-post-content {
    color: var(--color-text);
}

.featured-post.no-media .featured-post-content h2 a {
    color: var(--color-text);
}

.featured-post.no-media .featured-post-content .post-excerpt {
    color: var(--color-text-muted);
}

.featured-post.no-media .featured-post-content .post-meta {
    color: var(--color-text-muted);
}

/* ==========================================================================
   5. Výpis příspěvků (mřížka karet)
   ========================================================================== */
/* minmax(0, 1fr) místo prostého 1fr – sloupce mřížky tak zůstanou vždy
   naprosto stejně široké i tehdy, když je titulek některého článku dlouhý
   nebo obsahuje dlouhé nerozdělitelné slovo (jinak by si grid sloupec s
   takovým obsahem "vynutil" větší minimální šířku a náhledové obrázky by
   pak nebyly všechny stejně velké). */
.post-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

.post-grid.is-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Karta má nyní stejnou "hranu" jako hero obrázek nahoře – náhledový obrázek
   je zarovnaný na plnou šířku karty (bez vnitřního odsazení) a zaoblí se
   společně s kartou (overflow:hidden), takže levá hrana náhledu vždy lícuje
   s levou hranou hero karuselu nad ní. Textový obsah má vlastní odsazení. */
.post-card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 0 0 12px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.18);
}

.post-card .post-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    margin: 0 0 14px;
    aspect-ratio: 4 / 3;
    background: var(--color-bg-alt);
}

.post-card .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.post-card:hover .post-thumb img {
    transform: scale(1.04);
}

.eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-accent);
    margin-bottom: 6px;
}

/* Karta teď nemá vlastní vnitřní odsazení (viz .post-card výše), takže
   textové prvky si nesou odsazení 16px samy – stejné jako byl původní
   součet odsazení karty a textu (12px + 4px), pouze bez odsazení obrázku. */
.post-card .eyebrow {
    margin-left: 16px;
    margin-right: 16px;
}

.post-card h3,
.post-card h2 {
    font-size: 16px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.3;
    margin: 0 0 8px;
    padding: 0 16px;
    /* I dlouhý/nedělitelný titulek se má vejít do pevně stejně širokého
       sloupce mřížky (viz .post-grid minmax(0, 1fr) výše) – zalomí se,
       místo aby sloupec roztahoval a rozhodil velikost náhledů. */
    overflow-wrap: break-word;
    word-break: break-word;
}

.post-meta {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    padding: 0 4px;
}

.post-card .post-meta {
    padding: 0 16px;
}

.post-meta a {
    color: inherit;
}

.post-meta span + span::before {
    content: "·";
    margin: 0 6px;
}

.post-excerpt {
    color: var(--color-text-muted);
    font-size: 14px;
    margin: 0;
    padding: 0 4px;
}

.post-card .post-excerpt {
    padding: 0 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

/* ==========================================================================
   6. Stránkování
   ========================================================================== */
.pagination-nav {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-nav a,
.pagination-nav span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.pagination-nav .current,
.pagination-nav .current.span {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.pagination-nav a:hover {
    border-color: var(--brand-teal);
    color: var(--brand-teal);
}

/* ==========================================================================
   7. Jednotlivý příspěvek
   ========================================================================== */
.single-post-header {
    max-width: 820px;
    margin: 0 auto 32px;
    text-align: center;
}

.single-post-header .eyebrow {
    display: block;
    text-align: center;
}

.single-post-header h1 {
    font-size: 40px;
    font-weight: 900;
    text-transform: none;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}

.single-post-header .post-meta {
    justify-content: center;
    display: flex;
    gap: 4px;
    font-size: 14px;
}

/* Rámeček náhledového obrázku se zmenší přesně na rozměry obrázku (šířka
   "fit-content") a vycentruje – žádné prázdné pozadí po stranách, když je
   obrázek kvůli max-height užší než sloupec článku. */
.single-post-thumb {
    position: relative;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 40px;
    border-radius: var(--radius);
    overflow: hidden;
}

/* Náhledový obrázek u článku se nikdy neořízne (žádné object-fit: cover) –
   pouze se omezí jeho maximální výška, aby na velkých/vysokých fotkách
   nezabíral zbytečně moc místa na stránce. Šířka i výška se dopočítají
   podle poměru stran originálu, obrázek je vždy zobrazen celý. */
.single-post-thumb img {
    max-height: 520px;
    width: auto;
    max-width: 100%;
}

.entry-content {
    max-width: 760px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.75;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content figure {
    margin: 0 0 1.4em;
}

.entry-content h2 {
    font-size: 28px;
    margin-top: 1.6em;
}

.entry-content h3 {
    font-size: 22px;
    margin-top: 1.4em;
}

.entry-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding-left: 20px;
    font-style: italic;
    color: var(--color-text-muted);
}

.entry-content img {
    border-radius: var(--radius);
}

.entry-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
}

.entry-content iframe,
.entry-content embed,
.entry-content video,
.entry-content object {
    max-width: 100%;
}

.entry-content a {
    text-decoration: underline;
    text-decoration-color: var(--color-border);
    text-underline-offset: 3px;
}

.entry-content a:hover {
    text-decoration-color: var(--color-accent);
}

.post-tags {
    max-width: 760px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.post-tags a {
    font-size: 13px;
    padding: 6px 12px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
}

.post-tags a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Odznaky témat (Topic Hubs) u článku – odlišené od štítků plnou barvou. */
.post-topics {
    max-width: 760px;
    margin: 24px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.topic-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--brand-teal);
    color: #1c1c1c;
}

.topic-badge:hover {
    opacity: 0.85;
}

.author-box {
    max-width: 760px;
    margin: 40px auto 0;
    padding: 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.author-box img {
    border-radius: 50%;
    flex-shrink: 0;
    max-width: 64px;
}

.author-box h4 {
    margin: 0 0 6px;
    font-size: 16px;
    font-family: var(--font-body);
}

.author-box p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 14px;
}

.post-nav-links {
    max-width: 760px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.post-nav-links .nav-prev,
.post-nav-links .nav-next {
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.post-nav-links .nav-next {
    text-align: right;
}

.post-nav-links .nav-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

/* ==========================================================================
   8. Komentáře
   ========================================================================== */
.comments-area {
    max-width: 760px;
    margin: 48px auto 0;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.comments-title {
    font-size: 24px;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .children {
    list-style: none;
    padding-left: 32px;
}

.comment-body {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.comment-author img {
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-author .fn {
    font-weight: 700;
    font-style: normal;
}

.comment-metadata {
    font-size: 12px;
    color: var(--color-text-muted);
}

.comment-reply-link {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.comment-respond {
    margin-top: 32px;
}

.comment-form p {
    margin: 0 0 16px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
}

.comment-form textarea {
    min-height: 140px;
}

/* ==========================================================================
   9. Boční panel (widgety)
   ========================================================================== */
.widget {
    margin-bottom: 36px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px;
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-bottom: 14px;
    margin: -20px -20px 16px;
    padding: 16px 20px 14px;
    border-bottom: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-weight: 800;
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}

.widget li:last-child {
    border-bottom: none;
}

.widget select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
}

.search-form {
    display: flex;
    gap: 8px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
}

.search-form button {
    padding: 10px 16px;
    background: var(--color-text);
    color: var(--color-bg);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
}

.search-form button:hover {
    background: var(--brand-teal);
    color: #08201b;
}

/* --- Trending widget --- */
.trending-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: trending;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.trending-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.trending-rank {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: var(--brand-coral);
}

.trending-item:nth-child(2) .trending-rank { background: var(--brand-teal); color: #08201b; }
.trending-item:nth-child(3) .trending-rank { background: var(--brand-blue); color: #0c1330; }
.trending-item:nth-child(4) .trending-rank { background: var(--brand-violet); color: #180c30; }
.trending-item:nth-child(5) .trending-rank { background: var(--brand-pink); color: #300c26; }

.trending-thumb {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-bg-alt);
}

.trending-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trending-body {
    min-width: 0;
}

.trending-body .eyebrow {
    font-size: 10px;
    margin-bottom: 2px;
}

.trending-body h4 {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 2px;
}

.trending-body time {
    font-size: 11px;
    color: var(--color-text-muted);
}

.widget-more-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Kalendář vydání – mini widget --- */
.release-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.release-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.release-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.release-date {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-alt);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.release-date .day {
    font-size: 15px;
    font-weight: 800;
    font-family: var(--font-heading);
}

.release-date .month {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.release-body h4 {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 3px;
    line-height: 1.3;
}

.release-type-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 999px;
}

.release-type-tag.type-hra {
    background: color-mix(in srgb, var(--brand-teal) 20%, transparent);
    color: var(--brand-teal);
}

.release-type-tag.type-film {
    background: color-mix(in srgb, var(--brand-coral) 20%, transparent);
    color: var(--brand-coral);
}

.release-type-tag.type-serialy {
    background: color-mix(in srgb, var(--cat-serialy) 20%, transparent);
    color: var(--cat-serialy);
}

.release-type-tag.type-anime {
    background: color-mix(in srgb, var(--brand-amber) 20%, transparent);
    color: var(--brand-amber);
}

.release-type-tag.type-tcg {
    background: color-mix(in srgb, var(--brand-lime) 20%, transparent);
    color: var(--brand-lime);
}

.release-type-tag.type-komiksy {
    background: color-mix(in srgb, var(--cat-komiksy) 20%, transparent);
    color: var(--cat-komiksy);
}

.release-type-tag.type-tech {
    background: color-mix(in srgb, var(--cat-technologie) 20%, transparent);
    color: var(--cat-technologie);
}

/* --- Kalendář vydání – celá stránka --- */
.release-month-heading {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.release-month-heading:first-child {
    margin-top: 0;
}

.release-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 22px;
}

.release-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.release-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.18);
}

.release-card-media {
    position: relative;
    aspect-ratio: 3 / 4;
    background: var(--color-bg-alt);
}

.release-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.release-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
}

.release-card-date {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(10, 10, 14, 0.75);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.release-card-body {
    padding: 14px 16px;
}

.release-card-body h3 {
    font-size: 15px;
    margin: 0 0 4px;
}

.release-card-body .release-platform {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* ==========================================================================
   10. Archiv / kategorie / vyhledávání / 404
   ========================================================================== */
.archive-header,
.page-header {
    max-width: 820px;
    margin: 0 auto 40px;
    text-align: center;
}

.archive-header h1,
.page-header h1 {
    font-size: 36px;
}

.archive-header .archive-description {
    color: var(--color-text-muted);
}

/* Záhlaví stránky tématu (Topic Hub) s volitelným hero obrázkem na pozadí. */
.topic-hero.has-hero {
    max-width: 100%;
    padding: 64px 24px;
    margin: -20px -20px 40px;
    background-size: cover;
    background-position: center;
    border-radius: 0 0 var(--radius) var(--radius);
}

.topic-hero.has-hero h1,
.topic-hero.has-hero .topic-eyebrow {
    color: #fff;
}

.topic-hero.has-hero .archive-description {
    color: rgba(255, 255, 255, 0.85);
}

.topic-eyebrow {
    display: block;
    text-align: center;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results .search-form {
    max-width: 420px;
    margin: 24px auto 0;
}

/* ==========================================================================
   11. Patička
   ========================================================================== */
.site-footer {
    background: var(--header-bg);
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    margin-top: 60px;
    padding: 48px 0 24px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.site-footer .widget {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 0;
}

.site-footer .widget-title {
    margin: 0 0 16px;
    padding: 0 0 14px;
    color: var(--color-text);
    border-bottom-color: var(--color-border);
}

.site-footer .widget li {
    border-bottom-color: var(--color-border);
}

.site-footer a:hover {
    color: var(--brand-teal);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}

.footer-menu {
    list-style: none;
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   12. WordPress výchozí třídy zarovnání a galerie
   ========================================================================== */
.alignleft {
    float: left;
    margin: 0 24px 12px 0;
}

.alignright {
    float: right;
    margin: 0 0 12px 24px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption-text,
.gallery-caption {
    font-size: 13px;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 6px;
}

/* ==========================================================================
   13. Responzivita
   ========================================================================== */
@media (max-width: 1080px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .post-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .site-header-row {
        gap: 16px;
    }

    .primary-navigation {
        display: none;
    }

    .primary-navigation.is-open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--header-bg);
        border-top: 1px solid var(--color-border);
        padding: 8px 24px 16px;
        max-height: calc(100vh - 100%);
        overflow-y: auto;
    }

    .primary-menu {
        flex-direction: column;
        gap: 0;
    }

    /* Větší dotykové plochy položek menu na dotykových zařízeních */
    .primary-menu a {
        padding: 14px 4px;
    }

    .primary-menu ul {
        position: static;
        border: none;
        box-shadow: none;
        display: none;
        padding-left: 16px;
        background: transparent;
    }

    .primary-menu ul a {
        padding: 12px 16px;
    }

    .primary-menu li.submenu-open > ul {
        display: block;
    }

    .menu-toggle {
        display: inline-flex;
    }

    /* Větší dotykové plochy ikon v hlavičce (vyhledávání, režim, menu) */
    .header-icon-btn,
    .menu-toggle {
        width: 42px;
        height: 42px;
    }

    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .container {
        padding: 0 18px;
    }

    .site-main-wrap {
        padding: 24px 0 44px;
    }

    .site-logo-full {
        height: 52px;
    }

    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-slides,
    .featured-post {
        min-height: 380px;
    }

    .featured-post-content {
        padding: 28px;
        max-width: 100%;
    }

    .featured-post-content h2 {
        font-size: 28px;
    }

    .single-post-header h1 {
        font-size: 30px;
    }

    .single-post-thumb img {
        max-height: 380px;
    }

    .archive-header h1,
    .page-header h1 {
        font-size: 30px;
    }

    .entry-content {
        font-size: 16px;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .post-nav-links {
        grid-template-columns: 1fr;
    }

    .author-box {
        flex-direction: column;
    }

    .comment-list .children {
        padding-left: 20px;
    }

    .header-search {
        right: 12px;
        left: 12px;
    }

    .header-search .search-form {
        width: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .site-header-row {
        gap: 12px;
        padding: 12px 0;
    }

    .site-logo-full {
        height: 44px;
    }

    .site-description {
        font-size: 9px;
        letter-spacing: 0.14em;
    }

    .header-tools {
        gap: 0;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .hero-slides,
    .featured-post {
        min-height: 320px;
    }

    .featured-post-content {
        padding: 20px;
    }

    .featured-post-content h2 {
        font-size: 24px;
    }

    .single-post-header h1 {
        font-size: 26px;
    }

    .single-post-thumb img {
        max-height: 280px;
    }

    .archive-header h1,
    .page-header h1 {
        font-size: 24px;
    }

    .release-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 14px;
    }

    .widget {
        padding: 16px;
    }

    .widget-title {
        margin: -16px -16px 14px;
        padding: 14px 16px 12px;
    }
}
