/* Style dla frontendu - Listy Pasterskie */

.listy-pasterskie-single,
.listy-pasterskie-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Herb biskupa - nagłówek */
.biskup-herb-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.biskup-herb {
    width: 120px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 3px solid #fff;
}

.biskup-herb-header .header-text {
    flex: 1;
}

.biskup-title {
    font-size: 1.8em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.biskup-subtitle {
    font-size: 1.1em;
    color: #6c757d;
    font-style: italic;
}

/* Pojedynczy list pasterski */
.list-pasterski-single {
    background: #fff;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-radius: 8px;
    border-top: 4px solid #d4a574;
}

.list-pasterski-single .entry-header {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e9ecef;
}

.list-pasterski-single .entry-title {
    font-size: 2.2em;
    margin: 20px 0 15px 0;
    color: #2c3e50;
    line-height: 1.3;
    font-weight: 600;
}

.list-pasterski-single .entry-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.95em;
    color: #495057;
    margin-top: 15px;
}

.list-pasterski-single .entry-meta span {
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 20px;
    border: 1px solid #dee2e6;
    font-weight: 500;
}

.list-pasterski-single .entry-meta .okres {
    background: #e7f3ff;
    color: #0d6efd;
    border-color: #b3d9ff;
}

.list-pasterski-single .entry-meta .rok {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.list-pasterski-single .entry-meta .data {
    background: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
}

.list-pasterski-single .entry-excerpt {
    font-size: 1.15em;
    font-style: italic;
    color: #495057;
    margin: 25px 0;
    padding: 20px 25px;
    background: #f8f9fa;
    border-left: 5px solid #d4a574;
    border-radius: 4px;
    line-height: 1.7;
}

.list-pasterski-single .entry-content {
    margin: 30px 0;
    line-height: 1.9;
    color: #495057;
    font-size: 1.05em;
}

.list-pasterski-single .entry-content p {
    margin-bottom: 1.2em;
}

.list-pasterski-single .letter-content {
    margin-top: 20px;
}

.list-pasterski-single .letter-content p:first-child {
    margin-top: 0;
}

.list-pasterski-single .letter-content p:last-child {
    margin-bottom: 0;
}

.list-pasterski-single .pdf-notice {
    margin: 25px 0;
    padding: 20px;
    background: #e7f3ff;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #b3d9ff;
}

.list-pasterski-single .pdf-download-btn {
    display: inline-block;
    padding: 14px 28px;
    background: #0d6efd;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(13, 110, 253, 0.3);
}

.list-pasterski-single .pdf-download-btn:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.4);
}

.list-pasterski-single .post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 2px solid #e9ecef;
    gap: 20px;
}

.list-pasterski-single .post-navigation a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s;
}

.list-pasterski-single .post-navigation a:hover {
    background: #e7f3ff;
    text-decoration: none;
}

.back-to-archive {
    margin: 30px 0;
}

.back-to-archive a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    display: inline-block;
    border-radius: 4px;
    transition: all 0.3s;
}

.back-to-archive a:hover {
    background: #e7f3ff;
    text-decoration: none;
}

/* Archiwum */
.listy-pasterskie-archive .archive-header {
    margin-bottom: 40px;
}

.listy-pasterskie-archive .archive-title {
    font-size: 2.5em;
    margin: 20px 0 0 0;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.2;
}

.listy-pasterskie-archive .filters {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
    align-items: center;
    border: 1px solid #e9ecef;
}

.listy-pasterskie-archive .filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.listy-pasterskie-archive .filter-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95em;
}

.listy-pasterskie-archive .filter-group select {
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s;
}

.listy-pasterskie-archive .filter-group select:hover {
    border-color: #adb5bd;
}

.listy-pasterskie-archive .filter-group select:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.listy-pasterskie-archive .filter-group .button {
    padding: 10px 20px;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.listy-pasterskie-archive .filter-group .button:hover {
    background: #5a6268;
}

.listy-pasterskie-list {
    display: grid;
    gap: 25px;
}

/* Element listy */
.list-pasterski-item {
    background: #fff;
    padding: 30px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s;
    border-top: 3px solid #d4a574;
}

.list-pasterski-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-top-color: #c19760;
}

.list-pasterski-item .entry-title {
    margin: 0 0 15px 0;
    font-size: 1.6em;
}

.list-pasterski-item .entry-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 600;
}

.list-pasterski-item .entry-title a:hover {
    color: #0d6efd;
    text-decoration: none;
}

.list-pasterski-item .entry-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    font-size: 0.9em;
}

.list-pasterski-item .entry-meta span {
    padding: 6px 14px;
    background: #f8f9fa;
    border-radius: 20px;
    border: 1px solid #dee2e6;
    font-weight: 500;
}

.list-pasterski-item .entry-meta .okres {
    background: #e7f3ff;
    border-color: #b3d9ff;
}

.list-pasterski-item .entry-meta .okres a {
    color: #0d6efd;
    text-decoration: none;
}

.list-pasterski-item .entry-meta .rok {
    background: #fff3cd;
    border-color: #ffeaa7;
}

.list-pasterski-item .entry-meta .rok a {
    color: #856404;
    text-decoration: none;
}

.list-pasterski-item .entry-excerpt {
    margin: 15px 0;
    color: #6c757d;
    line-height: 1.7;
    font-size: 1em;
}

.list-pasterski-item .entry-footer {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.list-pasterski-item .read-more {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s;
}

.list-pasterski-item .read-more:hover {
    background: #e7f3ff;
    text-decoration: none;
}

.list-pasterski-item .pdf-link {
    color: #856404;
    text-decoration: none;
    font-size: 0.9em;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s;
}

.list-pasterski-item .pdf-link:hover {
    background: #fff3cd;
    text-decoration: none;
}

/* Paginacja */
.pagination {
    margin: 50px 0;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 3px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-decoration: none;
    color: #0d6efd;
    transition: all 0.3s;
}

.pagination .current {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
    font-weight: 600;
}

.pagination a:hover {
    background: #e7f3ff;
    border-color: #0d6efd;
    text-decoration: none;
}

.no-posts {
    text-align: center;
    padding: 60px 40px;
    color: #6c757d;
    font-size: 1.2em;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Shortcode - layout grid */
.listy-pasterskie-shortcode.layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.listy-pasterskie-shortcode.layout-list {
    display: block;
}

/* Responsywność */
@media (max-width: 768px) {
    .biskup-herb-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .biskup-herb {
        width: 100px;
        margin: 0 auto;
    }
    
    .biskup-title {
        font-size: 1.4em;
    }
    
    .listy-pasterskie-archive .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .listy-pasterskie-archive .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .listy-pasterskie-archive .filter-group select {
        width: 100%;
    }
    
    .list-pasterski-single {
        padding: 25px 20px;
    }
    
    .list-pasterski-single .entry-title {
        font-size: 1.6em;
    }
    
    .list-pasterski-single .post-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .list-pasterski-item {
        padding: 20px;
    }
    
    .list-pasterski-item .entry-footer {
        flex-direction: column;
    }
}

/* PDF Viewer */
.pdf-viewer-wrapper {
    margin: 30px 0;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.pdf-viewer-wrapper iframe {
    width: 100%;
    min-height: 600px;
    border: none;
}
