/* Blog Page Specific Styles */

/* Compact Stats Section */
.compact-stats {
    border-bottom: 1px solid #e5e7eb;
}

.dark .compact-stats {
    border-bottom: 1px solid #374151;
}

/* Animation Keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes float-delay {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
    animation: float-delay 8s ease-in-out infinite 2s;
}

/* Hero Section Enhancements */
.hero-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.15) 1px, transparent 0);
    background-size: 40px 40px;
}

/* Compact Hero Adjustments */
.compact-hero {
    min-height: 280px;
}

@media (max-width: 768px) {
    .compact-hero {
        min-height: 240px;
    }
}

/* Blog Card Enhancements */
.blog-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.blog-card-list {
    transition: all 0.3s ease;
}

.blog-card-list:hover {
    transform: translateY(-2px);
}

/* Search Bar Enhancements */
.search-input {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Filter Button Enhancements */
.filter-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn.active {
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

/* View Toggle Buttons */
.view-toggle {
    color: #6b7280;
    transition: all 0.2s ease;
}

.view-toggle.active {
    background-color: #3b82f6;
    color: white;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.view-toggle:hover:not(.active) {
    background-color: #f3f4f6;
    color: #374151;
}

/* Sticky Filter Bar */
.sticky-filters {
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

/* Dark mode sticky filters */
.dark .sticky-filters {
    border-bottom-color: rgba(75, 85, 99, 0.8);
}

/* Category Tags */
.category-tag {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.category-tag:hover {
    transform: scale(1.05);
}

/* Line Clamp Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Reading Time Badge */
.reading-time-badge {
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
}

/* Featured Badge */
.featured-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
    animation: pulse 2s infinite;
}

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

/* Author Avatar Enhancements */
.author-avatar {
    transition: all 0.3s ease;
}

.author-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Stats Icons Hover Effects */
.stat-icon {
    transition: all 0.2s ease;
}

.stat-icon:hover {
    transform: scale(1.1);
}

/* Image Hover Effects */
.image-hover-effect {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-hover-effect:hover {
    transform: scale(1.1);
}

/* Dropdown Animation */
.dropdown-enter {
    opacity: 0;
    transform: translateY(-10px);
}

.dropdown-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.dropdown-exit {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-exit-active {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .blog-card:hover {
        transform: translateY(-4px);
    }

    .filter-btn {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .search-input {
        font-size: 1rem;
        padding: 0.875rem 3rem 0.875rem 2.5rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .blog-card {
        border: 2px solid #000;
    }

    .filter-btn {
        border-width: 2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .animate-float,
    .animate-float-delay,
    .animate-bounce {
        animation: none;
    }

    .blog-card,
    .filter-btn,
    .view-toggle,
    .image-hover-effect {
        transition: none;
    }

    .blog-card:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .sticky-filters,
    .hero-section,
    .floating-elements {
        display: none;
    }

    .blog-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}