
/* =====================================================
   LUMEN – GŁÓWNY ARKUSZ STYLÓW
   ===================================================== */

/* 1. USTAWIENIA GLOBALNE */

:root {
    --cream: #F7F4ED;
    --sand: #EAE3D6;
    --gold: #B99A62;
    --brown: #40382F;
    --white: #FFFFFF;
    --gray: #8B887E;
    --light-border: #E7E0D4;
    --gold-hover: #A48650;
    --shadow: 0 8px 24px rgba(64, 56, 47, 0.06);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream);
    color: var(--brown);
    font-family: "Lato", sans-serif;
    line-height: 1.7;
}

.container {
    width: min(1180px, 90%);
    margin: 0 auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
}


/* 2. NAWIGACJA */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--light-border);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.header.header-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.nav-container {
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "Cormorant Garamond", serif;
    font-size: 25px;
    font-weight: 700;
    white-space: nowrap;
}

.logo-image {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.logo-symbol {
    color: var(--gold);
    font-size: 32px;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.navigation a {
    color: var(--gray);
    font-size: 13px;
    transition: color 0.3s;
}

.navigation a:hover,
.navigation a.active {
    color: var(--gold);
}


/* 3. STRONA GŁÓWNA – HERO */

.hero {
    min-height: 520px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 90px 20px;
    background: radial-gradient(
        ellipse at center,
        var(--white) 0%,
        var(--cream) 72%
    );
}

.hero-content {
    max-width: 760px;
}

.section-label {
    display: block;
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.1;
    font-weight: 500;
    margin-bottom: 25px;
}

.hero p {
    max-width: 590px;
    margin: 0 auto 32px;
    color: var(--gray);
    font-size: 16px;
}


/* 4. WSPÓLNE PRZYCISKI */

.primary-button {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    padding: 13px 32px;
    border: 1px solid var(--gold);
    border-radius: 30px;
    font-size: 13px;
    letter-spacing: 1px;
    transition: 0.3s;
}

.primary-button:hover {
    background: var(--brown);
    border-color: var(--brown);
    transform: translateY(-2px);
}

.text-button {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 13px;
    transition: 0.3s;
}

.text-button:hover {
    color: var(--brown);
}

.favorites-link {
    display: inline-block;
    padding: 13px 25px;
    background: var(--brown);
    color: var(--white);
    border-radius: 30px;
    transition: 0.3s;
}

.favorites-link:hover {
    background: var(--gold);
}


/* 5. CYTAT DNIA */

.quote-section {
    padding: 35px 0 90px;
}

.quote-card {
    background: var(--white);
    border: 1px solid var(--light-border);
    border-radius: 12px;
    padding: 65px 35px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.quote-decoration {
    font-family: "Cormorant Garamond", serif;
    font-size: 90px;
    line-height: 0.7;
    height: 55px;
    margin-bottom: 15px;
    color: var(--gold);
    display: block;
    position: relative;
}

.quote-card h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(25px, 4vw, 36px);
    font-weight: 500;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto 20px;
}

.quote-author {
    color: var(--gray);
    font-size: 13px;
}

.quote-actions {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}


/* 6. NAGŁÓWKI SEKCJI */

.sections {
    padding: 35px 0 100px;
}

.section-heading {
    text-align: center;
    margin-bottom: 45px;
}

.section-heading h2,
.closing-section h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 43px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 12px;
}

.section-heading p,
.closing-section p {
    color: var(--gray);
    font-size: 14px;
}


/* 7. KAFELKI */

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.category-card {
    background: var(--white);
    border: 1px solid var(--light-border);
    border-radius: 12px;
    padding: 35px 28px;
    min-height: 235px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: 0.3s;
}

.category-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(64, 56, 47, 0.06);
}

.category-icon {
    color: var(--gold);
    font-size: 29px;
    margin-bottom: 15px;
}

.category-card h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 8px;
}

.category-card p {
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 18px;
}

.card-link {
    color: var(--gold);
    font-size: 12px;
    margin-top: auto;
}


