/* Modern News Plugin - Card Layout */

/* Plugin uses theme variables - no defaults to avoid conflicts */

.modern-news-container {
    max-width: 1200px;
    margin: 0 auto;
}

.news-header {
    text-align: center;
}

.news-description {
    font-size: 1.1rem;
    color: var(--news-text-color, #6b7280);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.news-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--news-text-color, #6b7280);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.news-card {
    background: var(--news-card-bg, #fafbfc);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--news-border-color, #e5e7eb);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.news-image-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.news-image-link {
    display: block;
    height: 100%;
}

.news-picture {
    width: 100%;
    height: 100%;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--news-category-bg, #3b82f6);
    color: var(--news-category-text, #ffffff);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-content .news-header {
    margin-bottom: 1rem;
    text-align: left;
}

.news-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--news-title-color, #1f2937);
}

.news-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--news-link-hover, #3b82f6);
}

.news-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--news-meta-color, #6b7280);
    flex-wrap: wrap;
}

.news-author,
.news-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.news-content .news-description {
    margin-bottom: 1.5rem;
    flex: 1;
    text-align: left;
    max-width: none;
}

.news-footer {
    margin-top: auto;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--news-button-bg, #3b82f6);
    color: var(--news-button-text, #ffffff);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.news-read-more:hover {
    background: var(--news-button-hover, #2563eb);
    transform: translateX(2px);
}

.read-more-icon {
    transition: transform 0.3s ease;
}

.news-read-more:hover .read-more-icon {
    transform: translateX(2px);
}

/* Pagination */
.news-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-item {
    display: flex;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid var(--news-border-color, #e5e7eb);
    background: var(--news-card-bg, #fafbfc);
    color: var(--news-title-color, #1f2937);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-link:hover {
    background: var(--news-button-bg, #3b82f6);
    color: var(--news-button-text, #ffffff);
    border-color: var(--news-button-bg, #3b82f6);
}

.pagination-current {
    background: var(--news-button-bg, #3b82f6);
    color: var(--news-button-text, #ffffff);
    border-color: var(--news-button-bg, #3b82f6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-news-container {
        padding: 1rem 0;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .news-content {
        padding: 1rem;
    }
    
    .news-title {
        font-size: 1.125rem;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pagination-list {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .pagination-link {
        min-width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
}