/* ============================================
   BLOG LIST PAGE - MODERN UI STYLES
   ============================================ */

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Enhanced Blog Card */
.blog-card-enhanced {
    background: white;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.6s ease-out backwards;
    position: relative;
}

.blog-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.blog-card-enhanced:hover::before {
    left: 100%;
}

.blog-card-enhanced:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
}

/* Stagger animation for cards */
.blog-card-enhanced:nth-child(1) { animation-delay: 0.1s; }
.blog-card-enhanced:nth-child(2) { animation-delay: 0.2s; }
.blog-card-enhanced:nth-child(3) { animation-delay: 0.3s; }
.blog-card-enhanced:nth-child(4) { animation-delay: 0.4s; }
.blog-card-enhanced:nth-child(5) { animation-delay: 0.5s; }

/* Blog Card Image Container */
.blog-card-image {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card-enhanced:hover .blog-card-image img {
    transform: scale(1.08);
}

/* Image Overlay Gradient */
.blog-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.blog-card-enhanced:hover .blog-card-image::after {
    opacity: 1;
}

/* Blog Card Content */
.blog-card-content {
    padding: 2rem;
}

/* Enhanced Trending Badge */
.badge-trending {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #fdff6b 0%, #ff8787 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
    position: relative;
    overflow: hidden;
}

.badge-trending::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

/* Category Badges Enhanced */
.category-badge-modern {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, #00B4D8 0%, #0096c7 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 180, 216, 0.25);
    transition: all 0.3s ease;
}

.category-badge-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.35);
}

/* Blog Card Title */
.blog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0D1B2A;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-card-title:hover {
    color: #667eea;
}

/* Blog Card Meta */
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-card-meta a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-meta a:hover {
    color: #764ba2;
}

/* Blog Card Stats */
.blog-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05); /* Subtle background instead of light gradient */
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.blog-card-stats span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Blog Card Excerpt */
.blog-card-excerpt {
    color: #475569; /* Better contrast - slate-600 */
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Enhanced Read More Button */
.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.read-more-btn::after {
    content: '→';
    display: inline-block;
    transition: transform 0.3s ease;
}

.read-more-btn:hover {
    color: #764ba2;
    gap: 0.75rem;
}

.read-more-btn:hover::after {
    transform: translateX(5px);
}

/* Enhanced Search & Filter Section */
.search-filter-modern {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.08);
    animation: slideInLeft 0.6s ease-out;
}

/* Modern Input & Select Styles */
.input-modern, .select-modern {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.input-modern:focus, .select-modern:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

/* Filter Button Modern */
.filter-btn-modern {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.filter-btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.filter-btn-modern:active {
    transform: translateY(0);
}

/* Active Filter Pills */
.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin: 0.25rem;
    transition: all 0.3s ease;
    animation: fadeIn 0.4s ease-out;
}

.filter-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filter-pill-search {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.filter-pill-category {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.filter-pill-author {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.filter-pill-date {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

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

.pagination-btn {
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-btn-active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination-btn-inactive {
    background: white;
    color: #667eea;
    border: 2px solid #e2e8f0;
}

.pagination-btn-inactive:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.pagination-btn-disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

/* Ad Space Modern */
.ad-space-modern {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px dashed #cbd5e1;
    padding: 2rem;
    text-align: center;
    border-radius: 16px;
    margin: 2rem 0;
}

.ad-placeholder {
    max-width: 728px;
    height: 90px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Blogger CTA Card */
.blogger-cta-modern {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 2.5rem;
    text-align: center;
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.25);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

.blogger-cta-modern::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: pulse 3s infinite;
}

.blogger-cta-modern h2 {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.blogger-cta-modern p {
    position: relative;
    z-index: 1;
}

.cta-upgrade-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: #10b981;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cta-upgrade-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Empty State */
.empty-state-modern {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 20px;
    animation: fadeIn 0.6s ease-out;
}

.empty-state-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.empty-state-title {
    font-size: 1.5rem;
    color: #3E4C59;
    margin-bottom: 1rem;
    font-weight: 600;
}

.empty-state-text {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Breadcrumb Modern */
.breadcrumb-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    font-size: 0.95rem;
    animation: slideInLeft 0.5s ease-out;
}

.breadcrumb-modern a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.breadcrumb-modern a:hover {
    color: #764ba2;
}

.breadcrumb-separator {
    color: #cbd5e1;
    font-weight: 600;
}

/* Loading Skeletons Enhanced */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 12px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-card-image {
        height: 200px;
    }

    .blog-card-content {
        padding: 1.5rem;
    }

    .blog-card-title {
        font-size: 1.25rem;
    }

    .blogger-cta-modern {
        padding: 2rem 1.5rem;
    }

    .blogger-cta-modern h2 {
        font-size: 1.5rem;
    }

    .search-filter-modern {
        padding: 1.5rem;
    }
}