/* 8. OSTATNIO DODANE */

.recent-section {
    background: var(--sand);
    padding: 85px 0;
}

.recent-placeholder {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(185, 154, 98, 0.25);
    border-radius: 12px;
    padding: 45px 25px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.recent-placeholder span {
    color: var(--gold);
    font-size: 35px;
}

.recent-placeholder p {
    color: var(--gray);
    font-size: 14px;
    margin-top: 12px;
}


/* 9. SEKCJA KOŃCOWA */

.closing-section {
    text-align: center;
    padding: 100px 20px;
}

.closing-section h2 {
    max-width: 700px;
    margin: 0 auto 15px;
}


/* 10. STOPKA */

.footer {
    background: var(--brown);
    color: var(--white);
    padding: 35px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.footer h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 25px;
}

.footer p {
    color: #C9C2B6;
    font-size: 12px;
}

.copyright {
    text-align: right;
}


/* 11. PODSTRONY */

.page-hero {
    text-align: center;
    padding: 90px 20px 60px;
    background: var(--sand);
}

.page-hero h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(38px, 5vw, 52px);
    color: var(--brown);
    margin: 10px 0;
}

.page-hero p {
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
    color: var(--gray);
}

.content-section {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 25px;
}

.content-section h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 34px;
    color: var(--brown);
    margin-bottom: 12px;
}

.content-section > p {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.7;
}


/* 12. WSPÓLNE WYSZUKIWARKI */

.quote-tools,
.prayer-tools,
.bible-search,
.reflection-tools {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto 30px;
    padding: 0 5px;
}

.quote-tools input,
.prayer-tools input,
.bible-search input,
.reflection-tools input {
    flex: 1;
    min-width: 220px;
    padding: 14px 20px;
    border: 1px solid var(--light-border);
    border-radius: 30px;
    background: var(--white);
    color: var(--brown);
    font-family: "Lato", sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.quote-tools input:focus,
.prayer-tools input:focus,
.bible-search input:focus,
.reflection-tools input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(185, 154, 98, 0.12);
}

.quote-tools button,
.prayer-tools button,
.bible-search button,
.reflection-tools button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 14px 22px;
    min-height: 48px;
    border: 1px solid var(--gold);
    border-radius: 30px;
    background: var(--gold);
    color: var(--white);
    font-family: "Lato", sans-serif;
    font-size: 14px;
    transition: 0.25s;
}

.quote-tools button:hover,
.prayer-tools button:hover,
.bible-search button:hover,
.reflection-tools button:hover {
    background: var(--brown);
    border-color: var(--brown);
    transform: translateY(-1px);
}


/* 13. WSPÓLNE FILTRY KATEGORII */

.quote-categories,
.prayer-categories,
.reflection-categories,
.bible-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 25px auto 35px;
}

.quote-category,
.prayer-category,
.reflection-category,
.bible-tab {
    padding: 10px 21px;
    border: 1px solid var(--light-border);
    border-radius: 30px;
    background: var(--white);
    color: var(--brown);
    font-family: "Lato", sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: 0.25s ease;
}

.quote-category:hover,
.prayer-category:hover,
.reflection-category:hover,
.bible-tab:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-1px);
}

.quote-category.active,
.prayer-category.active,
.reflection-category.active,
.bible-tab.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.quote-category:focus-visible,
.prayer-category:focus-visible,
.reflection-category:focus-visible,
.bible-tab:focus-visible,
.quote-tools button:focus-visible,
.prayer-tools button:focus-visible,
.bible-search button:focus-visible,
.reflection-tools button:focus-visible {
    outline: 2px solid var(--brown);
    outline-offset: 3px;
}


/* 14. INFORMACJE O WYNIKACH */

.search-info,
#prayerInfo,
#reflectionInfo,
#bibleInfo {
    text-align: center;
    color: var(--gray);
    font-size: 14px;
    margin: 0 auto 30px;
    padding: 0 15px;
}


/* 15. LISTY KART */

