/* ========================================================
   BLOG LISTING STYLES (ARTICLE TILES THEME)
   ======================================================== */

.blog-listing-page {
    /* Deep space background */
    background: linear-gradient(180deg, #090B10 0%, #150A1F 100%);
    color: #e2e8f0;
    font-family: 'Inter', 'Poppins', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

.blog-hero {
    padding-bottom: 20px;
}

.text-theme-purple {
    color: #a855f7;
}

.max-w-800 {
    max-width: 800px;
}

.margin-auto {
    margin: 0 auto;
}

/* Blog Masonry Grid */
.blog-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

/* Base Card structure for Article Tiles */
.blog-card {
    background: rgba(15, 10, 25, 0.4);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(168, 85, 247, 0.15);
    transform: translateY(-8px) scale(1.02);
}

/* Subtle pattern overlay on the content section */
.pattern-bg {
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

.card-image-wrap {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .card-image-wrap img {
    transform: scale(1.1);
}

/* Distortion specific properties */
.distortion-img {
    filter: saturate(0.8) contrast(1.1);
    transition: filter 0.8s ease;
}

.blog-card:hover .distortion-img {
    filter: saturate(1.2) contrast(1.2);
}

/* Overlay & Button Reveal */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9, 11, 16, 0.9) 0%, rgba(9, 11, 16, 0.2) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    backdrop-filter: blur(2px);
    transition: opacity 0.5s ease;
}

.blog-card:hover .card-overlay {
    opacity: 1;
}

.read-more-btn {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.1s;
}

.blog-card:hover .read-more-btn {
    transform: translateY(0);
    opacity: 1;
}

/* Reading Time Badge */
.reading-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Exo 2', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    transform: translateY(-10px);
    opacity: 0.8;
    transition: all 0.4s ease;
}

.blog-card:hover .reading-badge {
    transform: translateY(0);
    opacity: 1;
    background: rgba(168, 85, 247, 0.8);
    border-color: #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

/* Content Area */
.card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-tag {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    align-self: flex-start;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cat-ai {
    background: rgba(168, 85, 247, 0.1);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.cat-performance {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.cat-dev {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.cat-social {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.cat-ecommerce {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.blog-heading {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.5rem;
    margin: 0 0 15px;
    color: #fff;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-heading {
    color: #c084fc;
}

.summary {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

/* Full Width Focus Tile Layout for 5th Item */
.full-width {
    grid-column: 1 / -1;
}

.focus-tile .blog-heading {
    font-size: 2.2rem;
    font-weight: 800;
}

.focus-tile .summary {
    font-size: 1.1rem;
}

/* Scrolling Entrance Animation specific */
.animated-entrance {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUpIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animation-delay-1 {
    animation-delay: 0.2s;
}

@keyframes fadeUpIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .blog-masonry {
        grid-template-columns: 1fr;
    }

    .card-image-wrap {
        height: 220px;
    }

    .focus-tile .blog-heading {
        font-size: 1.5rem;
    }
}