/**
 * Metla MK Core - Public Styles
 * 
 * @package MetlaMK
 * @since 1.0.0
 */

/* News Gallery Styles */
.news-gallery {
    margin: 20px 0;
}

.news-gallery-main {
    position: relative;
    margin-bottom: 10px;
}

.news-gallery-item {
    display: none;
}

.news-gallery-item.active {
    display: block;
}

.news-gallery-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.news-gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.news-gallery-thumb-item {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.news-gallery-thumb-item:hover,
.news-gallery-thumb-item.active {
    opacity: 1;
}

.news-gallery-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

/* News Meta Styles */
.news-subtitle {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.breaking-news-badge {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.news-video {
    margin: 20px 0;
}

.news-video iframe {
    width: 100%;
    height: 400px;
    border-radius: 8px;
}

.news-source {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #007cba;
    font-size: 0.9em;
}

.news-source a {
    color: #007cba;
    text-decoration: none;
}

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

/* Pagination Styles */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: white;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
}

.pagination-current {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.pagination-current:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    color: white;
}

.pagination-prev,
.pagination-next {
    font-weight: 600;
}

/* Archive Page Styles */
.breadcrumb a:hover {
    color: white;
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.sidebar-widget {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.widget-title {
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 2rem;
    height: 2px;
    background-color: #3b82f6;
    border-radius: 1px;
}

.recent-news-item img {
    border-radius: 0.5rem;
}

/* No Posts Styles */
.no-posts {
    text-align: center;
    padding: 4rem 1rem;
}

.no-posts svg {
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-gallery-thumbs {
        justify-content: center;
    }
    
    .news-video iframe {
        height: 250px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .pagination-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .page-header {
        padding: 2rem 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}