/**
 * Parish News Plugin Styles
 */

.parish-news-container {
    position: relative;
}

.parish-news-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

.parish-news-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #ddd;
    border-top-color: #4a6741;
    border-radius: 50%;
    animation: parish-news-spin 0.8s linear infinite;
}

@keyframes parish-news-spin {
    to { transform: rotate(360deg); }
}

.parish-news-list {
    margin: 0;
    padding: 0;
}

.parish-news-item {
    margin-bottom: 0.75em;
    padding-bottom: 0.75em;
    border-bottom: 1px solid #e0e0e0;
}

.parish-news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.parish-news-title {
    margin: 0 0 0.25em 0;
    font-size: 1.25em;
    line-height: 1.3;
}

.parish-news-title a {
    text-decoration: none;
    color: inherit;
}

.parish-news-title a:hover {
    text-decoration: underline;
}

.parish-news-content {
    line-height: 1.6;
}

.parish-news-date {
    font-size: 0.875em;
    color: #666;
}

.parish-news-separator {
    color: #666;
}

.parish-news-excerpt a {
    color: inherit;
    text-decoration: underline;
}

.parish-news-excerpt a:hover {
    text-decoration: none;
}

.parish-news-empty {
    color: #666;
    font-style: italic;
}

.parish-news-archive-link {
    margin-top: 1.5em;
    padding-top: 1em;
    border-top: 1px solid #e0e0e0;
}

.parish-news-archive-link a {
    color: inherit;
}

/* Pagination Controls - matching FAQ style */
.parish-news-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
}

.parish-news-per-page {
    display: flex;
    align-items: center;
    gap: 8px;
}

.parish-news-per-page label {
    color: #555;
    font-weight: 500;
}

.parish-news-per-page-select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.parish-news-page-info {
    color: #666;
}

.parish-news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 16px 0;
}

.parish-news-page-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.parish-news-page-btn:hover:not(:disabled) {
    background: #f0f6fc;
    border-color: #0073aa;
}

.parish-news-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.parish-news-page-numbers {
    display: flex;
    gap: 4px;
}

.parish-news-page-num {
    min-width: 36px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.parish-news-page-num:hover {
    background: #f0f6fc;
    border-color: #0073aa;
}

.parish-news-page-num.active {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

/* Responsive */
@media (max-width: 600px) {
    .parish-news-controls {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .parish-news-pagination {
        flex-wrap: wrap;
    }

    .parish-news-page-numbers {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
}
