/* === SIDEBAR – STARA KSIĘGA === */

.container-sidebar-left {
    background: #f4ecd8; /* kolor starego papieru */
    border: 1px solid #c8b68f;
    padding: 18px;
    border-radius: 2px;

    box-shadow:
        inset 0 0 25px rgba(120, 94, 60, 0.25),
        0 0 12px rgba(0,0,0,0.2);
}

/* Delikatna faktura papieru */
.container-sidebar-left::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/images/background/paper-texture.jpg');
    background-size: cover;
    opacity: 0.35;
    pointer-events: none;
}

.container-sidebar-left {
    position: relative;
}

.container-sidebar-left > * {
    position: relative;
}
}
.header {
    background: #f4ecd8;
    background-size: cover;
    background-position: center;
}
.header {
    background: #f4ecd8; /* kolor starego papieru */
    border: 1px solid #c8b68f;
    padding: 18px;
    border-radius: 2px;

    box-shadow:
        inset 0 0 25px rgba(120, 94, 60, 0.25),
        0 0 12px rgba(0,0,0,0.2);
}

/* Delikatna faktura papieru */
.header:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/images/background/paper-texture.jpg');
    background-size: cover;
    opacity: 0.35;
    pointer-events: none;
}

.header {
    position: relative;
}

.header > * {
    position: relative;
}
/* === SIDEBAR – STARA KSIĘGA === */

.container-component {
    background: #f4ecd8; /* kolor starego papieru */
    border: 1px solid #c8b68f;
    padding: 18px;
    border-radius: 2px;

    box-shadow:
        inset 0 0 25px rgba(120, 94, 60, 0.25),
        0 0 12px rgba(0,0,0,0.2);
}

/* Delikatna faktura papieru */
.container-component::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/images/background/paper-texture.jpg');
    background-size: cover;
    opacity: 0.35;
    pointer-events: none;
}

.container-component{
    position: relative;
}

.container-component > * {
    position: relative;
}
/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&family=Cormorant+Garamond:wght@400;600&display=swap');

body {
    font-family: 'Cormorant Garamond', serif;
    background: #efe6d6;
    color: #3b2f25;
    letter-spacing: 0.3px;
    line-height: 1.65;
}

h1, h2, h3, .card-header {
    font-family: 'Playfair Display', serif;
    color: #4a3a2a;
}
/* === STRONA KSIĘGI === */

main .container {
    background: #f4ecd8;
    padding: 30px;
    border: 1px solid #c8b68f;
    border-radius: 2px;

    box-shadow:
        inset 0 0 35px rgba(120, 94, 60, 0.18),
        0 0 18px rgba(0,0,0,0.25);
}
main .container {
    position: relative;
}

main .container::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/images/background/paper-teksture.jpg');
    background-size: cover;
    opacity: 0.25;
    pointer-events: none;
}

main .container > * {
    position: relative;
}
main .container {
    position: relative;
}

main .container::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/images/background/paper-teksture.jpg');
    background-size: cover;
    opacity: 0.25;
    pointer-events: none;
}

main .container > * {
    position: relative;
}
/* === INICJAŁ === */

.com-content-article p:first-of-type::first-letter {
    font-size: 4rem;
    float: left;
    line-height: 0.9;
    margin-right: 10px;
    margin-top: 6px;

    font-family: 'Playfair Display', serif;
    color: #5a4634;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.25);
}
/* === SIDEBAR === */

.container-sidebar-left {
    background: #f4ecd8;
    border: 1px solid #c8b68f;
    padding: 18px;
    border-radius: 2px;

    box-shadow:
        inset 0 0 25px rgba(120, 94, 60, 0.25),
        0 0 12px rgba(0,0,0,0.2);

    position: relative;
}

.container-sidebar-left::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/images/background/paper-teksture.jpg');
    background-size: cover;
    opacity: 0.3;
    pointer-events: none;
}

.container-sidebar-left > * {
    position: relative;
}
a {
    color: #4a3a2a;
    text-decoration: none;
    transition: 0.2s;
}

a:hover {
    color: #000;
    text-shadow: 0 0 2px rgba(0,0,0,0.25);
}
.com-content-article p:first-of-type {
    text-indent: 0;
}
body {
    background: radial-gradient(
        ellipse at center,
        #efe6d6 0%,
        #d6c7ab 100%
    );
}
/* === MODUŁY SIDEBARA – STARA KSIĘGA === */

.container-sidebar-left .card {
    background: #f4ecd8 !important;
    border: 1px solid #c8b68f;
    box-shadow:
        inset 0 0 15px rgba(120, 94, 60, 0.15),
        0 0 6px rgba(0,0,0,0.15);
    border-radius: 2px;
}
.container-sidebar-left .card {
    position: relative;
}

.container-sidebar-left .card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/images/background/paper-teksture.jpg');
    background-size: cover;
    opacity: 0.25;
    pointer-events: none;
}

.container-sidebar-left .card > * {
    position: relative;
}
.container-sidebar-left .card-header {
    background: transparent !important;
    border-bottom: 1px solid #c8b68f;
    font-family: 'Playfair Display', serif;
    color: #4a3a2a;
}
/* === LINKI MENU – STARA KSIĘGA === */

