/* =============================================
   V-CoreMT2 — Motyw głównej strony (Tailwind + niestandardowe komponenty)
   Zastąpił poprzedni granatowo-niebieski layout (kopia zachowana w
   _backup_old_theme_2026-07-12/). Reużywa istniejących szablonów stron
   (pages/download.php, rejestracja.php, support.php, regulamin.php,
   panel.php, verify.php, prezentacja.php) — te pliki NIE zostały zmienione,
   tylko dostały nowe, ciemne definicje CSS dla swoich klas.
   ============================================= */

body { font-family: 'Open Sans', Arial, sans-serif; }

.nw3-bg {
    background-color: #05070c;
    background-image:
        radial-gradient(ellipse 900px 500px at 50% 0%, rgba(22,34,58,0.45) 0%, rgba(5,7,12,0) 70%),
        url('../images/Tlo_strony.png');
    background-repeat: no-repeat, no-repeat;
    background-position: center top, center top;
    background-size: 100% 100%, cover;
    background-attachment: fixed, fixed;
}
/* Dekoracja narożnika (stary asset ArtDecoCorner, ponownie wykorzystany) */
.nw3-corner-deco {
    position: absolute;
    top: 8px;
    width: 110px;
    height: 88px;
    background-image: url('../images/ArtDecoCorner_prawa_Gora_OK.png');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.35;
    pointer-events: none;
}
.nw3-corner-deco--left { left: 4px; transform: scaleX(-1); }
.nw3-corner-deco--right { right: 4px; }
@media (max-width: 900px) { .nw3-corner-deco { display: none; } }
.nw3-box {
    background: #0b1220;
    border: 3px double #2c4570;
    box-shadow: 0 0 0 1px #060a12, 0 10px 28px rgba(4,6,14,0.7), 0 0 40px -20px rgba(234,166,61,0.15);
    border-radius: 4px;
}
.nw3-panel-title {
    background: linear-gradient(180deg,#16223a,#0c1526);
    border-bottom: 1px solid #2c4570;
    font-family: 'Cinzel', serif;
    letter-spacing: 1.2px;
}
.nw3-tab, .section-header h2 {
    font-family: 'Cinzel', serif;
    letter-spacing: 1.2px;
}
.nw3-stat-strip { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nw3-stat-strip .num { font-family: 'Cinzel', serif; font-weight: 700; }
.nw3-menu-btn {
    background: linear-gradient(180deg,#3c1006,#170603);
    border: 1px solid #7a2210;
    transition: filter .2s ease, transform .15s ease;
}
.nw3-menu-btn:hover { filter: brightness(1.3); transform: translateY(-1px); }
.nw3-menu-btn.disabled { opacity: .4; filter: grayscale(.6); pointer-events: none; }
.nw3-tab.active { background: #16345c; color: #ffd48a; box-shadow: inset 0 -2px 0 #eaa63d; }
.nw3-tab-panel { display: none; }
.nw3-tab-panel.active { display: block; }
.nw3-content { color: #cbd5e1; }
.nw3-content p, .nw3-content li { margin-bottom: .5rem; }
.nw3-content a { color: #e0a95c; text-decoration: underline; }
.nw3-content strong { font-weight: 700; color: #e2e8f0; }
/* Treść newsów/stron pochodzi z edytora Quill, który zapisuje kolor tekstu
   jako inline style (np. rgb(51,51,85)) dobrany pod STARE jasne tło.
   Na nowym ciemnym tle robi to tekst praktycznie niewidocznym — wymuszamy
   dziedziczenie jaśniejszego koloru z rodzica niezależnie od inline style. */
.nw3-content [style*="color"] { color: inherit !important; }
.nw3-content h1 { font-size: 1.25rem; font-weight: 700; color: #f1f5f9; margin: .8rem 0 .5rem; }
.nw3-content h2 { font-size: 1.05rem; font-weight: 700; color: #f1f5f9; margin: .7rem 0 .4rem; }
.nw3-content h3 { font-size: .95rem; font-weight: 700; color: #fbbf24; margin: .6rem 0 .3rem; }
.nw3-content ul { list-style: disc; padding-left: 1.4rem; margin: .4rem 0 .6rem; }
.nw3-content ol { list-style: decimal; padding-left: 1.4rem; margin: .4rem 0 .6rem; }
.nw3-content blockquote { border-left: 3px solid #fbbf24; margin: .6rem 0; padding: .4rem .9rem; color: #94a3b8; font-style: italic; }
.nw3-shot { transition: transform .25s ease, filter .25s ease; }
.nw3-shot:hover { transform: translateY(-3px); filter: brightness(1.1); }

/* =============================================
   Kompatybilność ze starymi szablonami pages/*.php
   (download/rejestracja/support/regulamin/panel/verify/prezentacja)
   ============================================= */
.section-header {
    padding: 12px 20px;
    background: linear-gradient(180deg,#16223a,#0c1526);
    border: 3px double #2c4570;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-header h2 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #fbbf24; }
.section-icon { color: #fbbf24; font-size: 11px; }

.page-content {
    background: #0b1220;
    border: 3px double #2c4570;
    border-radius: 4px;
    padding: 24px 28px;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.8;
}
.page-content h1 { font-size: 16px; font-weight: 700; color: #f1f5f9; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #2c4570; }
.page-content p { margin-bottom: 10px; }
.page-content a { color: #e0a95c; text-decoration: underline !important; }
.page-content a:hover { color: #f0c78a; }
.page-content ul { list-style: disc; padding-left: 20px; }

.page-html-content p, .page-html-content li { font-size: 13px; color: #cbd5e1; line-height: 1.8; margin-bottom: 6px; }
.page-html-content h1 { font-size: 18px; font-weight: 700; color: #f1f5f9; margin: 14px 0 8px; }
.page-html-content h2 { font-size: 15px; font-weight: 700; color: #f1f5f9; margin: 12px 0 6px; }
.page-html-content h3 { font-size: 13px; font-weight: 700; color: #fbbf24; margin: 10px 0 5px; }
.page-html-content strong { font-weight: 700; color: #e2e8f0; }
.page-html-content em { font-style: italic; }
.page-html-content u { text-decoration: underline; }
.page-html-content s { text-decoration: line-through; }
.page-html-content a { color: #e0a95c; text-decoration: underline !important; }
.page-html-content ul, .page-html-content ol { padding-left: 22px; margin: 6px 0 10px; }
.page-html-content ul { list-style: disc; }
.page-html-content ol { list-style: decimal; }
.page-html-content blockquote { border-left: 3px solid #fbbf24; margin: 10px 0; padding: 6px 14px; color: #94a3b8; font-style: italic; }
.page-html-content .ql-align-center { text-align: center; }
.page-html-content .ql-align-right { text-align: right; }
.page-html-content .ql-align-justify { text-align: justify; }
.page-html-content [style*="color"] { color: inherit !important; }
.page-html-content .ql-size-small { font-size: 11px; }
.page-html-content .ql-size-large { font-size: 16px; }
.page-html-content .ql-size-huge { font-size: 20px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #94a3b8; margin-bottom: 6px; }
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%; padding: 9px 12px;
    background: rgba(0,0,0,0.55);
    border: 1px solid #334155;
    border-radius: 6px;
    color: #e2e8f0; font-size: 13px; font-family: inherit; outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #c9822f; }
.form-group input::placeholder { color: #475569; }
.form-group small { font-size: 10px; color: #64748b; display: block; margin-top: 4px; }
.req { color: #f87171; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    padding: 9px 18px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
    border: none; border-radius: 6px; cursor: pointer; text-decoration: none !important;
    transition: filter .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: linear-gradient(180deg,#3c1006,#170603); border: 1px solid #7a2210; color: #f0d8c8; }
.btn-primary:hover { filter: brightness(1.3); }
.btn-danger { background: linear-gradient(180deg,#681515,#3a0a0a); border: 1px solid rgba(180,40,40,0.5); color: #fca5a5; }
.btn-danger:hover { filter: brightness(1.3); }
.btn-secondary { background: #1e293b; border: 1px solid #334155; color: #94a3b8; }
.btn-secondary:hover { color: #e2e8f0; border-color: #475569; }

.alert { padding: 12px 16px; margin-bottom: 16px; font-size: 12px; border-radius: 6px; }
.alert-success { background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.35); color: #6ee7b7; }
.alert-error { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.35); color: #fca5a5; }

.reg-form {
    width: 100%;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}
.reg-form > .form-group:last-child { text-align: center; }
.reg-form > .form-group:last-child .btn { min-width: 210px; }
.captcha-center { display: flex; justify-content: center; }
.login-turnstile { width: 100%; }

.site-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}
@media (min-width: 900px) {
    .site-main-layout { grid-template-columns: 332px minmax(0, 1fr); }
}
@media (min-width: 1200px) {
    .site-main-layout { grid-template-columns: 332px minmax(0, 1fr) 190px; }
}

@media (max-width: 899px) {
    .site-content { order: 1; }
    .site-sidebar-left { order: 2; }
    .site-sidebar-right { order: 3; }
}

.legal-consent {
    max-width: 620px;
    padding: 13px 14px;
    background: rgba(8, 15, 28, .78);
    border: 1px solid #334155;
    border-radius: 6px;
}
.legal-consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: #cbd5e1;
    font-size: 11px;
    line-height: 1.6;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}
.legal-consent input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    flex: 0 0 auto;
    accent-color: #d59b3c;
}
.legal-consent a { color: #f2c46f; text-decoration: underline; }

.legal-page { max-width: 900px; }
.legal-page .legal-intro {
    padding: 14px 16px;
    margin-bottom: 22px;
    background: rgba(30, 58, 92, .22);
    border-left: 3px solid #d59b3c;
    color: #cbd5e1;
}
.legal-page h3 {
    margin: 26px 0 10px;
    padding-bottom: 7px;
    border-bottom: 1px solid #263b5e;
    color: #f2c46f;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    letter-spacing: .5px;
}
.legal-page h4 { margin: 16px 0 7px; color: #e2e8f0; font-size: 13px; font-weight: 700; }
.legal-page ol, .legal-page ul { margin: 8px 0 14px; padding-left: 22px; }
.legal-page ol { list-style: decimal; }
.legal-page ul { list-style: disc; }
.legal-page li { margin-bottom: 7px; }
.legal-page .legal-details {
    margin-top: 12px;
    padding: 15px 17px;
    background: rgba(0, 0, 0, .26);
    border: 1px solid #263b5e;
    line-height: 2;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.legal-page .legal-meta { color: #94a3b8; font-size: 11px; }

@media (max-width: 900px) {
    .nw3-columns { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    body > .max-w-\[1180px\] {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    .page-content { padding: 20px 12px; }
    .section-header { padding: 11px 14px; margin-bottom: 12px; }
    .form-group input[type="text"],
    .form-group input[type="password"],
    .form-group input[type="email"],
    .form-group select,
    .form-group textarea,
    .site-sidebar-left input { font-size: 16px !important; }
    .account-panel-body { padding-left: 12px !important; padding-right: 12px !important; }
    .btn, .nw3-menu-btn { min-height: 44px; }
    .legal-page h3 { font-size: 12px; line-height: 1.55; }
    .legal-page ol, .legal-page ul { padding-left: 20px; }
    .legal-details { font-size: 11px; line-height: 1.9; }
}

.vcore-cookie-banner {
    position: fixed;
    z-index: 9999;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    max-width: 980px;
    margin: 0 auto;
    padding: 16px 18px;
    color: #cbd5e1;
    background: rgba(8, 15, 25, .98);
    border: 1px solid #334b6d;
    border-radius: 10px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, .55);
}
.vcore-cookie-copy { display: grid; gap: 5px; font-size: 12px; line-height: 1.5; }
.vcore-cookie-copy strong { color: #f2c46f; font: 700 13px 'Cinzel', serif; }
.vcore-cookie-copy a { color: #76b7ff; text-decoration: underline; }
.vcore-cookie-actions { display: flex; flex: 0 0 auto; gap: 9px; }
.vcore-cookie-actions button {
    min-height: 40px;
    padding: 8px 13px;
    color: #d9e2ec;
    background: #162235;
    border: 1px solid #3a4e6c;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.vcore-cookie-actions button.is-primary { color: #101722; background: #e1ad50; border-color: #f2c46f; }
@media (max-width: 680px) {
    .vcore-cookie-banner { left: 8px; right: 8px; bottom: 8px; align-items: stretch; flex-direction: column; gap: 12px; }
    .vcore-cookie-actions { display: grid; grid-template-columns: 1fr; }
}
