/* Szablon udostepnij_nowa – profesjonalny wygląd */

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

body.site {
    font-family: "Inter", "Segoe UI", Geneva, Tahoma, sans-serif;
    background: #f8f9fa;
    color: #212121;
    line-height: 1.6;
}

.header {
    background: linear-gradient(135deg, #c62828 0%, #d32f2f 50%, #b71c1c 100%);
    padding: 14px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    font-family: "Oswald", "Impact", sans-serif;
    font-size: 1.85rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0,0,0,0.35);
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo:hover {
    transform: scale(1.03);
}

.logo-text {
    color: #fff;
}

.logo-text span {
    color: #fff;
}

.flag-pl {
    display: inline-block;
    width: 32px;
    height: 24px;
    background: linear-gradient(to bottom, #fff 50%, #dc143c 50%);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
    flex-shrink: 0;
    align-self: center;
}

.logo-text .pl {
    text-transform: lowercase !important;
    font-size: 1.45rem;
    letter-spacing: 0;
    margin-left: 1px;
}

.logo .arrow {
    font-size: 1.4rem;
    margin-left: 2px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo:hover .arrow {
    transform: translate(4px, -4px);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.main-nav a.nav-btn,
.main-nav .nav-btn {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
    background: rgba(255,255,255,0.1);
    display: inline-block;
    transform: none !important;
}

.main-nav a.nav-btn:hover,
.main-nav a.nav-btn.active {
    background: #fff;
    color: #d32f2f;
    text-decoration: none;
    transform: none !important;
}

.categories-nav {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 16px;
    overflow-x: auto;
}

.categories-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: center;
    overflow-x: auto;
}

.categories-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 7px 12px;
    border-radius: 6px;
    background: #f5f5f5;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}

.categories-nav a:hover,
.categories-nav a.active {
    background: #d32f2f;
    color: #fff;
}

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

.categories {
    margin-bottom: 20px;
}

.categories ul {
    list-style: none;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.categories a {
    background: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    border: 1px solid #e0e0e0;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.categories a:hover,
.categories a.active {
    background: #d32f2f;
    color: #fff;
    border-color: #d32f2f;
}

/* Style dla artykułów */
.blog .item,
.blog-item,
.item-page {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
    overflow: hidden;
}

.blog .item:hover,
.item-page:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Ukryj ilustrację wprowadzenia (żeby nie dublować zdjęcia z treści) */
.item-image,
.article-intro-image,
.pull-left.item-image,
.pull-right.item-image,
.float-start.item-image,
.float-end.item-image {
    display: none !important;
}

.blog .item img,
.blog-item img,
.item-page img,
.article-content img,
.introtext img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    margin: 12px 0;
}

.blog .item h2,
.item-page h1,
.item-page h2,
.blog-item h2 {
    font-family: "Oswald", "Inter", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    letter-spacing: 0.2px;
}

.blog .item h2 a,
.blog-item h2 a,
.item-page h1 a {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 700;
}

.blog .item h2 a:hover,
.blog-item h2 a:hover,
.item-page h1 a:hover {
    color: #b71c1c;
    text-decoration: underline;
}

/* Klikalne zdjęcie w liście artykułów */
.blog .item img,
.blog-item img,
.introtext img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 12px 0;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.blog .item img:hover,
.blog-item img:hover {
    opacity: 0.92;
    transform: scale(1.01);
}

.blog .item .introtext,
.item-page .article-info,
.item-page p {
    color: #444;
    font-size: 0.98rem;
    margin-bottom: 12px;
}

.readmore,
.btn-secondary {
    display: block;
    text-align: center;
    margin: 18px 0 10px;
}

.readmore a,
.btn-secondary {
    display: inline-block;
    background: #d32f2f;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.05rem;
    padding: 12px 32px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.readmore a::before {
    content: "Czytaj więcej...";
}

.readmore a {
    font-size: 0;
}

.readmore a::before {
    font-size: 1.05rem;
}

.readmore a:hover,
.btn-secondary:hover {
    background: #b71c1c;
    color: #fff !important;
    text-decoration: none;
}

/* Ukryj nawigację poprzedni/następny artykuł */
.pagenav,
.pager,
ul.pagenav,
.article-nav,
.pagination {
    display: none !important;
}

/* Sekcja powiązanych artykułów */
.related-articles {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.related-articles h3 {
    font-family: "Oswald", sans-serif;
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: #212121;
}

.footer {
    text-align: center;
    padding: 36px 16px;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #e0e0e0;
    margin-top: 50px;
    background: #fff;
}

.footer a {
    color: #d32f2f;
    text-decoration: none;
    margin: 0 6px;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

/* Formularz kontaktowy */
.contact-form,
.kontakt-form {
    background: #fff;
    padding: 24px;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

@media (max-width: 700px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .logo {
        font-size: 1.6rem;
    }
    .main-nav {
        width: 100%;
        margin-top: 8px;
    }
}

/* Prevent red/white hover bars on content links */
.container a:hover,
.container a:focus,
.blog a:hover,
.blog-item a:hover,
.item-page a:hover,
.ud-home-card a:hover {
    background-image: none;
}
.container a:not(.btn):not(.nav-btn):not(.readmore a),
.blog a:not(.btn),
.ud-home-card a:not(.btn) {
    /* keep text links clean */
}

/* === Homepage cleanup: hide Joomla article chrome === */
.article-info,
.article-info-term,
.article-info dd,
.createdby,
.category-name,
.hits,
.published,
.parent-category-name,
.content_rating,
.tags,
.item-page > .article-info,
.item-page .article-info,
.com-content-article .article-info,
.com-content-article__info,
.article-aside,
.article-footer,
.related-articles,
.relateditems,
.related-items,
ul.related-articles,
.blog-item .article-info,
div.article-info.muted {
    display: none !important;
}

/* Related "Zobacz też" blocks */
.related-articles,
.relateditems,
div[itemprop="relatedLink"],
.item-page .pager,
.item-navigation {
    display: none !important;
}

/* Hide empty article shell leftover under module */
.item-page .page-header:empty,
.item-page h1:empty,
.item-page .article-can-edit {
    display: none !important;
}

/* Category hamburger menu */
.cat-toggle {
    display: none;
    background: #c00;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    margin: 8px auto;
}
@media (max-width: 700px) {
    .cat-toggle { display: block; }
    .categories-inner {
        display: none;
        flex-direction: column;
        padding: 8px;
    }
    .categories-inner.open { display: flex; }
    .categories-inner a {
        padding: 10px 16px;
        border-bottom: 1px solid #eee;
    }
}

/* Prevent any ::after on category links */
.categories-nav a::after,
.categories-inner a::after {
    content: none !important;
    display: none !important;
}
