/* 
 * Styles pour la page blog/actualités TimeVox
 * À ajouter à la fin de style.css
 */

/* Hero blog */
.hero-blog {
    background: linear-gradient(135deg, var(--vintage-cream) 0%, #e8e2d5 100%);
    padding: 150px 0 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-blog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23000" opacity="0.02"/></svg>');
    pointer-events: none;
}

.hero-blog-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.blog-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-orange);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--dark-grey);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Articles grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    position: relative;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-orange);
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0;
    margin-bottom: 1rem;
}

.article-category {
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-release {
    background: #e8f5e8;
    color: #2e7d2e;
}

.category-update {
    background: #e8f4fd;
    color: #1e5a8a;
}

.category-feature {
    background: #fff3e0;
    color: #e65100;
}

.category-development {
    background: #f3e5f5;
    color: #7b1fa2;
}

.category-announcement {
    background: #ffe5e5;
    color: #c62828;
}

.article-date {
    font-size: 0.9rem;
    color: var(--dark-grey);
    font-weight: 500;
}

.article-content {
    padding: 0 1.5rem;
}

.article-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-version {
    margin-bottom: 1rem;
}

.version-badge {
    background: var(--accent-orange);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
}

.article-excerpt {
    color: var(--dark-grey);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-content-full {
    color: var(--dark-grey);
    line-height: 1.6;
    margin-bottom: 1rem;
    white-space: pre-line;
}

.article-changes,
.article-fixes {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--light-grey);
    border-radius: 8px;
}

.article-changes h4,
.article-fixes h4 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--primary-black);
}

.article-changes ul,
.article-fixes ul {
    margin: 0;
    padding-left: 1.5rem;
}

.article-changes li,
.article-fixes li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    color: var(--dark-grey);
}

.article-footer {
    padding: 1.5rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-read-more {
    background: var(--accent-orange);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-read-more:hover {
    background: #e85a2e;
    transform: translateY(-2px);
}

.btn-read-more.expanded {
    background: var(--dark-grey);
}

.btn-github {
    background: var(--primary-black);
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-github:hover {
    background: #333;
    transform: translateY(-2px);
    color: white;
}

/* Pagination */
.pagination-nav {
    margin-top: 3rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pagination-btn,
.pagination-number {
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.pagination-btn {
    background: var(--accent-orange);
    color: white;
}

.pagination-btn:hover {
    background: #e85a2e;
    color: white;
}

.pagination-number {
    background: var(--light-grey);
    color: var(--primary-black);
}

.pagination-number:hover {
    background: var(--accent-orange);
    color: white;
}

.pagination-current {
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    background: var(--primary-black);
    color: white;
    font-weight: 600;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

/* No articles state */
.no-articles {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--dark-grey);
}

.no-articles-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-articles h2 {
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.no-articles p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Newsletter section */
.newsletter-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    border: 2px solid var(--accent-orange);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
}

.newsletter-content h2 {
    margin-bottom: 1rem;
}

.newsletter-content p {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.update-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.update-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.update-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.update-item strong {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--primary-black);
}

.update-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--dark-grey);
}

/* Animation pour l'expansion des articles */
.article-expanded {
    background: #fafafa;
}

.article-expanded .article-content-full,
.article-expanded .article-changes,
.article-expanded .article-fixes {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-blog {
        padding: 120px 0 3rem 0;
    }
    
    .blog-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-read-more,
    .btn-github {
        text-align: center;
        width: 100%;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination-numbers {
        justify-content: center;
    }
    
    .newsletter-section {
        padding: 2rem 1rem;
    }
    
    .newsletter-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .update-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .update-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .blog-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .article-card {
        margin: 0 -0.5rem;
    }
    
    .article-content {
        padding: 0 1rem;
    }
    
    .article-footer {
        padding: 1rem;
    }
    
    .newsletter-section {
        padding: 1.5rem 1rem;
        margin: 0 -1rem;
    }
    
    .pagination-btn,
    .pagination-number,
    .pagination-current {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Animation d'entrée pour les articles */
.article-card {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease forwards;
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }
.article-card:nth-child(5) { animation-delay: 0.5s; }
.article-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Indicateurs visuels pour les catégories */
.article-card[data-category="release"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2e7d2e, #4caf50);
}

.article-card[data-category="update"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e5a8a, #2196f3);
}

.article-card[data-category="feature"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e65100, #ff9800);
}

.article-card[data-category="development"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7b1fa2, #9c27b0);
}

.article-card[data-category="announcement"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c62828, #f44336);
}

/* Mode sombre pour certains éléments */
@media (prefers-color-scheme: dark) {
    .article-card {
        background: #2d2d2d;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .article-title {
        color: #f0f0f0;
    }
    
    .article-changes,
    .article-fixes {
        background: #383838;
    }
    
    .newsletter-section {
        background: #2d2d2d;
        color: #e0e0e0;
    }
}