/* Styl dedykowany portalu parafiazalesie.org */

/* Gładkie przewijanie */
html {
    scroll-behavior: smooth;
}

/* Formatowanie treści ogłoszeń z panelu (Rich Content) */
.rich-content {
    color: #334155;
    line-height: 1.7;
    font-size: 1rem;
}

/* Poziom 1: Listy numerowane (1, 2, 3...) */
.rich-content ol {
    list-style-type: decimal;
    padding-left: 1.75rem;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

/* Poziom 2: Zagnieżdżona lista numerowana w numerowanej (a, b, c...) */
.rich-content ol ol {
    list-style-type: lower-alpha;
    padding-left: 1.5rem;
    margin-top: 0.35rem;
    margin-bottom: 0.5rem;
}

/* Poziom 3: Zagnieżdżona lista trzeciego stopnia (i, ii, iii...) */
.rich-content ol ol ol {
    list-style-type: lower-roman;
    padding-left: 1.5rem;
    margin-top: 0.25rem;
    margin-bottom: 0.35rem;
}

/* Poziom 1: Listy wypunktowane (• kropka) */
.rich-content ul {
    list-style-type: disc;
    padding-left: 1.75rem;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

/* Poziom 2: Podpunkty wypunktowane w numerowanej lub wypunktowanej (◦ kółko) */
.rich-content ul ul,
.rich-content ol ul {
    list-style-type: circle;
    padding-left: 1.5rem;
    margin-top: 0.35rem;
    margin-bottom: 0.5rem;
}

/* Poziom 3: Podpunkty trzeciego stopnia (▪ kwadrat) */
.rich-content ul ul ul,
.rich-content ol ul ul,
.rich-content ol ol ul {
    list-style-type: square;
    padding-left: 1.5rem;
    margin-top: 0.25rem;
    margin-bottom: 0.35rem;
}

.rich-content li {
    margin-bottom: 0.45rem;
    line-height: 1.65;
}

.rich-content li > p {
    margin-bottom: 0.25rem;
    display: inline;
}

.rich-content p,
.rich-content div {
    margin-bottom: 0.65rem;
    line-height: 1.65;
}

.rich-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
    color: #0f172a;
    font-family: 'Cinzel', serif;
}

.rich-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.35rem;
    margin-bottom: 0.5rem;
    color: #0f172a;
    font-family: 'Cinzel', serif;
}

.rich-content strong,
.rich-content b {
    font-weight: 700;
    color: #0f172a;
}

.rich-content blockquote {
    margin: 1rem 0 1rem 1rem;
    padding-left: 1rem;
    border-left: 4px solid #f59e0b;
    color: #475569;
    font-style: italic;
    background: #f8fafc;
    border-radius: 0 0.5rem 0.5rem 0;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Tabele wstawione przez edytor */
.rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.875rem;
}

.rich-content table th,
.rich-content table td {
    border: 1px solid #cbd5e1;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.rich-content table th {
    background-color: #f1f5f9;
    font-weight: 700;
    color: #0f172a;
}

.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 0.75rem 0;
}

/* Wygładzanie czcionek i cienie */
.font-sacral {
    letter-spacing: 0.02em;
}

/* Galeria lightbox */
.gallery-item img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}


/* ============================================================ */
/* STYLE OKRESÓW LITURGICZNYCH (SZATY GRAFICZNE)                */
/* ============================================================ */

/* Styl bazowy paska Mszy św. */
#msze .msze-subtext { color: #0f172a; }
#msze .msze-subtext strong { color: #000000; font-weight: 700; }
#msze .msze-divider { color: #475569; }
#msze .msze-spowiedz { color: #0f172a; }

/* 1. ADWENT (Królewski Fiolet & Złoto) */
body.theme-adwent {
    --liturgia-primary: #6b21a8;
    --liturgia-accent: #fbbf24;
}
body.theme-adwent #msze {
    background: linear-gradient(135deg, #2e1065 0%, #4c1d95 50%, #1e1b4b 100%) !important;
    border-top: 1px solid #7e22ce !important;
    border-bottom: 1px solid #7e22ce !important;
    color: #f3e8ff !important;
}
body.theme-adwent #msze .msze-subtext,
body.theme-adwent #msze .msze-spowiedz,
body.theme-adwent #msze .msze-info-row span {
    color: #f3e8ff !important;
}
body.theme-adwent #msze strong,
body.theme-adwent #msze .msze-subtext strong {
    color: #fbbf24 !important;
    font-weight: 700;
}
body.theme-adwent #msze .msze-divider {
    color: #a855f7 !important;
}
body.theme-adwent #msze .msze-badge {
    background-color: #1e1b4b !important;
    color: #fde047 !important;
    border: 1px solid #7e22ce !important;
}
/* Pigułka Rorat w Adwencie: maksymalny kontrast (wyraźna czerń na ciepłym złocie) */
#msze .msze-roraty,
.msze-roraty {
    background-color: #fbbf24 !important;
    color: #0f172a !important;
    border: 1px solid #d97706 !important;
    font-weight: 800 !important;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.15) !important;
}
#msze .msze-roraty *,
.msze-roraty * {
    color: #0f172a !important;
    font-weight: 800 !important;
}
body.theme-adwent .liturgia-pill {
    background-color: #581c87 !important;
    color: #f3e8ff !important;
    border-color: #9333ea !important;
}

