/* ====================================
   Professional Blog Styling
   ==================================== */

/* Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 5rem clamp(1.5rem, 5vw, 6rem) 4rem;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.blog-hero__content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.blog-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(241, 245, 255, 0.85);
    margin: 0;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Blog Grid */
.blog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem clamp(1.5rem, 5vw, 6rem);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Blog Cards */
.blog-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.1), 0 2px 4px -1px rgba(79, 70, 229, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(99, 102, 241, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.15), 0 10px 10px -5px rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    background: linear-gradient(135deg, #f0f2ff 0%, #fafbff 100%);
}

.blog-card__image {
    width: 100%;
    height: 240px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 100%);
    display: block;
    text-decoration: none;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.05);
}

.blog-card__image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(79, 70, 229, 0.05) 100%);
    pointer-events: none;
}

.blog-card__content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-card__category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card__date {
    font-size: 0.875rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-card__date svg {
    width: 16px;
    height: 16px;
}

.blog-card__title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.blog-card__title a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-card__title a:hover {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-card__excerpt {
    color: #475569;
    line-height: 1.7;
    margin: 0 0 1.5rem 0;
    flex: 1;
}

.blog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(99, 102, 241, 0.15);
}

.blog-card__read-time {
    font-size: 0.875rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6366f1;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-card__read-more:hover {
    gap: 0.75rem;
    color: #4f46e5;
}

.blog-card__read-more svg {
    width: 16px;
    height: 16px;
}

/* Empty State */
.blog-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.blog-empty h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem 0;
}

.blog-empty p {
    color: #475569;
    font-size: 1.0625rem;
    margin: 0;
}

/* Touch Devices - Disable hover effects */
@media (hover: none) {
    .blog-card:hover {
        transform: none;
    }
    
    .blog-card:hover .blog-card__image img {
        transform: none;
    }
    
    .blog-card__read-more:hover {
        gap: 0.5rem;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .blog-hero {
        padding: 3rem 1.5rem 2rem;
    }
    
    .blog-hero h1 {
        font-size: 2.5rem;
    }
    
    .blog-hero p {
        font-size: 1rem;
    }
    
    .blog-container {
        padding: 2rem 1rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-card__image {
        height: 200px;
    }
    
    .blog-card__title {
        font-size: 1.25rem;
    }
    
    .blog-card__content {
        padding: 1.25rem;
    }
    
    .blog-card__meta {
        gap: 0.75rem;
    }
    
    .blog-card__category {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    .blog-card__date {
        font-size: 0.8125rem;
    }
    
    .blog-card__excerpt {
        font-size: 0.9375rem;
        line-height: 1.6;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .blog-hero {
        padding: 2.5rem 1rem 1.5rem;
    }
    
    .blog-grid {
        gap: 1.25rem;
    }
    
    .blog-card__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}
