/* ========================================
   BLOG PREMIUM NETWORKIT - Design System
   Version: 1.0.0
   Style: Corporate Premium (Medium/Stripe inspired)
   ======================================== */

/* ========== VARIABLES DESIGN SYSTEM - DARK STEEL ========== */
:root {
    /* Bleus Dark Steel Professional */
    --primary: #3b82f6;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;

    /* Noirs Bleutés - Dark Steel */
    --dark-900: #0f172a;
    --dark-800: #1e293b;
    --dark-700: #334155;

    /* Textes Lisibles - INVERSÉ pour fond sombre */
    --text-primary: #f1f5f9;
    --text-secondary: rgba(241,245,249,0.9);
    --text-tertiary: rgba(148,163,184,0.9);
    --text-muted: rgba(148,163,184,0.7);

    /* Backgrounds - Dark Steel */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;

    /* Accents */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Shadows Premium */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== RESET & BASE ========== */
.blog-premium {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-secondary);
    background: var(--bg-primary);
    min-height: 100vh;
}

/* ========== HERO PREMIUM ========== */
.blog-hero-premium {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #1E40AF 100%);
    padding: 140px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(237, 234, 231,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(237, 234, 231,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.blog-hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.blog-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.blog-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.6;
}

/* Search Bar Premium */
.blog-search-premium {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.blog-search-input {
    width: 100%;
    padding: 18px 24px 18px 56px;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-2xl);
    transition: all var(--transition-base);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.blog-search-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3), var(--shadow-2xl);
    transform: translateY(-2px);
}

.blog-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 20px;
    pointer-events: none;
}

/* Stats Bar Premium */
.blog-stats-premium {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-top: 20px;
}

.blog-stat-item {
    text-align: center;
}

.blog-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.blog-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* ========== FILTERS PREMIUM ========== */
.blog-filters-premium {
    padding: 40px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    position: sticky;
    top: 112px;
    z-index: 50;
    backdrop-filter: blur(20px);
}

.blog-filters-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-chip {
    padding: 10px 24px;
    border-radius: 999px;
    background: var(--dark-700);
    border: 2px solid rgba(148, 163, 184, 0.2);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    text-decoration: none;
}

.filter-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filter-chip.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 185, 249, 0.3);
}

/* ========== GRID ARTICLES PREMIUM ========== */
.blog-content-premium {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 20px;
}

.blog-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .blog-grid-premium {
        grid-template-columns: 1fr;
    }
}

/* ========== CARD ARTICLE PREMIUM ========== */
.article-card-premium {
    background: var(--dark-800);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.article-card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(30, 64, 175, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.article-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-card-premium:hover .article-card-image img {
    transform: scale(1.05);
}

.article-card-content {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.article-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(30, 64, 175, 0.2) 100%);
    color: var(--primary-light);
}

.article-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.article-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.article-card-title a:hover {
    color: var(--primary);
}

.article-card-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.article-card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.article-tag-chip {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
    font-weight: 600;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.article-tag-chip:hover {
    background: var(--primary);
    color: white;
}

.article-read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.article-read-more:hover {
    gap: 10px;
    color: var(--primary-dark);
}

.article-read-more::after {
    content: '→';
    transition: transform var(--transition-fast);
}

.article-read-more:hover::after {
    transform: translateX(4px);
}

/* ========== SIDEBAR PREMIUM ========== */
.blog-layout-premium {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 20px;
}

@media (max-width: 1024px) {
    .blog-layout-premium {
        grid-template-columns: 1fr;
    }

    .blog-sidebar-premium {
        order: -1;
    }
}

.blog-sidebar-premium {
    position: sticky;
    top: 180px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--dark-800);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.sidebar-widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-widget-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 2px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 16px;
}

.sidebar-list li:last-child {
    margin-bottom: 0;
}

.sidebar-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.sidebar-list a::before {
    content: '→';
    color: var(--primary);
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.sidebar-list a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.sidebar-list a:hover::before {
    transform: translateX(4px);
}

/* Newsletter Widget Premium */
.newsletter-widget-premium {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 185, 249, 0.3);
}

.newsletter-widget-premium h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.newsletter-widget-premium p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.newsletter-input-premium {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 0.9375rem;
    background: white;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.newsletter-input-premium:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.newsletter-btn-premium {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    background: var(--dark-900);
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.newsletter-btn-premium:hover {
    background: var(--dark-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ========== PAGINATION PREMIUM ========== */
.pagination-premium {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 60px;
}

.pagination-link {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 12px;
    background: var(--dark-700);
    border: 2px solid rgba(148, 163, 184, 0.2);
    color: var(--text-secondary);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
}

.pagination-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pagination-link.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .blog-hero-premium {
        padding: 120px 20px 60px;
    }

    .blog-stats-premium {
        gap: 30px;
    }

    .blog-stat-number {
        font-size: 2rem;
    }

    .blog-filters-premium {
        top: 80px;
    }

    .blog-content-premium {
        padding: 60px 20px;
    }
}

/* ========== UTILITIES ========== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
