/*
Theme Name: pj
Theme URI: https://example.com/pj
Author: Your Name
Author URI: https://example.com
Description: A starter theme for WordPress, PHP 8 compatible.
Version: 1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-theme, php8
Text Domain: pj
*/

/* ===== WORDPRESS CONTENT ===== */

nav {
    /* display: none !important; */
}

:root {
    --bg: #f4f1ea;
    --card: #ffffff;
    --text: #101010;
    --muted: #6f6f6f;
    --line: #ddd5ca;
    --accent: #0d5ea8;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.btn-main {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 15px 24px;
    font-weight: 800;
}

.btn-alt {
    border: 1px solid var(--accent);
    border-radius: 999px;
    padding: 15px 24px;
    font-weight: 800;
    background: transparent;
    color: var(--accent);
}

/* Template CSS */
.cover-image-prev {
    border-radius: 29px;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(244, 241, 234, .94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -.05em;
}

.topnav a {
    font-size: .92rem;
    font-weight: 700;
    color: #333;
}

.hero {
    padding: 48px 0 60px;
}

.issue-cover {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    min-height: 720px;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, .1), rgba(0, 0, 0, .5)),
        url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?q=80&w=1600&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    box-shadow: 0 35px 80px rgba(0, 0, 0, .18);
}

.issue-overlay {
    position: absolute;
    inset: 0;
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.issue-badge {
    display: inline-block;
    background: #111;
    color: #fff;
    font-size: .75rem;
    font-weight: 900;
    padding: .55rem .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.issue-number {
    font-size: 7rem;
    font-weight: 900;
    line-height: .9;
    color: #fff;
    letter-spacing: -.08em;
}

.issue-meta {
    color: rgba(255, 255, 255, .9);
    font-size: 1rem;
    font-weight: 500;
}

.hero-copy {
    padding-left: 20px;
}

.hero-copy h1 {
    font-size: 4.3rem;
    line-height: .88;
    letter-spacing: -.08em;
    font-weight: 900;
    margin: 18px 0 24px;
}

.hero-copy p {
    font-size: 1.08rem;
    color: var(--muted);
    line-height: 1.8;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.section {
    padding: 0px;
}

.section-label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 900;
    margin-bottom: 24px;
}

.article-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    min-height: 380px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .12);
    transition: transform .25s ease;
}

.article-card:hover {
    transform: translateY(-3px);
}

.article-card.large {
    min-height: 620px;
}

.article-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .08), rgba(0, 0, 0, .65));
}

.article-content {
    position: absolute;
    left: 0;
    bottom: 28px;
    max-width: 90%;
    border-radius: 0 24px 24px 0;
    z-index: 2;
}

.article-category {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-block;
    background: rgba(255, 255, 255, .82);
    color: #111;
    padding: .45rem .7rem;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.article-title {
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, .92);
    border-radius: 0 6px 6px 0;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 5px;
    line-height: 1.16;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 0px;
    text-decoration: none;
    color: inherit;
}

.article-small .article-title {
    font-size: 1.4rem;
}

.editorial-box {
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 28px;
    padding: 38px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .04);
}

.editorial-label {
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #8f7350;
    margin-bottom: 24px;
}

.editorial-text {
    color: #444;
    font-size: 1rem;
    line-height: 1.95;
}

.editorial-text p {
    margin: 0 0 18px;
}

.editorial-last {
    margin-top: 28px;
    font-weight: 700;
    color: #111;
}

/* Additional WordPress default styles omitted for brevity */

