/* Loupik Zprávy — vlastní moderní UI (responsive v2) */

.page-zpravy {
    --zp-ink: #14121a;
    --zp-muted: #5c5668;
    --zp-line: rgba(20, 18, 26, 0.1);
    --zp-soft: #f7f2f4;
    --zp-panel: #ffffff;
    --zp-accent: #db2777;
    --zp-accent-deep: #9d174d;
    --zp-live: #e11d48;
    --zp-hero-bg: #1a1520;
    --zp-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --zp-sans: 'Inter', system-ui, sans-serif;
    background:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(236, 72, 153, 0.14), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(14, 165, 233, 0.1), transparent 50%),
        linear-gradient(180deg, #fff8fb 0%, #f4f7fb 42%, #ffffff 100%);
    color: var(--zp-ink);
    font-family: var(--zp-sans);
    overflow-x: clip;
    overflow-y: visible;
}

html:has(body.page-zpravy) {
    overflow-x: clip;
    overflow-y: visible;
}

.page-zpravy > .main-container {
    overflow: visible !important;
    padding-bottom: 0;
}

.page-zpravy .zp-shell {
    overflow: visible;
}

.zp-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1rem 3.5rem;
    width: 100%;
    box-sizing: border-box;
}

.zp-main,
.zp-layout,
.zp-grid3,
.zp-card,
.zp-feature,
.zp-list,
.zp-list-copy {
    min-width: 0;
    max-width: 100%;
}

.zp-catbar-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    margin: 0.35rem 0 1.35rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--zp-line);
}

.zp-catbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.zp-cat {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.78rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--zp-muted);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background 0.15s ease, color 0.15s ease;
}

.zp-cat:hover {
    background: rgba(219, 39, 119, 0.08);
    color: var(--zp-accent-deep);
}

.zp-cat.is-active {
    background: var(--zp-ink);
    color: #fff;
}

.zp-meta-date {
    font-size: 0.92rem;
    color: var(--zp-ink);
    font-weight: 600;
    letter-spacing: 0.01em;
    opacity: 0.88;
}

.zp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2rem;
    align-items: stretch;
}

.zp-hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 320px;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: var(--zp-hero-bg);
    box-shadow: 0 18px 40px rgba(20, 18, 26, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zp-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(20, 18, 26, 0.16);
}

.zp-hero-copy {
    padding: 1.6rem 1.5rem 1.45rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.7rem;
    color: #f8fafc;
    background:
        linear-gradient(145deg, #1f1724 0%, #2a1830 55%, #1a2233 100%);
}

.zp-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f9a8d4;
}

.zp-hero-title {
    font-family: var(--zp-serif);
    font-size: clamp(1.45rem, 2.4vw, 2.05rem);
    font-weight: 700;
    line-height: 1.18;
    margin: 0;
    color: #fff;
}

.zp-hero-lead {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(248, 250, 252, 0.78);
}

.zp-hero-time {
    font-size: 0.78rem;
    color: rgba(248, 250, 252, 0.55);
}

.zp-hero-media {
    position: relative;
    min-height: 220px;
    align-self: stretch;
    background: #1a1520;
    overflow: hidden;
}

.zp-hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.zp-grid3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
    margin-top: 1.35rem;
}

.zp-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.zp-card-media {
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    background: #e8e4ea center/cover no-repeat;
    box-shadow: inset 0 0 0 1px rgba(20, 18, 26, 0.06);
}

.zp-card-title {
    font-family: var(--zp-serif);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.28;
    margin: 0;
}

.zp-card:hover .zp-card-title {
    color: var(--zp-accent-deep);
}

.zp-card-meta {
    font-size: 0.75rem;
    color: var(--zp-muted);
}

.zp-feature {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.15rem;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.35rem;
    border-top: 1px solid var(--zp-line);
    text-decoration: none;
    color: inherit;
}

.zp-feature-media {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    background: #e8e4ea center/cover no-repeat;
}

.zp-feature-title {
    font-family: var(--zp-serif);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0.35rem 0 0.45rem;
}

