/* Blog Specific Styles */

/* Featured Blog Cards */
.blog-card-featured {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 2px solid #f3f4f6;
    position: relative;
    overflow: hidden;
}

.blog-card-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.blog-card-featured:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: #ef4444;
}

.blog-card-featured:hover::before {
    transform: scaleX(1);
}

.blog-title-large {
    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    line-height: 1.24;
    letter-spacing: -0.016em;
    transition: color 0.3s ease;
}

.blog-card-featured:hover .blog-title-large {
    color: #ef4444;
}

.blog-excerpt-large {
    color: #6b7280;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-size: 1.02rem;
}

/* Stat Pills */
.stat-pill {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    color: #ef4444;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.blog-link-large {
    display: inline-flex;
    align-items: center;
    color: #ef4444;
    font-weight: 700;
    font-size: 1.02rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.blog-link-large:hover {
    color: #dc2626;
    gap: 0.75rem;
}

/* Pagination */
.pagination-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #ef4444;
    color: #ef4444;
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #ef4444;
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Search and Filter Inputs */
input[type="text"],
input[type="email"],
select {
    font-family: 'Inter', sans-serif;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

/* Newsletter Form */
form input[type="email"] {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

form input[type="email"]:focus {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

/* Blog Categories */
.category-tag {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-tag:hover {
    background: #ef4444;
    color: white;
}

.category-tag.active {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

/* Author Avatar Animation */
.blog-meta .w-10 {
    transition: transform 0.3s ease;
}

.blog-card-featured:hover .blog-meta .w-10,
.blog-card:hover .blog-meta .w-10 {
    transform: scale(1.1);
}

/* Blog Card Hover Effect on Image (if images are added) */
.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-image,
.blog-card-featured:hover .blog-image {
    transform: scale(1.05);
}

/* Reading Progress Bar (for article pages) */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    z-index: 1000;
    transition: width 0.1s ease;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .blog-title-large {
        font-size: 1.5rem;
    }

    .blog-excerpt-large {
        font-size: 0.9375rem;
    }

    .stat-pill {
        font-size: 0.8125rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Smooth Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card,
.blog-card-featured {
    animation: slideInUp 0.6s ease-out forwards;
}

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

/* Tags Cloud (if needed) */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tag:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-2px);
}
