/* Główny motyw V-Core. Przełącznik powrotu do klasycznego stylu widzi tylko właściciel. */
html[data-theme="chronicle"] body.nw3-bg {
    background-color: #06090d;
    background-image:
        radial-gradient(circle at 50% 0, rgba(34, 91, 137, .26), transparent 36rem),
        linear-gradient(180deg, rgba(3, 6, 10, .2), #06090d 62rem),
        url('../images/Tlo_strony.png');
    background-size: auto, auto, cover;
    background-position: center top;
    background-attachment: fixed;
}

.site-theme-toggle {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    color: #b8c8da;
    background: rgba(5, 10, 17, .92);
    border: 1px solid #31577f;
    border-radius: 999px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .55), inset 0 0 18px rgba(75, 142, 203, .08);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    transition: .2s ease;
}
.site-theme-toggle:hover { color: #eef8ff; border-color: #80c9ff; transform: translateY(-2px); }
.site-theme-toggle svg { width: 22px; height: 22px; fill: #6db9ee; filter: drop-shadow(0 0 7px rgba(72, 169, 235, .48)); }
html[data-theme="chronicle"] .site-theme-toggle { color: #f0d8a6; border-color: #9c7741; }
html[data-theme="chronicle"] .site-theme-toggle svg { fill: #d6b36c; }

.vcore-chronicle-hero { display: none; }
.site-mobile-nav-toggle { display: none; }

html[data-theme="chronicle"] body > .max-w-\[1180px\] { max-width: 1240px; }
html[data-theme="chronicle"] nav.nw3-box {
    position: sticky;
    top: 10px;
    z-index: 60;
    margin-bottom: 14px;
    border: 1px solid rgba(91, 129, 165, .46);
    border-radius: 10px;
    background: rgba(5, 9, 15, .93);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .46), inset 0 -1px rgba(111, 180, 232, .08);
    backdrop-filter: blur(12px);
}
html[data-theme="chronicle"] nav.nw3-box a {
    padding-top: 15px;
    padding-bottom: 15px;
    color: #9dabbc;
    border-right: 1px solid rgba(66, 94, 125, .22);
}
html[data-theme="chronicle"] nav.nw3-box a:last-child { border-right: 0; }
html[data-theme="chronicle"] nav.nw3-box a:hover { color: #eaf7ff; background: rgba(37, 92, 137, .3); }

html[data-theme="chronicle"] .vcore-chronicle-hero {
    position: relative;
    display: grid;
    min-height: 500px;
    margin-bottom: 24px;
    overflow: hidden;
    place-items: center;
    border: 1px solid #31577f;
    border-radius: 10px;
    background:
        linear-gradient(90deg, rgba(3, 7, 12, .94), rgba(3, 7, 12, .34) 52%, rgba(3, 7, 12, .82)),
        linear-gradient(0deg, #070b11, transparent 55%),
        url('../images/Tlo_strony.png') center 17% / cover no-repeat;
    box-shadow: 0 22px 55px rgba(0, 0, 0, .62), inset 0 0 90px rgba(21, 77, 124, .22);
}
.vcore-chronicle-hero__shade { position: absolute; inset: 0; background: radial-gradient(circle at 50% 36%, rgba(53, 135, 194, .18), transparent 34%); }
.vcore-hero-particles { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.vcore-hero-particle {
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 50%;
    will-change: transform;
}
.vcore-chronicle-hero__character {
    position: absolute;
    z-index: 1;
    right: -80px;
    bottom: -100px;
    width: 740px;
    max-width: 62%;
    filter: drop-shadow(-22px 18px 28px rgba(0, 0, 0, .72));
    pointer-events: none;
}
.vcore-chronicle-hero__content { position: relative; z-index: 2; width: 58%; margin-right: auto; padding: 30px 24px 92px 64px; text-align: center; }
.vcore-chronicle-hero h1 { margin: 14px 0 10px; color: #f4f6f8; font: 800 clamp(30px, 5vw, 52px)/1.04 'Cinzel', serif; text-shadow: 0 3px 18px #000; }
.vcore-chronicle-hero p { max-width: 620px; margin: 0 auto; color: #b8c4d0; font-size: 13px; line-height: 1.7; }
.vcore-chronicle-hero__actions { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.vcore-chronicle-hero__actions a {
    min-width: 175px;
    padding: 12px 18px;
    color: #eff8ff;
    background: linear-gradient(180deg, #28679a, #123654);
    border: 1px solid #70b8e7;
    border-radius: 6px;
    box-shadow: inset 0 1px rgba(255, 255, 255, .12), 0 8px 20px rgba(0, 0, 0, .4);
    font: 800 11px/1.3 'Cinzel', serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.vcore-chronicle-hero__actions a:hover { filter: brightness(1.18); }
.vcore-chronicle-hero__actions a.secondary { color: #ead5a8; background: linear-gradient(180deg, #44351f, #21180d); border-color: #9c7741; }

.vcore-hero-meta {
    position: absolute;
    z-index: 4;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 68px;
    background: linear-gradient(90deg, rgba(5, 12, 20, .96), rgba(12, 31, 47, .9), rgba(5, 12, 20, .96));
    border-top: 1px solid rgba(90, 172, 228, .42);
    box-shadow: 0 -12px 35px rgba(23, 101, 158, .12);
}
.vcore-hero-meta::before {
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    top: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #74c8ff, transparent);
    box-shadow: 0 0 14px #45a9ed;
    animation: vcore-energy-pulse 3.6s ease-in-out infinite;
}
.vcore-hero-meta > div { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 12px 18px; text-align: center; border-right: 1px solid rgba(80, 125, 161, .24); }
.vcore-hero-meta > div:last-child { border-right: 0; }
.vcore-hero-meta span { color: #6f8599; font-size: 8px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; }
.vcore-hero-meta strong { color: #dceaf4; font: 700 11px/1.3 'Cinzel', serif; letter-spacing: .5px; }
@keyframes vcore-energy-pulse { 0%, 100% { opacity: .42; transform: scaleX(.8); } 50% { opacity: 1; transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
    .vcore-hero-meta::before { animation: none; }
}

.vcore-social-icon { width: 48px; height: 48px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .5)); transition: filter .2s ease, transform .2s ease; }
.site-sidebar-right .nw3-box { transition: transform .2s ease, border-color .2s ease; }
.site-sidebar-right .nw3-box:hover { transform: translateY(-2px); border-color: rgba(112, 184, 231, .78); }
.site-sidebar-right .nw3-box:hover .vcore-social-icon { transform: scale(1.06); filter: brightness(1.18) drop-shadow(0 5px 14px rgba(61, 157, 226, .38)); }

html[data-theme="chronicle"] .nw3-box,
html[data-theme="chronicle"] .page-content,
html[data-theme="chronicle"] .section-header {
    border: 1px solid rgba(74, 112, 148, .65);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(14, 23, 35, .97), rgba(7, 12, 19, .98));
    box-shadow: 0 16px 36px rgba(0, 0, 0, .42), inset 0 1px rgba(131, 187, 229, .05);
}
html[data-theme="chronicle"] .nw3-panel-title,
html[data-theme="chronicle"] .section-header {
    background: linear-gradient(180deg, rgba(26, 52, 76, .95), rgba(10, 20, 31, .98));
    border-bottom-color: #31577f;
}
html[data-theme="chronicle"] .nw3-panel-title,
html[data-theme="chronicle"] .section-header h2 { color: #e8cf93; }
html[data-theme="chronicle"] .nw3-menu-btn {
    color: #d9e8f3;
    background: linear-gradient(180deg, #183a57, #0c2134);
    border-color: #315f82;
}
html[data-theme="chronicle"] .nw3-menu-btn:hover { border-color: #72bce9; box-shadow: inset 0 0 18px rgba(69, 151, 206, .15); }
html[data-theme="chronicle"] .nw3-tab.active { color: #f2d694; background: #173b59; box-shadow: inset 0 -2px 0 #d6b36c; }
html[data-theme="chronicle"] .btn-primary { color: #edf8ff; background: linear-gradient(180deg, #28679a, #123654); border-color: #70b8e7; }
html[data-theme="chronicle"] footer { color: #65788d; }

@media (min-width: 1200px) {
    .site-sidebar-right { position: sticky; top: 76px; }
}

@media (max-width: 760px) {
    .site-mobile-nav-toggle {
        display: flex;
        width: 100%;
        min-height: 46px;
        margin-bottom: 10px;
        padding: 0 15px;
        align-items: center;
        justify-content: space-between;
        color: #dceaf4;
        background: linear-gradient(180deg, rgba(20, 45, 68, .98), rgba(7, 17, 27, .98));
        border: 1px solid #31577f;
        border-radius: 8px;
        box-shadow: inset 0 1px rgba(142, 204, 245, .06);
        font: 700 11px/1 'Cinzel', serif;
        letter-spacing: 1.2px;
        text-transform: uppercase;
    }
    .site-mobile-nav-icon,
    .site-mobile-nav-icon::before,
    .site-mobile-nav-icon::after { width: 20px; height: 2px; background: #79bce9; transition: .2s ease; }
    .site-mobile-nav-icon { position: relative; display: block; }
    .site-mobile-nav-icon::before,
    .site-mobile-nav-icon::after { content: ''; position: absolute; left: 0; }
    .site-mobile-nav-icon::before { top: -6px; }
    .site-mobile-nav-icon::after { top: 6px; }
    .site-mobile-nav-toggle[aria-expanded="true"] .site-mobile-nav-icon { background: transparent; }
    .site-mobile-nav-toggle[aria-expanded="true"] .site-mobile-nav-icon::before { top: 0; transform: rotate(45deg); }
    .site-mobile-nav-toggle[aria-expanded="true"] .site-mobile-nav-icon::after { top: 0; transform: rotate(-45deg); }
    nav#site-main-nav {
        position: relative;
        top: auto;
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 10px;
        overflow: hidden;
    }
    nav#site-main-nav.is-open { display: grid; }
    nav#site-main-nav a { display: flex; min-height: 46px; padding: 10px 6px; align-items: center; justify-content: center; border-bottom: 1px solid rgba(66, 94, 125, .22); }
    nav#site-main-nav a:last-child { grid-column: 1 / -1; }
    .site-theme-toggle span { display: none; }
    .site-theme-toggle { right: 6px; bottom: 6px; width: 38px; height: 38px; justify-content: center; padding: 0; opacity: .7; }
    .site-theme-toggle:hover, .site-theme-toggle:focus-visible { opacity: 1; }
    .site-theme-toggle svg { width: 19px; height: 19px; }
    html[data-theme="chronicle"] .vcore-chronicle-hero { min-height: 470px; }
    .vcore-chronicle-hero__character { right: -120px; bottom: -80px; width: 520px; max-width: none; opacity: .34; }
    .vcore-chronicle-hero__content { width: 100%; padding: 34px 22px 100px; }
    .vcore-hero-meta { min-height: 76px; }
    .vcore-hero-meta > div { padding: 10px 6px; }
    .vcore-hero-meta span { font-size: 7px; letter-spacing: .7px; }
    .vcore-hero-meta strong { font-size: 9px; }
    .vcore-chronicle-hero__actions { flex-direction: column; align-items: center; }
    .vcore-chronicle-hero__actions a { width: 220px; }

    body:not(.page-home) .vcore-chronicle-hero { min-height: 310px; }
    body:not(.page-home) .vcore-chronicle-hero__character { right: -90px; bottom: -145px; width: 430px; opacity: .24; }
    body:not(.page-home) .vcore-chronicle-hero__content { padding: 28px 16px; }
    body:not(.page-home) .vcore-chronicle-hero h1 { font-size: 29px; }
    body:not(.page-home) .vcore-chronicle-hero p,
    body:not(.page-home) .vcore-hero-meta { display: none; }
    body:not(.page-home) .vcore-chronicle-hero__actions { flex-direction: row; gap: 8px; margin-top: 20px; }
    body:not(.page-home) .vcore-chronicle-hero__actions a { width: auto; min-width: 0; flex: 1; padding-left: 10px; padding-right: 10px; }
}