.zp-feature:hover .zp-feature-title {
    color: var(--zp-accent-deep);
}

.zp-feature-lead {
    margin: 0;
    color: var(--zp-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.zp-live {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.45rem;
    border-radius: 4px;
    background: var(--zp-live);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.zp-live--sm {
    margin-right: 0.35rem;
    vertical-align: 0.1em;
}

.zp-section-title {
    font-family: var(--zp-serif);
    font-size: clamp(1.45rem, 2vw, 1.7rem);
    font-weight: 700;
    margin: 2.1rem 0 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px solid var(--zp-line);
}

.zp-list {
    display: grid;
    gap: 0;
}

.page-zpravy .zp-list-item {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.35rem;
    align-items: start;
    text-decoration: none;
    color: inherit;
    padding: 1.35rem 0.35rem;
    margin: 0 -0.35rem;
    border-bottom: 1px solid var(--zp-line);
    border-radius: 10px;
    transition: background 0.15s ease;
}

.page-zpravy .zp-list-item:hover {
    background: rgba(219, 39, 119, 0.04);
}

.page-zpravy .zp-list-media {
    width: 260px;
    height: 168px;
    border-radius: 12px;
    background: #e8e4ea center/cover no-repeat;
    box-shadow: inset 0 0 0 1px rgba(20, 18, 26, 0.06);
    flex-shrink: 0;
}

.page-zpravy .zp-list-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 0.1rem;
}

.page-zpravy .zp-list-copy h3 {
    font-family: var(--zp-serif);
    font-size: clamp(1.28rem, 2.1vw, 1.55rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    color: var(--zp-ink);
}

.page-zpravy .zp-list-copy h3 .zp-live {
    margin-right: 0.4rem;
    vertical-align: 0.15em;
}

.page-zpravy .zp-list-item:hover h3 {
    color: var(--zp-accent-deep);
}

.page-zpravy .zp-list-lead {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.5;
    color: #3f3a48;
}

.page-zpravy .zp-list-meta {
    font-size: 0.88rem;
    color: var(--zp-muted);
    margin-top: 0.15rem;
}

.zp-list-ad {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--zp-line);
}

.zp-side {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-self: stretch;
    width: 100%;
    min-height: 100%;
}

.zp-rail {
    background: var(--zp-panel);
    border: 1px solid var(--zp-line);
    border-radius: 16px;
    padding: 1rem 1rem 0.85rem;
    box-shadow: 0 10px 28px rgba(20, 18, 26, 0.05);
    flex: 0 0 auto;
}

.zp-side-ad {
    position: sticky;
    top: 1rem;
    z-index: 4;
    background: var(--zp-panel);
    border: 1px solid var(--zp-line);
    border-radius: 16px;
    padding: 0.35rem;
    box-shadow: 0 10px 28px rgba(20, 18, 26, 0.05);
    min-height: 0;
    overflow: hidden;
    flex: 0 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.zp-side-ad.is-fixed {
    position: fixed !important;
    top: 1rem !important;
    z-index: 40 !important;
}

.zp-side-ad-ph {
    display: none;
    flex: 0 0 auto;
    width: 100%;
}

.zp-side-ad-ph.is-on {
    display: block;
}

.zp-rail-head {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--zp-line);
}

.zp-rail-head h2 {
    font-family: var(--zp-serif);
    font-size: 1.25rem;
    margin: 0;
}

.zp-feed {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid rgba(219, 39, 119, 0.18);
}

.zp-feed-item {
    position: relative;
    padding: 0 0 1rem 0.95rem;
}

.zp-feed-item:last-child {
    padding-bottom: 0.25rem;
}

.zp-feed-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0.35rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--zp-accent);
    box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.15);
}

.zp-feed-time {
    display: block;
    font-size: 0.72rem;
    color: var(--zp-muted);
    margin-bottom: 0.2rem;
}

.zp-feed-item a {
    color: var(--zp-ink);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
}

.zp-feed-item a:hover {
    color: var(--zp-accent-deep);
}

.zp-empty {
    padding: 3rem 1rem;
    text-align: center;
}