.article-author { color: #8f7350 !important; }
.article-author a { color: #8f7350 !important; text-decoration: none !important; }

/* ===== custom nav-link styles requested by user ===== */

/* Use Bootstrap utility (.ms-auto) to push the whole menu to the right (changed in header.php).
   Style anchors inside a right-aligned navbar: black text, no underline. Target the anchor (<a>)
   because WP menu wraps link text in a <span class="nav-link"> which doesn't suppress the anchor underline. */
.navbar-nav.ms-auto a,
.navbar-nav.ms-auto a.nav-link,
.navbar-nav.ms-auto li > a {
    color: #000 !important;            /* black text */
    text-decoration: none !important;  /* no underline */
    display: inline-block;             /* keep inline layout */
    padding: 0 .5rem;                  /* small horizontal gap */
}

/* Also ensure any spans inside links don't introduce underlines */
.navbar-nav.ms-auto a .nav-link {
    color: inherit !important;
    text-decoration: none !important;
}

/* Ensure hover/focus/active/visited stay without underline and keep color */
.navbar-nav.ms-auto a:hover,
.navbar-nav.ms-auto a:focus,
.navbar-nav.ms-auto a:active,
.navbar-nav.ms-auto a:visited {
    color: #000 !important;
    text-decoration: none !important;
}

/* On smaller screens (collapsed mobile menu) let links stack normally */
@media (max-width: 991.98px) {
    .navbar-nav.ms-auto a,
    .navbar-nav.ms-auto a.nav-link {
        display: block;
        padding: .5rem 1rem;
    }
}

/* Remove any default outline if desired (preserve accessible focus style if you add custom) */
.navbar-nav.ms-auto a:focus {
    outline: 2px solid transparent; /* keep focus visible via other means if needed */
}

/* If underline still shows due to text-decoration-skip-ink or UA styles, force decoration-color */
.navbar-nav.ms-auto a,
.navbar-nav.ms-auto a .nav-link {
    -webkit-text-decoration-color: transparent !important;
    text-decoration-color: transparent !important;
}

.hero-buttons a {
    background: #8f7350 !important;
    text-decoration: none !important;
    color: #ffffff !important;
    border: 0px !important;
}

.hero-buttons a:hover {
    background: #101010 !important;
}

.sidebar .cover-wrap img {
    border-radius: 28px;
}

/* WordPress Editor Styles */
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: 1em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1em;
    margin-bottom: 1em;
}

.wp-caption {
    background: #f5f5f5;
    border: 1px solid #ddd;
    max-width: 100%;
    padding: 4px;
    text-align: center;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 100%;
    padding: 0;
    width: auto;
}

.wp-caption-text {
    font-size: 0.85em;
    margin: 4px 0 0;
    padding: 0;
}

figure {
    margin: 0;
}

figcaption {
    font-size: 0.85em;
    color: #666;
    padding: 0.5em 0;
}

.page-archive .card .card-body img {
    max-height: 175px;
    width: auto;
}

.page-archive .btn-primary {
    background: #8f7350 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 15px 24px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.page-archive .btn-primary:hover {
    background: #101010 !important;
}

.page-archive a {
    color: #8f7350 !important;
    text-decoration: none !important;
}

.archive-separator {
    color: #8f7350;
}

.page-spis-tresci li a {
    color: #8f7350 !important;
    text-decoration: none !important;
}

/* Ad Inserter */
.ad-label-divider { display: flex; align-items: center; gap: 12px; margin: 8px auto 4px; max-width: 1320px; padding: 0 12px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #888; }
.ad-label-divider::before, .ad-label-divider::after { content: ""; flex: 1; border-top: 1px solid #ddd; }
.ad-inserter-block { text-align: center; margin-bottom: 8px; }

/* Stopka - białe tło jak górny nagłówek */
footer {
    background: #fff;
    padding: 20px 0;
}

/* Stopka - kolumny z linkami */
footer .footer-logo { max-height: 70px; width: auto; }
footer .pws-footer-menu-link {
    display: inline-block;
    padding: 2px 0;
    font-size: 13px;
    color: #111;
    text-decoration: none;
}
footer .pws-footer-menu-link:hover { text-decoration: underline; }
footer .pws-footer-menu-link.bold { font-weight: 700; }
footer .row > div { margin-bottom: 16px; }


/* ==== Cookie consent modal ==== */
.cookie-consent-dialog {
    max-width: 880px;
}

.cookie-consent-content {
    border: none;
    border-radius: .75rem;
}

.cookie-consent-body {
    padding: 2.5rem;
    text-align: center;
}

.cookie-consent-logo {
    height: 56px;
    margin-bottom: 1.5rem;
}

.cookie-consent-heading {
    font-weight: 500;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.cookie-consent-body p {
    text-align: left;
    color: #212529;
    font-size: .95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cookie-consent-btn {
    flex: 1 1 220px;
    padding: .85rem 1.5rem;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .02em;
    text-transform: uppercase;
    border-radius: .5rem;
}

.cookie-consent-btn--accept {
    background-color: #000;
    border: 1px solid #000;
    color: #fff;
}

.cookie-consent-btn--accept:hover {
    background-color: #212529;
    border-color: #212529;
    color: #fff;
}

.cookie-consent-btn--reject {
    background-color: #fff;
    border: 1px solid #000;
    color: #000;
}

.cookie-consent-btn--reject:hover {
    background-color: #f5f5f5;
}

.cookie-consent-links {
    margin: 1.5rem 0 0;
    text-align: center;
    font-size: .8rem;
}

.cookie-consent-links a {
    color: #6c757d;
    text-decoration: underline;
}