.container-sidebar-left a {
    font-family: 'Cormorant Garamond', serif;
    color: #4a3a2a;
    text-decoration: none;
    transition: 0.2s ease;
}

.container-sidebar-left a:hover {
    color: #000;
    text-shadow: 0 0 2px rgba(0,0,0,0.25);
}
.container-sidebar-left .nav a {
    letter-spacing: 0.4px;
}
.container-sidebar-left a {
    position: relative;
}

.container-sidebar-left a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: #5a4634;
    transition: width 0.25s ease;
}

.container-sidebar-left a:hover::after {
    width: 100%;
}
.container-sidebar-left .nav li {
    margin-bottom: 6px;
}
.container-sidebar-left .nav a:hover {
    background: rgba(90, 70, 52, 0.08);
    padding-left: 4px;
}
/* === TYTUŁY MODUŁÓW – RAMKA KSIĘGI === */

.container-sidebar-left .card-header {
    background: #e8dcc2 !important;   /* lekko ciemniejszy papier */
    border: 1px solid #c8b68f;
    border-radius: 2px;

    padding: 10px 12px;
    margin-bottom: 10px;

    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #4a3a2a;

    box-shadow:
        inset 0 0 10px rgba(120, 94, 60, 0.2),
        0 2px 4px rgba(0,0,0,0.15);
}
.container-sidebar-left .card-header {
    border-bottom: 2px solid #b89b6d;
}
.container-sidebar-left .card-header {
    text-align: center;
    letter-spacing: 0.5px;
}

body {
    font-size: 18px;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.35rem; }

.container-sidebar-left {
    font-size: 1.05rem;
}

.container-sidebar-left .nav a {
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}
/* ===== SENTYMENTALNY ALBUM – PHOCA (Twoje klasy) ===== */

/* Karta albumu */
.pg-item-box-image {
    background: #f7efdd;
    border: 1px solid #d2c19a;
    padding: 10px;
    border-radius: 3px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.22);
    transition: all 0.35s ease;
    position: relative;
}

/* Hover */
.pg-item-box-image:hover {
    transform: scale(1.03);
    box-shadow: 4px 4px 14px rgba(0,0,0,0.30);
}

/* Zdjęcie */
.pg-item-box-image img.pg-image {
    background: #fff;
    padding: 6px;
    border: 1px solid #c9b189;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.18);
    filter: sepia(35%) contrast(98%) brightness(98%);
}

/* Taśma klejąca */
.pg-item-box-image::before {
    content: "";
    width: 50px;
    height: 12px;
    background: rgba(255,255,255,0.45);
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(-1deg);
    box-shadow: 1px 1px 3px rgba(0,0,0,0.18);
}
/* ===== Photoswipe – styl sentymentalny ===== */

/* Tło lightbox */
.pswp {
    background-color: rgba(40, 32, 24, 0.92) !important;
}

/* Obszar zdjęcia */
.pswp__bg {
    background: rgba(40, 32, 24, 0.92) !important;
}

/* Zdjęcie */
.pswp__img {
    max-width: 95vw !important;
    max-height: 92vh !important;
    filter: sepia(25%) contrast(98%) brightness(98%) !important;
}

/* Podpis */
.pswp__caption__center {
    font-family: Georgia, serif;
    font-size: 14px;
    color: #e6d7b8;
}

/* Strzałki */
.pswp__button {
    filter: invert(85%);
}
.pswp__bg {
    background: rgba(245, 236, 220, 0.96) !important;
}

.pswp__img {
    filter: sepia(35%) contrast(95%);
}

/* === Stopka – Stara Księga === */

.container-footer {
    background: #f4ecd8 !important;          /* kolor starego papieru */
    border-top: 1px solid #c7b79c;
}

.retro-footer {
    background: transparent !important;
    color: #5b4636;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12.5px;
    text-align: center;
}

.retro-inner {
    display: flex;
    justify-content: center;                  /* WYŚRODKOWANIE */
    align-items: center;
    gap: 14px;
    padding: 6px 10px !important;
}

.retro-footer a {
    color: #6b4f3a;
    text-decoration: none;
    font-style: italic;
}

.retro-footer a:hover {
    color: #2f251c;
    text-decoration: underline;
}

/* separator jak w starej kronice */

.retro-footer a:not(:last-child)::after {
    content: " •";
    margin-left: 6px;
    color: #a08b6b;
}
.retro-inner {
    justify-content: center;
    text-align: center;
}
/* === Przyciski plików kroniki === */

.file-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    margin: 4px 6px 4px 0;
    background-color: #f4f1ea;          /* stary papier */
    border: 1px solid #c8bfae;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    color: #3a2f23;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.file-button:hover {
    background-color: #e8e2d6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

.file-button img {
    width: 18px;
    height: 18px;
}

/* === Kolory typów plików === */

.file-djvu {
    border-left: 4px solid #8b6f47;     /* brąz kroniki */
}

.file-epub {
    border-left: 4px solid #4b6f44;     /* zieleń książki */
}