.zp-empty h1 {
    font-family: var(--zp-serif);
    margin: 0 0 0.5rem;
}

.logo-rubric--zpravy {
    background: rgba(219, 39, 119, 0.12);
    color: var(--zp-accent-deep);
}

/* —— Úzký desktop / tablet: jen sloupec pod sebe, layout jako dřív —— */
@media (max-width: 960px) {
    .zp-layout {
        grid-template-columns: 1fr;
    }
    .zp-side {
        min-height: 0;
    }
    .zp-side-ad,
    .zp-side-ad.is-fixed {
        position: static !important;
        top: auto !important;
        left: auto !important;
        width: auto !important;
    }
    .zp-side-ad-ph {
        display: none !important;
    }
}

/* —— Mobil —— */
@media (max-width: 760px) {
    .page-zpravy > .main-container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        padding-top: 1rem;
    }
    .zp-shell {
        padding: 0 0 2rem;
    }
    .zp-catbar-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        margin: 0 0 1rem;
        padding-bottom: 0.75rem;
    }
    .zp-catbar {
        flex-wrap: nowrap;
        gap: 0.4rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.15rem;
        margin: 0 -0.15rem;
        padding-left: 0.15rem;
        padding-right: 0.15rem;
    }
    .zp-catbar::-webkit-scrollbar {
        display: none;
    }
    .zp-cat {
        flex: 0 0 auto;
        font-size: 0.82rem;
        padding: 0.4rem 0.72rem;
    }
    .zp-meta-date {
        font-size: 0.86rem;
    }
    .zp-hero {
        grid-template-columns: 1fr;
        border-radius: 14px;
    }
    .zp-hero-media {
        min-height: 200px;
        aspect-ratio: 16 / 10;
        order: -1;
    }
    .zp-hero-copy {
        padding: 1.15rem 1.1rem 1.2rem;
        gap: 0.5rem;
    }
    .zp-hero-title {
        font-size: clamp(1.25rem, 5.5vw, 1.55rem);
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .zp-hero-lead {
        font-size: 0.9rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .zp-grid3 {
        grid-template-columns: 1fr;
        gap: 1.15rem;
        margin-top: 1.1rem;
    }
    .zp-card-media {
        border-radius: 10px;
    }
    .zp-card-title {
        font-size: 1.05rem;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .zp-feature {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-top: 1.2rem;
        padding-top: 1.1rem;
    }
    .zp-feature-media {
        width: 100%;
        aspect-ratio: 16 / 10;
    }
    .zp-feature-title {
        font-size: 1.2rem;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .zp-section-title {
        font-size: 1.3rem;
        margin: 1.5rem 0 0.75rem;
    }
    .page-zpravy .zp-list-item {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 0.85rem;
        padding: 0.95rem 0;
        margin: 0;
        border-radius: 0;
    }
    .page-zpravy .zp-list-media {
        width: 120px;
        height: 88px;
        border-radius: 10px;
    }
    .page-zpravy .zp-list-copy h3 {
        font-size: 1.05rem;
        line-height: 1.3;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .page-zpravy .zp-list-lead {
        font-size: 0.88rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .page-zpravy .zp-list-meta {
        font-size: 0.78rem;
    }
    .zp-list-ad {
        padding: 0.25rem 0;
    }
    .zp-rail,
    .zp-side-ad {
        border-radius: 14px;
    }
    .zp-feed-item a {
        font-size: 0.88rem;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

@media (max-width: 520px) {
    .page-zpravy .zp-list-item {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }
    .page-zpravy .zp-list-media {
        width: 100%;
        height: 180px;
    }
    .page-zpravy .zp-list-lead {
        -webkit-line-clamp: 3;
    }
    .zp-hero-media {
        min-height: 180px;
        aspect-ratio: 16 / 9;
    }
    .zp-empty {
        padding: 2rem 0.5rem;
    }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .zp-hero,
    .zp-card,
    .zp-list-item {
        transition: none;
    }
    .zp-hero:hover {
        transform: none;
    }
}