.quotes-list,
.prayers-list,
.reflections-list {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 25px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.quotes-list .quote-card,
.prayers-list .quote-card,
.reflections-list .quote-card {
    margin: 0;
}

.quotes-list .quote-actions,
.prayers-list .quote-actions,
.reflections-list .quote-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}


/* 16. MODLITWY */

.prayer-card {
    padding: 35px;
}

.prayer-category-label {
    margin: 10px 0 20px;
    color: var(--gold);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.prayer-text {
    color: var(--brown);
    font-family: "Cormorant Garamond", serif;
    font-size: 21px;
    line-height: 1.8;
    white-space: pre-line;
}


/* 17. REFLEKSJE */

.reflection-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 45px;
}

.reflection-intro h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 38px;
    color: var(--brown);
    margin: 12px 0;
}

.reflection-intro p {
    color: var(--gray);
    line-height: 1.7;
}


/* 18. BIBLIA */

.bible-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.bible-intro h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 40px;
    color: var(--brown);
    margin: 12px 0;
}

.bible-intro p {
    color: var(--gray);
    line-height: 1.7;
}

.bible-books {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 1100px;
    margin: 25px auto 0;
}

.bible-book-card {
    position: relative;
    display: block;
    padding: 25px;
    min-height: 155px;
    background: var(--white);
    border: 1px solid var(--light-border);
    border-radius: 12px;
    transition: 0.25s;
}

.bible-book-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: var(--shadow);
}

.bible-book-short {
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.bible-book-card h3 {
    color: var(--brown);
    font-family: "Cormorant Garamond", serif;
    font-size: 23px;
    margin: 12px 0 7px;
}

.bible-book-card p {
    color: var(--gray);
    font-size: 13px;
    margin: 0;
}

.bible-book-arrow {
    position: absolute;
    right: 22px;
    top: 22px;
    color: var(--gold);
    font-size: 22px;
}

.bible-source {
    max-width: 700px;
    margin: 55px auto 0;
    padding: 25px;
    text-align: center;
    background: var(--sand);
    border-radius: 12px;
}

.bible-source p {
    color: var(--brown);
    line-height: 1.6;
}

.bible-source a {
    display: inline-block;
    margin-top: 10px;
    color: var(--gold-hover);
}


/* 19. ULUBIONE */

.favorites-heading {
    text-align: center;
    margin: 20px auto 35px;
    padding: 0 20px;
}

.favorites-heading h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 32px;
    font-weight: 500;
    color: var(--brown);
    margin-top: 10px;
}

.empty-favorites {
    text-align: center;
    max-width: 650px;
    margin: 40px auto;
    padding: 50px 25px;
    background: var(--white);
    border: 1px solid var(--light-border);
    border-radius: 12px;
}

.empty-favorites h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 30px;
    color: var(--brown);
    margin-bottom: 15px;
}

.empty-favorites p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 25px;
}


/* 20. RESPONSYWNOŚĆ */

