/**
 * Styles spécifiques pour le système de blog
 * Centurion Capital - Blog System
 */

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(103, 83, 71, 0.1);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: rgba(103, 83, 71, 0.2);
}

.blog-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.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-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(103, 83, 71, 0.8), rgba(103, 83, 71, 0.6));
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card:hover .blog-card-overlay {
    opacity: 1;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: white;
    color: #000000;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    transform: scale(0.8);
}

.blog-card:hover .read-more-btn {
    transform: scale(1);
}

.read-more-btn:hover {
    color: #000000;
    text-decoration: none;
    transform: scale(1.1);
}

.blog-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-category {
    margin-bottom: 15px;
}

.blog-category a {
    display: inline-block;
    background: rgba(103, 83, 71, 0.1);
    color: #000000;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.blog-category a:hover {
    background: #000000;
    color: white;
    text-decoration: none;
}

.blog-title {
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
}

.blog-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: #000000;
    text-decoration: none;
}

.blog-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    font-size: 0.95rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85rem;
    color: #999;
}

.meta-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.meta-right {
    display: flex;
    align-items: center;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta i {
    color: #000000;
    width: 14px;
}

/* Pagination Styles */
.pagination-nav {
    margin-top: 40px;
}

.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.page-item {
    list-style: none;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 8px 12px;
    color: #000000;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #000000;
    color: white;
    border-color: #000000;
    text-decoration: none;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: #000000;
    border-color: #000000;
    color: white;
}

.page-item.disabled .page-link {
    color: #6c757d;
    background: #f8f9fa;
    border-color: #e9ecef;
    cursor: not-allowed;
}

.page-item.disabled .page-link:hover {
    background: #f8f9fa;
    color: #6c757d;
    border-color: #e9ecef;
    transform: none;
}

/* Blog Layout Responsive */
@media (max-width: 768px) {
    .blog-card-image {
        height: 180px;
    }

    .blog-card-content {
        padding: 20px;
    }

    .blog-title {
        font-size: 1.2rem;
    }

    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .meta-left {
        flex-direction: row;
        gap: 15px;
    }
}

/* Blog Article Styles */
.article-content {
    background: #f8f9fa;
}

.article-body {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.article-body h2 {
    color: #000000;
    font-weight: 700;
    font-size: 1.8rem;
    margin: 40px 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid rgba(103, 83, 71, 0.1);
    position: relative;
}

.article-body h2::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #000000;
}

.article-body h3 {
    color: #000000;
    font-weight: 600;
    font-size: 1.4rem;
    margin: 30px 0 15px 0;
}

.article-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 10px;
    line-height: 1.7;
    color: #444;
}

.article-body ul li {
    position: relative;
}

.article-body ul li::before {
    content: '•';
    color: #000000;
    font-weight: bold;
    position: absolute;
    left: -20px;
}

.article-body blockquote {
    background: rgba(103, 83, 71, 0.05);
    border-left: 4px solid #000000;
    padding: 20px 25px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
}

.article-body a {
    color: #000000;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.article-body a:hover {
    color: #5a4539;
    text-decoration: none;
}

/* Category Pages */
.category-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 0 60px;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.category-description {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px;
}

.category-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
}

.badge-text {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #666;
    font-size: 0.9rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-item i {
    color: #000000;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: #000000;
    margin-bottom: 25px;
    opacity: 0.7;
}

.empty-state h3 {
    color: #000000;
    font-weight: 600;
    margin-bottom: 15px;
}

.empty-state p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Newsletter Section */
.newsletter-section {
    background: #1F1F1F !important;
    padding: 60px 0;
}

.newsletter-content h3 {
    color: #000000;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 15px;
}

.newsletter-content p {
    color: white;
    font-size: 1.1rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    align-items: center;
}

.newsletter-form .form-control {
    flex: 1;
    padding: 15px 20px;
    border-radius: 12px;
    border: 2px solid #444;
    background-color: #2a2a2a;
    color: white;
    font-size: 1rem;
}

.newsletter-form .form-control:focus {
    border-color: #000000;
    box-shadow: 0 0 0 0.2rem rgba(103, 83, 71, 0.25);
    background-color: #2a2a2a;
    color: white;
}

.newsletter-form .form-control::placeholder {
    color: #aaa;
}

.newsletter-form .theme-btn {
    background: #000000;
    border: 2px solid #000000;
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form .theme-btn:hover {
    background: transparent;
    color: #000000;
    transform: translateY(-2px);
}

/* Responsive Newsletter */
@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }

    .newsletter-form .form-control {
        width: 100%;
    }

    .newsletter-form .theme-btn {
        width: 100%;
    }

    .category-title {
        font-size: 2rem;
    }

    .category-stats {
        flex-direction: column;
        gap: 15px;
    }
}