/* ============================================
   PROFILSAE - BLOG LIST PAGE V2
   Design System Cohérent
   ============================================ */

/* ============================================
   HERO SECTION
   ============================================ */
.blog-list-hero {
    background: linear-gradient(135deg, var(--color-slate-900) 0%, var(--color-slate-800) 100%);
    padding: var(--space-16) var(--space-6) var(--space-12);
    position: relative;
    overflow: hidden;
}

.blog-list-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(5, 150, 105, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.blog-list-hero .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-list-hero-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-bottom: var(--space-6);
    justify-content: center;
}

.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--color-slate-400);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    transition: color var(--duration-200) var(--ease-out);
}

.breadcrumb-link:hover {
    color: var(--color-primary-light);
}

.breadcrumb-link svg {
    opacity: 0.7;
}

.breadcrumb-separator {
    color: var(--color-slate-600);
}

.breadcrumb-current {
    color: var(--color-slate-300);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
}

/* Title */
.blog-list-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: var(--weight-bold);
    color: var(--color-white);
    margin: 0 0 var(--space-4);
}

.blog-list-title svg {
    color: var(--color-primary-light);
}

.blog-list-subtitle {
    font-size: var(--text-lg);
    color: var(--color-slate-400);
    margin: 0 0 var(--space-8);
    line-height: var(--leading-relaxed);
}

/* Stats */
.blog-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-10);
}

.blog-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog-stat-value {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    color: var(--color-primary-light);
}

.blog-stat-label {
    font-size: var(--text-sm);
    color: var(--color-slate-400);
    font-weight: var(--weight-medium);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.blog-list-main {
    background: var(--color-slate-50);
    padding: var(--space-12) var(--space-6);
}

.blog-list-main .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   FEATURED POST
   ============================================ */
.featured-post {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-8);
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-12);
}

.featured-post-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-500) var(--ease-out);
}

.featured-post:hover .featured-post-image img {
    transform: scale(1.03);
}

.featured-post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-8);
}

.featured-post-category {
    display: inline-flex;
    align-self: flex-start;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-4);
}

.featured-post-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    margin: 0 0 var(--space-4);
}

.featured-post-title a {
    color: var(--color-slate-900);
    text-decoration: none;
    transition: color var(--duration-200) var(--ease-out);
}

.featured-post-title a:hover {
    color: var(--color-primary);
}

.featured-post-excerpt {
    color: var(--color-slate-600);
    line-height: var(--leading-relaxed);
    margin: 0 0 var(--space-6);
}

.featured-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.featured-post-date {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-slate-500);
    font-size: var(--text-sm);
}

.featured-post-date svg {
    color: var(--color-slate-400);
}

.featured-post-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-primary);
    font-weight: var(--weight-semibold);
    text-decoration: none;
    transition: gap var(--duration-200) var(--ease-out);
}

.featured-post-link:hover {
    gap: var(--space-3);
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
    margin-bottom: var(--space-8);
}

.section-title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--color-slate-900);
    margin: 0;
}

.section-title svg {
    color: var(--color-primary);
}

/* ============================================
   POSTS GRID
   ============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

/* Post Card */
.post-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--duration-300) var(--ease-out);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.post-card-image {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-500) var(--ease-out);
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-category {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    background: var(--color-white);
    color: var(--color-primary);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    box-shadow: var(--shadow-md);
}

.post-card-content {
    padding: var(--space-6);
}

.post-card-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    line-height: var(--leading-snug);
    margin: 0 0 var(--space-3);
}

.post-card-title a {
    color: var(--color-slate-900);
    text-decoration: none;
    transition: color var(--duration-200) var(--ease-out);
}

.post-card-title a:hover {
    color: var(--color-primary);
}

.post-card-excerpt {
    color: var(--color-slate-600);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin: 0 0 var(--space-4);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-slate-100);
}

.post-card-date {
    color: var(--color-slate-500);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
}

.post-card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--color-primary);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    text-decoration: none;
    transition: gap var(--duration-200) var(--ease-out);
}

.post-card-link:hover {
    gap: var(--space-2);
}

/* ============================================
   NO POSTS
   ============================================ */
.no-posts {
    text-align: center;
    padding: var(--space-20) var(--space-6);
}

.no-posts-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: var(--color-slate-100);
    border-radius: var(--radius-full);
    color: var(--color-slate-400);
    margin-bottom: var(--space-6);
}

.no-posts h2 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--color-slate-800);
    margin: 0 0 var(--space-3);
}

.no-posts p {
    color: var(--color-slate-500);
    font-size: var(--text-lg);
    margin: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */
.blog-cta {
    background: linear-gradient(135deg, var(--color-slate-900) 0%, var(--color-slate-800) 100%);
    padding: var(--space-16) var(--space-6);
    position: relative;
    overflow: hidden;
}

.blog-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(5, 150, 105, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.blog-cta .container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.blog-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
    flex-wrap: wrap;
}

.blog-cta-text {
    flex: 1;
    min-width: 300px;
}

.blog-cta-text h2 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--color-white);
    margin: 0 0 var(--space-2);
}

.blog-cta-text p {
    color: var(--color-slate-400);
    font-size: var(--text-base);
    margin: 0;
    line-height: var(--leading-relaxed);
    max-width: 500px;
}

.blog-cta-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    font-weight: var(--weight-semibold);
    font-size: var(--text-base);
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: all var(--duration-200) var(--ease-out);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.cta-btn-primary svg {
    transition: transform var(--duration-200) var(--ease-out);
}

.cta-btn-primary:hover svg {
    transform: translateX(4px);
}

.cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: var(--space-4) var(--space-8);
    background: transparent;
    color: var(--color-slate-300);
    font-weight: var(--weight-semibold);
    font-size: var(--text-base);
    border: 1px solid var(--color-slate-600);
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: all var(--duration-200) var(--ease-out);
}

.cta-btn-secondary:hover {
    background: var(--color-slate-800);
    border-color: var(--color-slate-500);
    color: var(--color-white);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1024px) {
    .featured-post {
        grid-template-columns: 1fr;
    }
    
    .featured-post-image {
        aspect-ratio: 16 / 9;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-list-hero {
        padding: var(--space-12) var(--space-4) var(--space-8);
    }
    
    .blog-list-title {
        font-size: var(--text-2xl);
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .blog-list-main {
        padding: var(--space-8) var(--space-4);
    }
    
    .featured-post {
        margin-bottom: var(--space-8);
    }
    
    .featured-post-content {
        padding: var(--space-6);
    }
    
    .featured-post-title {
        font-size: var(--text-xl);
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .blog-cta {
        padding: var(--space-10) var(--space-4);
    }
    
    .blog-cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .blog-cta-text {
        min-width: 100%;
    }
    
    .blog-cta-text p {
        max-width: 100%;
    }
    
    .blog-cta-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .blog-stats {
        gap: var(--space-6);
    }
    
    .blog-stat-value {
        font-size: var(--text-2xl);
    }
    
    .featured-post-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-card-content {
        padding: var(--space-5);
    }
    
    .cta-btn-primary,
    .cta-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}