@media (max-width: 1000px) {
    .nav-container {
        flex-direction: column;
        padding: 20px 0;
    }

    .navigation {
        justify-content: center;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bible-books {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .hero {
        min-height: 430px;
        padding: 65px 20px;
    }

    .navigation {
        gap: 12px 18px;
    }

    .navigation a {
        font-size: 12px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .quote-card {
        padding: 45px 20px;
    }

    .section-heading h2,
    .closing-section h2 {
        font-size: 34px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .copyright {
        text-align: center;
    }

    .quote-tools,
    .prayer-tools,
    .bible-search,
    .reflection-tools {
        flex-direction: column;
        align-items: stretch;
    }

    .quote-tools input,
    .prayer-tools input,
    .bible-search input,
    .reflection-tools input {
        width: 100%;
        min-width: 0;
    }

    .quote-tools button,
    .prayer-tools button,
    .bible-search button,
    .reflection-tools button {
        width: 100%;
    }

    .quote-categories,
    .prayer-categories,
    .reflection-categories,
    .bible-tabs {
        gap: 9px;
    }

    .quote-category,
    .prayer-category,
    .reflection-category,
    .bible-tab {
        padding: 10px 16px;
    }

    .prayer-card {
        padding: 22px;
    }

    .prayer-text {
        font-size: 19px;
    }

    .reflection-intro h2 {
        font-size: 30px;
    }

    .bible-books {
        grid-template-columns: 1fr;
    }

    .bible-intro h2 {
        font-size: 32px;
    }

    .content-section {
        margin: 40px auto;
        padding: 0 18px;
    }

    .page-hero {
        padding: 65px 20px 45px;
    }

    .quotes-list,
    .prayers-list,
    .reflections-list {
        padding: 0 18px;
    }
}

/* ==============================
   KALENDARZ MIESIĘCZNY
============================== */

.calendar-container {
    max-width: 850px;
    margin: 40px auto;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--sand);
    border-radius: 12px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.calendar-header h2 {
    margin: 0;
    color: var(--brown);
    font-family: "Cormorant Garamond", serif;
    font-size: 30px;
    text-align: center;
}

.calendar-nav-button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--sand);
    border-radius: 50%;
    background: var(--cream);
    color: var(--brown);
    font-size: 22px;
    cursor: pointer;
    transition: 0.2s;
}

.calendar-nav-button:hover {
    background: var(--gold);
    color: var(--white);
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.calendar-weekdays {
    margin-bottom: 10px;
}

.calendar-weekdays span {
    padding: 10px 0;
    color: var(--gray);
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.calendar-day {
    min-height: 75px;
    padding: 10px 5px;
    border: 1px solid var(--sand);
    border-radius: 8px;
    background: var(--cream);
    color: var(--brown);
    font: inherit;
    cursor: pointer;
    transition: 0.2s;
}

.calendar-day:hover {
    border-color: var(--gold);
    background: var(--sand);
}

.calendar-day.empty {
    visibility: hidden;
    pointer-events: none;
}

.calendar-day.today {
    border: 2px solid var(--gold);
    background: var(--sand);
    font-weight: 700;
}

.calendar-day.selected {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.calendar-day.has-event::after {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    margin: 7px auto 0;
    border-radius: 50%;
    background: var(--gold);
}

.calendar-day.selected.has-event::after {
    background: var(--white);
}

.calendar-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 25px;
    color: var(--gray);
    font-size: 13px;
}

.calendar-legend span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.today-dot {
    background: var(--gold);
}

.feast-dot {
    background: var(--brown);
}

.calendar-events {
    max-width: 850px;
    margin: 35px auto 60px;
    padding: 25px;
    border-left: 3px solid var(--gold);
    background: var(--white);
    border-radius: 8px;
}

.calendar-events h2 {
    margin: 12px 0;
    color: var(--brown);
    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
}

.calendar-event-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--sand);
}

.calendar-event-item:last-child {
    border-bottom: none;
}

.calendar-event-item h3 {
    margin-bottom: 8px;
    color: var(--brown);
}

.calendar-event-item p {
    line-height: 1.7;
}

.calendar-all-events {
    margin-top: 60px;
}

/* WERSJA MOBILNA */

@media (max-width: 600px) {
    .calendar-container {
        padding: 15px 10px;
    }

    .calendar-header h2 {
        font-size: 23px;
    }

    .calendar-weekdays,
    .calendar-grid {
        gap: 4px;
    }

    .calendar-weekdays span {
        font-size: 11px;
    }

    .calendar-day {
        min-height: 52px;
        padding: 7px 2px;
        font-size: 13px;
    }

    .calendar-events {
        padding: 18px;
    }
}

/* PRZYCISK PRZEJŚCIA DO DATY W KALENDARZU */

.calendar-open-button {
    margin-top: 15px;
    padding: 10px 18px;
    border: 1px solid var(--gold);
    border-radius: 6px;
    background: transparent;
    color: var(--brown);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.calendar-open-button:hover {
    background: var(--gold);
    color: var(--white);
}
