/* Search Results Animation */
#news-posts.highlight-search {
    animation: pulse-highlight 2s ease-in-out;
}

@keyframes pulse-highlight {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}


/** Search Animation for Proclamations **/
.highlight-search {
    animation: highlight-pulse 2s ease-in-out;
}

@keyframes highlight-pulse {
    0% { 
        background-color: transparent; 
    }
    50% { 
        background-color: rgba(102, 126, 234, 0.1); 
    }
    100% { 
        background-color: transparent; 
    }
}


/* Smooth transitions for search state */
#news-hero,
#news-posts,
#pagination-2 {
    transition: all 0.3s ease-in-out;
}

/* Search-specific styles */
.search-active #news-hero {
    display: none;
}

.search-active #news-posts .section-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.search-active #news-posts .section-header h2 {
    color: white;
    margin-bottom: 0.5rem;
}

/* Result counter badge */
.result-count {
    background: #28a745;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-left: 1rem;
}

/* Loading animation enhancement */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Post box hover animations */
.post-box {
    transition: all 0.3s ease;
}

.post-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Fade in animation for new content */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide in animation */
.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.missed-category{
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: var(--accent-color);
    color: var(--contrast-color);
    margin-right: 0.5rem;
}