/* Reset i zmienne */
:root {
    --wp-red: #e30613;
    --wp-dark: #141414;
    --wp-text: #1d1d1f;
    --wp-muted: #6e6e73;
    --wp-bg: #f4f5f7;
    --wp-white: #ffffff;
    --wp-border: #e2e4e8;
    --sec-color: #e30613;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--wp-bg);
    color: var(--wp-text);
    line-height: 1.45;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--wp-red);
}

.container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Gorny pasek narzedziowy */
.top-utility-bar {
    background: #1c1c1e;
    color: #d1d1d6;
    font-size: 12px;
    padding: 6px 0;
}

.utility-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.utility-links {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.utility-links a:hover {
    color: #fff;
}

.util-pill {
    background: #2c2c2e;
    padding: 2px 8px;
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dot-red {
    width: 7px;
    height: 7px;
    background: var(--wp-red);
    border-radius: 50%;
    display: inline-block;
}

/* Header i Logo */
.site-header {
    background: var(--wp-white);
    border-bottom: 1px solid var(--wp-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.header-main-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    gap: 20px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wp-badge-logo {
    background: var(--wp-red);
    color: #fff;
    font-weight: 900;
    font-size: 26px;
    padding: 4px 12px;
    border-radius: 6px;
    letter-spacing: -1px;
}

.wp-brand-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--wp-dark);
}

.custom-logo-img {
    max-height: 44px;
    width: auto;
}

.portal-search-form {
    display: flex;
    max-width: 420px;
    width: 100%;
}

.portal-search-form input {
    flex: 1;
    padding: 9px 14px;
    border: 1px solid var(--wp-border);
    border-right: none;
    border-radius: 20px 0 0 20px;
    font-size: 14px;
    outline: none;
}

.portal-search-form button {
    background: var(--wp-red);
    color: #fff;
    border: none;
    padding: 0 18px;
    border-radius: 0 20px 20px 0;
    font-weight: 700;
    cursor: pointer;
}

/* Nawigacja */
.main-portal-nav {
    border-top: 1px solid var(--wp-border);
    background: #fff;
}

.main-nav-list {
    list-style: none;
    display: flex;
    gap: 4px;
    overflow-x: auto;
}

.main-nav-list li a {
    display: block;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.main-nav-list li a:hover,
.main-nav-list li.current-menu-item a {
    color: var(--wp-red);
    border-bottom-color: var(--wp-red);
}

/* Pasek PILNE */
.breaking-news-bar {
    background: var(--wp-red);
    color: #fff;
    padding: 8px 0;
}

.breaking-flex {
    display: flex;
    align-items: center;
    gap: 12px;
}

.breaking-badge {
    background: #fff;
    color: var(--wp-red);
    font-weight: 900;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breaking-content a,
.breaking-content span {
    color: #fff;
    font-weight: 700;
    font-size: 15px;
}

.breaking-content a:hover {
    text-decoration: underline;
    color: #fff;
}

/* Reklamy */
.ad-slot-top {
    margin: 16px auto;
    text-align: center;
}

.ad-placeholder {
    background: #e9ecef;
    border: 1px dashed #adb5bd;
    color: #6c757d;
    font-size: 12px;
    font-weight: 600;
    padding: 24px;
    border-radius: 6px;
}

.ad-placeholder.ad-tall {
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* HERO GRID */
.hero-grid-section {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.hero-side-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Karty artykulow */
.portal-card {
    background: var(--wp-white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--wp-border);
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.portal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.card-thumb-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #222;
}

.card-hero .card-thumb-link {
    height: 360px;
}

.card-medium .card-thumb-link {
    height: 145px;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c3e50, #4ca1af);
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
}

.card-badge-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--wp-red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
}

.card-body {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--wp-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    font-weight: 700;
}

.meta-cpt {
    color: var(--sec-color, var(--wp-red));
}

.card-hero .card-title {
    font-size: 26px;
    line-height: 1.22;
    font-weight: 800;
    margin-bottom: 10px;
}

.card-medium .card-title {
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
}

.card-hot .card-title a {
    color: var(--wp-red);
}

.card-excerpt {
    font-size: 14px;
    color: #4a4a4f;
}

/* Uklad glowny: strumien sekcji + sidebar */
.portal-content-layout,
.portal-single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

.cpt-block-section {
    background: var(--wp-white);
    border: 1px solid var(--wp-border);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 22px;
}

.section-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--wp-border);
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sec-accent-bar {
    width: 6px;
    height: 22px;
    background: var(--sec-color, var(--wp-red));
    border-radius: 2px;
    display: inline-block;
}

.sec-more-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--sec-color, var(--wp-red));
}

.cpt-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Sidebar */
.sidebar-widget {
    background: var(--wp-white);
    border: 1px solid var(--wp-border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    border-bottom: 2px solid var(--wp-red);
    padding-bottom: 8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-dot {
    width: 9px;
    height: 9px;
    background: var(--wp-red);
    border-radius: 50%;
    display: inline-block;
}

.ticker-news-list {
    list-style: none;
}

.ticker-news-list li {
    padding: 9px 0;
    border-bottom: 1px solid var(--wp-border);
    font-size: 13.5px;
    line-height: 1.35;
}

.ticker-news-list li:last-child {
    border-bottom: none;
}

.ticker-time {
    color: var(--wp-red);
    font-weight: 800;
    font-size: 12px;
    margin-right: 6px;
}

/* Single Article */
.single-article-box {
    background: var(--wp-white);
    border: 1px solid var(--wp-border);
    border-radius: 8px;
    padding: 28px;
    margin-bottom: 24px;
}

.breadcrumbs {
    font-size: 13px;
    color: var(--wp-muted);
    margin-bottom: 12px;
}

.single-kicker {
    display: inline-block;
    background: var(--wp-red);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.single-title {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 14px;
}

.single-meta-bar {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: var(--wp-muted);
    padding-bottom: 14px;
    border-bottom: 1px solid var(--wp-border);
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.single-lead {
    font-size: 18px;
    font-weight: 600;
    color: #2c2c2e;
    margin-bottom: 20px;
}

.single-featured-img img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 20px;
}

.single-content {
    font-size: 16.5px;
    line-height: 1.7;
}

.single-content p {
    margin-bottom: 16px;
}

/* Archiwum */
.archive-header-bar {
    background: var(--wp-white);
    padding: 18px 20px;
    border-radius: 8px;
    border: 1px solid var(--wp-border);
    margin-bottom: 20px;
}

.archive-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
}

.archive-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}

.empty-portal-box {
    background: #fff;
    padding: 32px;
    border-radius: 8px;
    border: 1px solid var(--wp-border);
    text-align: center;
}

.no-posts-muted {
    color: var(--wp-muted);
    font-size: 14px;
}

/* Stopka */
.site-footer {
    background: #141414;
    color: #a1a1a6;
    padding: 36px 0 24px;
    margin-top: 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #2c2c2e;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-site-name {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.footer-nav-wrap {
    padding: 18px 16px;
}

.footer-menu-list {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-menu-list a {
    color: #d1d1d6;
    font-size: 14px;
}

.footer-bottom {
    font-size: 13px;
    color: #6e6e73;
    padding-top: 10px;
}

/* Responsywnosc */
@media (max-width: 992px) {
    .hero-grid-section,
    .portal-content-layout,
    .portal-single-layout {
        grid-template-columns: 1fr;
    }
    .archive-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hero-side-grid,
    .cpt-cards-grid,
    .archive-cards-grid {
        grid-template-columns: 1fr;
    }
    .header-main-flex {
        flex-direction: column;
        align-items: stretch;
    }
    .portal-search-form {
        max-width: 100%;
    }
}

/* Sekcja Komentarzy */
.meta-comments-link {
    color: var(--wp-red);
    font-weight: 700;
}

.portal-comments-section {
    background: var(--wp-white);
    border: 1px solid var(--wp-border);
    border-radius: 8px;
    padding: 24px 28px;
    margin-bottom: 24px;
}

.comments-header-bar {
    border-bottom: 2px solid var(--wp-border);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.portal-comment-form-wrap {
    background: #f8f9fa;
    border: 1px solid var(--wp-border);
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 24px;
}

.portal-comment-form-wrap .comment-reply-title {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 8px;
}

.portal-comment-form-wrap .comment-notes {
    font-size: 12.5px;
    color: var(--wp-muted);
    margin-bottom: 12px;
}

.portal-comment-form-wrap p {
    margin-bottom: 12px;
}

.portal-comment-form-wrap label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.portal-comment-form-wrap input[type="text"],
.portal-comment-form-wrap input[type="email"],
.portal-comment-form-wrap input[type="url"],
.portal-comment-form-wrap textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--wp-border);
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
}

.portal-comment-form-wrap input[type="checkbox"] {
    width: auto;
    margin-right: 6px;
}

.portal-comment-form-wrap .comment-form-cookies-consent label {
    display: inline;
    font-weight: 400;
    font-size: 13px;
}

.btn-portal-submit {
    background: var(--wp-red);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.btn-portal-submit:hover {
    opacity: 0.9;
}

.portal-comment-list {
    list-style: none;
}

.portal-comment-list .comment {
    border-bottom: 1px solid var(--wp-border);
    padding: 16px 0;
}

.portal-comment-list .comment:last-child {
    border-bottom: none;
}

.portal-comment-list .children {
    list-style: none;
    margin-left: 28px;
    padding-left: 16px;
    border-left: 2px solid var(--wp-border);
    margin-top: 12px;
}

.comment-body {
    font-size: 14.5px;
}

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

.comment-author.vcard img {
    border-radius: 50%;
}

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

.comment-meta.commentmetadata {
    font-size: 12px;
    color: var(--wp-muted);
    margin-bottom: 8px;
}

.comment-body p {
    margin-bottom: 8px;
}

.comment-reply-link {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--wp-red);
    background: #fff0f1;
    padding: 3px 10px;
    border-radius: 4px;
}

.no-comments-yet {
    color: var(--wp-muted);
    font-size: 14px;
    text-align: center;
    padding: 12px 0;
}

/* Kolorowe okladki zapasowe wg dzialow */
.card-img-placeholder {
    flex-direction: column;
    padding: 16px;
    text-align: center;
    gap: 6px;
}
.cpt-bg-wiadomosci { background: linear-gradient(135deg, #b8000c, #1f2937); }
.cpt-bg-sport { background: linear-gradient(135deg, #006b30, #111827); }
.cpt-bg-finanse { background: linear-gradient(135deg, #004494, #111827); }
.cpt-bg-tech { background: linear-gradient(135deg, #5b21b6, #111827); }
.cpt-bg-rozrywka { background: linear-gradient(135deg, #be185d, #111827); }
.cpt-bg-moto { background: linear-gradient(135deg, #c2410c, #111827); }
.placeholder-tag {
    background: rgba(255,255,255,0.18);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    letter-spacing: 1px;
}
.placeholder-sub {
    font-size: 13px;
    font-weight: 600;
    color: #f3f4f6;
}
