/* Blog Filter Enhancements */

/* No Results State */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results-icon {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4b5563;
    margin-bottom: 12px;
}

.no-results p {
    color: #9ca3af;
    margin-bottom: 24px;
}

/* Active Filter States */
.category-link.active,
.destination-tag.active {
    background: #667eea !important;
    color: white !important;
}

.category-link.active .count {
    background: rgba(255,255,255,0.2) !important;
    color: white !important;
}

/* Filter Transitions */
.blog-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.blog-item[style*="display: none"] {
    opacity: 0;
    transform: scale(0.95);
}

/* Loading State */
.blog-grid-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.blog-grid-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f4f6;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

.filter-btn {
    position: relative;
    font-weight: 400;
}

.category-link {
    position: relative;
    overflow: hidden;
    font-weight: 400;
}

.category-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

.category-link.active::after {
    width: 100%;
}

.destination-tag {
    position: relative;
    font-weight: 400;
}

.destination-tag.active::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    z-index: -1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

/* Sidebar Sticky Behavior */
@media (min-width: 992px) {
    .blog-sidebar {
        position: sticky;
        top: 100px;
    }
}

/* Featured Post Fade Effect */
#featuredPost {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#featuredPost[style*="display: none"] {
    opacity: 0;
    transform: translateY(-20px);
}

/* Blog Grid Animation */
.blog-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.blog-item:nth-child(1) { animation-delay: 0.1s; }
.blog-item:nth-child(2) { animation-delay: 0.2s; }
.blog-item:nth-child(3) { animation-delay: 0.3s; }
.blog-item:nth-child(4) { animation-delay: 0.4s; }
.blog-item:nth-child(5) { animation-delay: 0.5s; }
.blog-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Form Enhancement */
.search-form {
    position: relative;
}

.search-input:focus + .search-btn {
    background: #5568d3;
    transform: scale(1.05);
}

/* Widget Hover Effects */
.sidebar-widget {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.latest-post-item {
    transition: background 0.3s ease;
    border-radius: 12px;
    padding: 12px;
    margin: 0 -12px 16px;
}

/* Newsletter Widget Glow Effect */
.newsletter-widget {
    position: relative;
    overflow: hidden;
}

.newsletter-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(10%, 10%);
    }
}

.tag-item {
    position: relative;
    overflow: hidden;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .blog-sidebar {
        margin-top: 40px;
    }
    
.search-widget{
    display: none;
   }
}

@media (max-width: 767px) {
    .no-results {
        padding: 60px 20px;
    }
    
    .no-results-icon {
        font-size: 3rem;
    }
    
    .no-results h3 {
        font-size: 1.25rem;
    }
}

/* Print Styles */
@media print {
    .blog-sidebar,
    .filter-btn,
    .share-section {
        display: none !important;
    }
}
