/* ============================================
   INTENCJE MSZALNE - 5 SZABLONÓW WIZUALNYCH
   ============================================ */

/* ============================================
   STYL WSPÓLNY (resetuje typografię motywu)
   ============================================ */
.im-intencje {
    margin: 35px 0;
    line-height: 1.55;
}

.im-intencje *,
.im-intencje *::before,
.im-intencje *::after {
    box-sizing: border-box;
}

.im-intencje .im-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.im-intencje .im-tytul {
    margin: 0;
}

.im-intencje .im-pdf-link {
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0.3px;
    transition: all 0.2s;
    white-space: nowrap;
}

.im-intencje .im-dzien {
    margin-bottom: 22px;
}

.im-intencje .im-dzien:last-child {
    margin-bottom: 0;
}

.im-intencje .im-data {
    margin: 0 0 12px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}

.im-intencje .im-godzina-block {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 10px 0;
}

.im-intencje .im-godzina-col {
    flex: 0 0 90px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.im-intencje .im-godzina-label {
    font-weight: bold;
    font-variant-numeric: tabular-nums;
    text-align: center;
    width: 100%;
}

.im-intencje .im-miejsce {
    font-size: 0.85em;
    text-align: center;
    width: 100%;
}

.im-intencje .im-msze {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    min-width: 0;
}

.im-intencje .im-msza {
    padding: 4px 0;
    line-height: 1.5;
}

.im-intencje .im-msze-multi .im-msza {
    padding: 8px 0;
}

.im-intencje .im-numer {
    font-weight: bold;
    margin-right: 6px;
    display: inline-block;
    min-width: 22px;
}

.im-intencje .im-uwagi {
    display: inline-block;
    font-style: italic;
    font-size: 0.9em;
    margin-left: 8px;
    opacity: 0.75;
}

.im-intencje .im-uwagi::before {
    content: "— ";
}

.im-intencje.im-empty {
    text-align: center;
    font-style: italic;
    padding: 25px;
}

/* Responsywność wspólna */
@media (max-width: 600px) {
    .im-intencje .im-godzina-block {
        flex-direction: column;
        gap: 6px;
    }
    .im-intencje .im-godzina-col {
        flex: none;
        align-self: flex-start;
        flex-direction: row;
        gap: 10px;
        width: auto;
    }
    .im-intencje .im-godzina-label,
    .im-intencje .im-miejsce {
        text-align: left;
        width: auto;
    }
    .im-intencje .im-data {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .im-intencje .im-uwagi {
        display: block;
        margin-left: 28px;
        margin-top: 2px;
    }
}

/* ============================================
   STYL 1: KLASYCZNY (brązowy)
   ============================================ */
.im-intencje.im-style-klasyczny {
    padding: 25px 30px;
    background: #ffffff;
    border: 2px solid #5d3a1a;
    border-radius: 6px;
    font-family: Georgia, 'Times New Roman', 'Liberation Serif', serif;
    color: #1a1a1a;
    font-size: 17px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.im-intencje.im-style-klasyczny .im-header {
    border-bottom: 3px solid #5d3a1a;
    padding-bottom: 12px;
}
.im-intencje.im-style-klasyczny .im-tytul {
    font-size: 1.6em;
    color: #5d3a1a;
    font-weight: bold;
    letter-spacing: 0.5px;
}
.im-intencje.im-style-klasyczny .im-pdf-link {
    background: #5d3a1a;
    color: #ffffff;
    font-weight: bold;
}
.im-intencje.im-style-klasyczny .im-pdf-link:hover {
    background: #3d2410;
    color: #fff;
}
.im-intencje.im-style-klasyczny .im-dzien {
    padding-bottom: 18px;
    border-bottom: 1px solid #e0d4bf;
}
.im-intencje.im-style-klasyczny .im-dzien:last-child {
    border-bottom: none;
}
.im-intencje.im-style-klasyczny .im-data {
    padding: 10px 16px;
    background: #5d3a1a;
    color: #ffffff;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 4px;
}
.im-intencje.im-style-klasyczny .im-data-dzien {
    text-transform: uppercase;
    letter-spacing: 1px;
}
.im-intencje.im-style-klasyczny .im-godzina-label {
    color: #5d3a1a;
    background: #f5ede0;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #d4c4a8;
    font-size: 1.05em;
}
.im-intencje.im-style-klasyczny .im-miejsce {
    color: #5d3a1a;
    font-style: italic;
    font-weight: 600;
}
.im-intencje.im-style-klasyczny .im-godzina-block {
    border-bottom: 1px dotted #c4b596;
}
.im-intencje.im-style-klasyczny .im-godzina-block:last-child {
    border-bottom: none;
}
.im-intencje.im-style-klasyczny .im-msze-multi .im-msza {
    border-top: 1px dotted #d4c4a8;
}
.im-intencje.im-style-klasyczny .im-msze-multi .im-msza:first-child {
    border-top: none;
}
.im-intencje.im-style-klasyczny .im-numer {
    color: #5d3a1a;
}

/* ============================================
   STYL 2: KONTRASTOWY (czarne na białym)
   ============================================ */
.im-intencje.im-style-kontrastowy {
    padding: 25px 28px;
    background: #ffffff;
    border: 3px solid #000000;
    font-family: Arial, Helvetica, sans-serif;
    color: #000000;
    font-size: 18px;
    font-weight: 500;
}
.im-intencje.im-style-kontrastowy .im-header {
    border-bottom: 3px solid #000;
    padding-bottom: 12px;
}
.im-intencje.im-style-kontrastowy .im-tytul {
    font-size: 1.8em;
    color: #000;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.im-intencje.im-style-kontrastowy .im-pdf-link {
    background: #000;
    color: #fff;
    font-weight: bold;
    border-radius: 0;
    border: 2px solid #000;
}
.im-intencje.im-style-kontrastowy .im-pdf-link:hover {
    background: #fff;
    color: #000;
}
.im-intencje.im-style-kontrastowy .im-dzien {
    padding-bottom: 18px;
    border-bottom: 2px solid #000;
}
.im-intencje.im-style-kontrastowy .im-dzien:last-child {
    border-bottom: none;
}
.im-intencje.im-style-kontrastowy .im-data {
    padding: 12px 18px;
    background: #000;
    color: #ffeb3b;
    font-size: 1.2em;
    font-weight: 900;
    border-radius: 0;
    text-transform: uppercase;
}
.im-intencje.im-style-kontrastowy .im-godzina-label {
    background: #000;
    color: #fff;
    padding: 8px 12px;
    border: 3px solid #000;
    font-size: 1.15em;
    font-weight: 900;
}
.im-intencje.im-style-kontrastowy .im-miejsce {
    background: #ffeb3b;
    color: #000;
    padding: 2px 6px;
    border: 2px solid #000;
    font-weight: bold;
    font-size: 0.85em;
}
.im-intencje.im-style-kontrastowy .im-godzina-block {
    border-bottom: 2px solid #000;
}
.im-intencje.im-style-kontrastowy .im-godzina-block:last-child {
    border-bottom: none;
}
.im-intencje.im-style-kontrastowy .im-numer {
    background: #000;
    color: #fff;
    padding: 1px 7px;
    border-radius: 50%;
    font-weight: 900;
    text-align: center;
}
.im-intencje.im-style-kontrastowy .im-uwagi {
    color: #000;
    font-weight: 600;
    opacity: 1;
}

/* ============================================
   STYL 3: CZYTELNY (duża czcionka, sans-serif)
   ============================================ */
.im-intencje.im-style-czytelny {
    padding: 35px 40px;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #222222;
    font-size: 20px;
    line-height: 1.75;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.im-intencje.im-style-czytelny .im-header {
    padding-bottom: 18px;
    margin-bottom: 28px;
    border-bottom: 1px solid #e0e0e0;
}
.im-intencje.im-style-czytelny .im-tytul {
    font-size: 1.8em;
    color: #1a4d8c;
    font-weight: 600;
}
.im-intencje.im-style-czytelny .im-pdf-link {
    background: #f0f0f0;
    color: #1a4d8c;
    font-weight: 600;
    border: 1px solid #d0d0d0;
}
.im-intencje.im-style-czytelny .im-pdf-link:hover {
    background: #1a4d8c;
    color: #fff;
}
.im-intencje.im-style-czytelny .im-dzien {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e8e8e8;
}
.im-intencje.im-style-czytelny .im-dzien:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.im-intencje.im-style-czytelny .im-data {
    padding: 14px 20px;
    background: #f7f9fc;
    color: #1a4d8c;
    font-size: 1.15em;
    font-weight: 600;
    border-left: 5px solid #1a4d8c;
    border-radius: 0 4px 4px 0;
}
.im-intencje.im-style-czytelny .im-data-dzien {
    font-weight: 700;
}
.im-intencje.im-style-czytelny .im-data-pelna {
    color: #666;
    font-size: 0.92em;
}
.im-intencje.im-style-czytelny .im-godzina-block {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 24px;
}
.im-intencje.im-style-czytelny .im-godzina-block:last-child {
    border-bottom: none;
}
.im-intencje.im-style-czytelny .im-godzina-col {
    flex: 0 0 100px;
}
.im-intencje.im-style-czytelny .im-godzina-label {
    color: #1a4d8c;
    font-size: 1.4em;
    font-weight: 700;
}
.im-intencje.im-style-czytelny .im-miejsce {
    color: #555;
    font-size: 0.9em;
    font-weight: 500;
}
.im-intencje.im-style-czytelny .im-msza {
    padding: 6px 0;
}
.im-intencje.im-style-czytelny .im-numer {
    color: #1a4d8c;
    font-weight: 700;
}

/* ============================================
   STYL 4: MINIMALISTYCZNY (bez ramek)
   ============================================ */
.im-intencje.im-style-minimalistyczny {
    padding: 0;
    background: transparent;
    border: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.65;
}
.im-intencje.im-style-minimalistyczny .im-header {
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}
.im-intencje.im-style-minimalistyczny .im-tytul {
    font-size: 1.4em;
    color: #2c3e50;
    font-weight: 300;
    letter-spacing: 0.5px;
}
.im-intencje.im-style-minimalistyczny .im-pdf-link {
    color: #7f8c8d;
    background: transparent;
    padding: 4px 0;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.im-intencje.im-style-minimalistyczny .im-pdf-link:hover {
    color: #2c3e50;
}
.im-intencje.im-style-minimalistyczny .im-dzien {
    padding-bottom: 18px;
    margin-bottom: 18px;
}
.im-intencje.im-style-minimalistyczny .im-dzien:last-child {
    margin-bottom: 0;
}
.im-intencje.im-style-minimalistyczny .im-data {
    padding: 0;
    background: transparent;
    color: #95a5a6;
    font-size: 0.85em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.im-intencje.im-style-minimalistyczny .im-data-pelna {
    text-transform: none;
    letter-spacing: 0;
    color: #2c3e50;
    font-weight: 400;
    font-size: 1.1em;
}
.im-intencje.im-style-minimalistyczny .im-godzina-block {
    border-bottom: 1px solid #ecf0f1;
    padding: 14px 0;
}
.im-intencje.im-style-minimalistyczny .im-godzina-block:last-child {
    border-bottom: none;
}
.im-intencje.im-style-minimalistyczny .im-godzina-label {
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 500;
}
.im-intencje.im-style-minimalistyczny .im-miejsce {
    color: #95a5a6;
    font-size: 0.8em;
    font-weight: 400;
}
.im-intencje.im-style-minimalistyczny .im-numer {
    color: #95a5a6;
    font-weight: 400;
}

/* ============================================
   STYL 5: ELEGANCKI (pergamin, ozdobne nagłówki)
   ============================================ */
.im-intencje.im-style-elegancki {
    padding: 35px 40px;
    background: linear-gradient(135deg, #faf3e0 0%, #f5e6c8 100%);
    border: 1px solid #c9a96e;
    border-radius: 2px;
    font-family: 'Garamond', 'EB Garamond', Georgia, serif;
    color: #3d2817;
    font-size: 18px;
    line-height: 1.65;
    box-shadow: 0 4px 12px rgba(139, 90, 43, 0.15), inset 0 0 30px rgba(201, 169, 110, 0.1);
    position: relative;
}
.im-intencje.im-style-elegancki::before,
.im-intencje.im-style-elegancki::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(to right, transparent, #c9a96e, transparent);
}
.im-intencje.im-style-elegancki::before { top: 12px; }
.im-intencje.im-style-elegancki::after { bottom: 12px; }
.im-intencje.im-style-elegancki .im-header {
    text-align: center;
    flex-direction: column;
    padding-bottom: 16px;
    margin-bottom: 22px;
    border-bottom: 1px solid #c9a96e;
    position: relative;
}
.im-intencje.im-style-elegancki .im-tytul {
    font-size: 2em;
    color: #6b3410;
    font-style: italic;
    font-weight: 400;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
}
.im-intencje.im-style-elegancki .im-tytul::before,
.im-intencje.im-style-elegancki .im-tytul::after {
    content: "❦";
    color: #c9a96e;
    margin: 0 12px;
    font-size: 0.7em;
    vertical-align: middle;
}
.im-intencje.im-style-elegancki .im-pdf-link {
    background: transparent;
    color: #6b3410;
    border: 1px solid #c9a96e;
    font-style: italic;
    font-family: Georgia, serif;
}
.im-intencje.im-style-elegancki .im-pdf-link:hover {
    background: #6b3410;
    color: #faf3e0;
    border-color: #6b3410;
}
.im-intencje.im-style-elegancki .im-dzien {
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.im-intencje.im-style-elegancki .im-dzien:last-child {
    margin-bottom: 0;
}
.im-intencje.im-style-elegancki .im-data {
    text-align: center;
    flex-direction: column;
    padding: 8px 0;
    background: transparent;
    color: #6b3410;
    border-top: 1px solid #c9a96e;
    border-bottom: 1px solid #c9a96e;
    font-style: italic;
}
.im-intencje.im-style-elegancki .im-data-dzien {
    font-size: 1.25em;
    font-weight: 500;
    letter-spacing: 1px;
}
.im-intencje.im-style-elegancki .im-data-pelna {
    font-size: 0.95em;
    opacity: 0.85;
}
.im-intencje.im-style-elegancki .im-godzina-block {
    border-bottom: 1px dotted #c9a96e;
}
.im-intencje.im-style-elegancki .im-godzina-block:last-child {
    border-bottom: none;
}
.im-intencje.im-style-elegancki .im-godzina-label {
    color: #6b3410;
    font-weight: 600;
    font-size: 1.15em;
    border-bottom: 1px solid #c9a96e;
    padding-bottom: 2px;
}
.im-intencje.im-style-elegancki .im-miejsce {
    color: #8b5a2b;
    font-style: italic;
    font-size: 0.85em;
}
.im-intencje.im-style-elegancki .im-numer {
    color: #6b3410;
    font-style: italic;
    font-weight: 500;
}
.im-intencje.im-style-elegancki .im-uwagi {
    color: #8b5a2b;
}

/* ============================================
   ŚWIĘTO - styl wspólny + per szablon
   ============================================ */
.im-intencje .im-swieto {
    margin: 0 0 12px;
    padding: 6px 12px;
    font-style: italic;
    text-align: center;
}

/* Klasyczny - akcent brązowy */
.im-intencje.im-style-klasyczny .im-swieto {
    background: #f5ede0;
    color: #5d3a1a;
    border-left: 3px solid #5d3a1a;
    border-radius: 0 4px 4px 0;
    font-weight: 500;
}

/* Kontrastowy - mocno wyraźny */
.im-intencje.im-style-kontrastowy .im-swieto {
    background: #ffeb3b;
    color: #000;
    border: 2px solid #000;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Czytelny - subtelny niebieski */
.im-intencje.im-style-czytelny .im-swieto {
    background: #f0f4fa;
    color: #1a4d8c;
    border-left: 3px solid #1a4d8c;
    border-radius: 0 4px 4px 0;
    padding: 8px 14px;
    font-size: 1.05em;
}

/* Minimalistyczny - sama kursywa */
.im-intencje.im-style-minimalistyczny .im-swieto {
    background: transparent;
    color: #7f8c8d;
    padding: 0;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

/* Elegancki - ozdobnie */
.im-intencje.im-style-elegancki .im-swieto {
    background: transparent;
    color: #6b3410;
    border-top: none;
    padding: 6px 16px;
    font-family: 'Garamond', Georgia, serif;
    font-size: 1.05em;
    font-weight: 500;
}
.im-intencje.im-style-elegancki .im-swieto::before,
.im-intencje.im-style-elegancki .im-swieto::after {
    content: "·";
    color: #c9a96e;
    margin: 0 8px;
    font-weight: bold;
}

/* ============================================
   NAWIGACJA TYGODNIOWA (shortcode intencje_strona)
   ============================================ */
.im-strona-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.im-tydzien-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    margin: 25px 0;
    padding: 16px 20px;
    background: #f8f5f0;
    border: 1px solid #d4c4a8;
    border-radius: 6px;
}

.im-tydzien-nav.im-nav-bottom {
    margin-top: 30px;
    background: transparent;
    border: none;
    padding: 0;
    justify-content: space-between;
}

.im-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #5d3a1a;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    font-family: Arial, Helvetica, sans-serif;
    white-space: nowrap;
}

.im-nav-btn:hover,
.im-nav-btn:focus {
    background: #3d2410;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.im-nav-current {
    flex: 1;
    text-align: center;
    min-width: 200px;
}

.im-nav-range {
    font-size: 1.15em;
    font-weight: 700;
    color: #5d3a1a;
    font-family: Georgia, serif;
}

.im-nav-today {
    display: inline-block;
    margin-top: 4px;
    color: #1a4d8c;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 500;
}

.im-nav-today:hover {
    text-decoration: underline;
}

.im-nav-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 10px;
    background: #5d3a1a;
    color: #fff;
    border-radius: 12px;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: bold;
}

/* Responsywność nawigacji */
@media (max-width: 600px) {
    .im-tydzien-nav {
        padding: 12px;
    }
    .im-nav-btn {
        padding: 8px 12px;
        font-size: 14px;
        flex: 1;
        justify-content: center;
    }
    .im-nav-current {
        order: -1;
        flex: 1 1 100%;
        margin-bottom: 8px;
    }
    .im-tydzien-nav.im-nav-bottom .im-nav-current {
        display: none;
    }
}
