/* ========================================
   BLOG STYLES - UITGuard
   Design dark futuriste cohérent avec le site principal
   ======================================== */

/* Blog Hero Section */
.blog-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12rem 0 6rem;
    overflow: hidden;
}

.blog-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
}

.blog-title {
    font-family: var(--font-tech, 'Orbitron', monospace);
    font-size: 4rem;
    font-weight: 900;
    margin: 2rem 0 1.5rem;
    line-height: 1.2;
}

.blog-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary, #b0b0c0);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Blog Articles Section */
.blog-articles {
    padding: 6rem 0;
    background: var(--bg-dark, #0a0a0f);
}

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

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

/* Article Card */
.article-card {
    background: rgba(15, 15, 25, 0.8);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color, #00d9ff);
    box-shadow: 0 20px 40px rgba(0, 217, 255, 0.3);
}

/* Article Image */
.article-image {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: linear-gradient(135deg,
        rgba(0, 217, 255, 0.1),
        rgba(255, 0, 255, 0.1)
    );
    overflow: hidden;
}

.article-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-image-placeholder i {
    font-size: 5rem;
    color: var(--primary-color, #00d9ff);
    opacity: 0.3;
}

.article-category {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(0, 217, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #0a0a0f;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coming-soon-badge {
    background: rgba(255, 0, 255, 0.9);
    color: white;
}

/* Article Content */
.article-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary, #b0b0c0);
}

.article-meta i {
    color: var(--primary-color, #00d9ff);
    margin-right: 0.5rem;
}

.article-title {
    font-family: var(--font-tech, 'Orbitron', monospace);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-title a {
    color: var(--text-primary, #ffffff);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: var(--primary-color, #00d9ff);
}

.article-excerpt {
    color: var(--text-secondary, #b0b0c0);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Article Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: var(--primary-color, #00d9ff);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--primary-color, #00d9ff);
}

/* Read More Button */
.article-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color, #00d9ff);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-read-more:hover {
    gap: 1rem;
    color: var(--accent-color, #00ff88);
}

.article-read-more i {
    transition: transform 0.3s ease;
}

.article-read-more:hover i {
    transform: translateX(5px);
}

/* Coming Soon Article */
.article-coming-soon {
    opacity: 0.7;
    pointer-events: none;
}

.article-coming-soon .article-title {
    color: var(--text-secondary, #b0b0c0);
}

/* Newsletter Section */
.blog-newsletter {
    padding: 6rem 0;
    background: linear-gradient(135deg,
        rgba(0, 217, 255, 0.05),
        rgba(255, 0, 255, 0.05)
    );
}

.newsletter-card {
    background: rgba(15, 15, 25, 0.8);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 24px;
    padding: 4rem;
    text-align: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.1);
}

.newsletter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00d9ff, #00ff88);
    border-radius: 50%;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.newsletter-icon i {
    font-size: 2rem;
    color: #0a0a0f;
}

.newsletter-title {
    font-family: var(--font-tech, 'Orbitron', monospace);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00d9ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.newsletter-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary, #b0b0c0);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 550px;
    margin: 0 auto 1.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 12px;
    color: var(--text-primary, #ffffff);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    border-color: var(--primary-color, #00d9ff);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.newsletter-input::placeholder {
    color: var(--text-secondary, #b0b0c0);
}

.newsletter-privacy {
    font-size: 0.875rem;
    color: var(--text-secondary, #b0b0c0);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.newsletter-privacy i {
    color: var(--accent-color, #00ff88);
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 217, 255, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(0, 217, 255, 0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .blog-title {
        font-size: 3rem;
    }

    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }

    .newsletter-card {
        padding: 3rem 2rem;
    }

    .newsletter-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 10rem 1rem 4rem;
        min-height: 50vh;
    }

    .blog-title {
        font-size: 2.5rem;
    }

    .blog-subtitle {
        font-size: 1.125rem;
        padding: 0 1rem;
    }

    .blog-articles {
        padding: 4rem 1rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .article-content {
        padding: 1.5rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-card {
        padding: 2.5rem 1.5rem;
    }

    .newsletter-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 9rem 0.5rem 3rem;
    }

    .blog-title {
        font-size: 1.75rem;
        padding: 0 0.5rem;
    }

    .blog-subtitle {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .blog-articles {
        padding: 3rem 0.5rem;
    }

    .article-card {
        margin: 0 0.5rem;
    }

    .article-content {
        padding: 1.25rem;
    }

    .article-title {
        font-size: 1.25rem;
    }

    .article-excerpt {
        font-size: 0.9375rem;
    }

    .newsletter-card {
        padding: 2rem 1rem;
    }

    .newsletter-icon {
        width: 60px;
        height: 60px;
    }

    .newsletter-icon i {
        font-size: 1.5rem;
    }

    .newsletter-title {
        font-size: 1.5rem;
    }

    .newsletter-subtitle {
        font-size: 1rem;
    }
}