/* 2. BOŻE NARODZENIE (Ciepłe Złoto, Biel & Świąteczna Radość) */
body.theme-boze-narodzenie {
    --liturgia-primary: #d97706;
    --liturgia-accent: #ffffff;
}
body.theme-boze-narodzenie #msze {
    background: linear-gradient(135deg, #b45309 0%, #d97706 50%, #78350f 100%) !important;
    color: #ffffff !important;
}
body.theme-boze-narodzenie #msze .msze-subtext,
body.theme-boze-narodzenie #msze .msze-spowiedz,
body.theme-boze-narodzenie #msze .msze-info-row span {
    color: #fffbeb !important;
}
body.theme-boze-narodzenie #msze strong,
body.theme-boze-narodzenie #msze .msze-subtext strong {
    color: #fef08a !important;
}
body.theme-boze-narodzenie #msze .msze-divider {
    color: #fde68a !important;
}

/* 3. WIELKI POST (Głęboki Fiolet, Popiel & Powaga) */
body.theme-wielki-post {
    --liturgia-primary: #4c1d95;
    --liturgia-accent: #94a3b8;
}
body.theme-wielki-post #msze {
    background: linear-gradient(135deg, #18181b 0%, #2e1065 50%, #0f172a 100%) !important;
    border-top: 1px solid #581c87 !important;
    border-bottom: 1px solid #581c87 !important;
    color: #f8fafc !important;
}
body.theme-wielki-post #msze .msze-subtext,
body.theme-wielki-post #msze .msze-spowiedz,
body.theme-wielki-post #msze .msze-info-row span {
    color: #e2e8f0 !important;
}
body.theme-wielki-post #msze strong,
body.theme-wielki-post #msze .msze-subtext strong {
    color: #ffffff !important;
    font-weight: 700;
}
body.theme-wielki-post #msze .msze-divider {
    color: #64748b !important;
}
body.theme-wielki-post #msze .msze-badge {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
    border: 1px solid #475569 !important;
}

/* 4. WIELKANOC (Promienne Złoto & Biel Zmartwychwstania) */
body.theme-wielkanoc {
    --liturgia-primary: #f59e0b;
    --liturgia-accent: #ffffff;
}
body.theme-wielkanoc #msze {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #d97706 100%) !important;
    color: #0f172a !important;
}
body.theme-wielkanoc #msze .msze-subtext,
body.theme-wielkanoc #msze .msze-spowiedz,
body.theme-wielkanoc #msze span {
    color: #0f172a !important;
}
body.theme-wielkanoc #msze strong,
body.theme-wielkanoc #msze .msze-subtext strong {
    color: #000000 !important;
}

/* 5. OKRES ZWYKŁY (Klasyczny Granat & Złoto z Szmaragdem) */
body.theme-zwykly {
    --liturgia-primary: #0f172a;
    --liturgia-accent: #f59e0b;
}

/* ============================================================ */
/* POPRAWKI KONTRASTU PASKA MSZY (muszą być na końcu pliku)      */
/* ============================================================ */

/* Wielkanoc: ogólna reguła „ciemny tekst na złotym tle” nie może obejmować
   ciemnych plakietek z godzinami Mszy – tam tekst musi być jasny. */
body.theme-wielkanoc #msze .msze-badge {
    background-color: #0f172a !important;
    color: #fde68a !important;
    border: 1px solid #b45309 !important;
}

/* Roraty: zawsze ciemny tekst na złotej pigułce – także wewnątrz paska Mszy,
   gdzie reguły okresu (np. złote <strong> w Adwencie) mają wyższy priorytet.
   Podwójna klasa podnosi priorytet ponad reguły motywów. */
#msze .msze-roraty.msze-roraty,
#msze .msze-roraty.msze-roraty *,
.msze-roraty.msze-roraty,
.msze-roraty.msze-roraty * {
    color: #0f172a !important;
}
