/**
 * Styles pour les interactions du blog
 * Congrégation des Augustins de l'Assomption - Province d'Afrique
 */

/* Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    position: relative;
    overflow: hidden;
}

.blog-hero::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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.blog-hero .container {
    position: relative;
    z-index: 2;
}

/* Métadonnées du blog */
.blog-meta {
    font-size: 0.9rem;
}

.blog-meta .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

/* Statistiques du blog */
.blog-stats {
    font-size: 0.9rem;
}

.blog-stats i {
    width: 16px;
    text-align: center;
}

/* Contenu de l'article */
.blog-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #000000 !important;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #000000 !important;
}

.blog-content p {
    margin-bottom: 1.5rem;
    color: #000000 !important;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
}

.blog-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6c757d;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

/* Image en vedette */
.blog-featured-image {
    text-align: center;
}

.blog-featured-image img {
    max-height: 400px;
    object-fit: cover;
    width: 100%;
}

/* Tags du blog */
.blog-tags .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Section d'interactions */
.blog-interactions .card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.interaction-buttons {
    gap: 1rem;
}

.interaction-buttons .btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.interaction-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.interaction-buttons .btn:active {
    transform: translateY(0);
}

/* Bouton Like */
.like-btn {
    transition: all 0.3s ease;
}

.like-btn:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.like-btn.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.like-btn.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Bouton Commentaire */
.comment-btn:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

/* Boutons de partage */
.share-btn {
    transition: all 0.3s ease;
}

.share-btn:hover {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

/* Formulaire de commentaire */
.comment-form-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.comment-form .form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.comment-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.comment-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Section des commentaires */
.blog-comments .card {
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-comments .card-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-radius: 12px 12px 0 0 !important;
}

.blog-comments .card-header .card-title {
    color: white;
}

/* Commentaires individuels */
.comment-item {
    transition: all 0.3s ease;
}

.comment-item:hover {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin: 0 -1rem 1rem -1rem;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-content {
    min-width: 0;
}

.comment-header h6 {
    color: #2c3e50;
    font-weight: 600;
}

.comment-text {
    color: #495057;
    line-height: 1.6;
}

.comment-like-btn {
    border: none;
    background: none;
    color: #6c757d;
    transition: all 0.3s ease;
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
}

.comment-like-btn:hover {
    background-color: #f8f9fa;
    color: #dc3545;
}

.comment-like-btn.text-danger {
    color: #dc3545 !important;
}

/* Sidebar */
.sticky-top {
    z-index: 10;
}

/* Informations sur l'auteur */
.author-info {
    text-align: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #007bff;
}

/* Articles similaires */
.similar-articles .card {
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.similar-articles .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Statistiques */
.stat-item {
    padding: 0.5rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-item {
    animation: fadeInUp 0.5s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero .display-4 {
        font-size: 2rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .blog-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .interaction-buttons {
        flex-direction: column;
    }
    
    .interaction-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .comment-form .row .col-md-6 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .blog-hero {
        padding: 2rem 0;
    }
    
    .blog-hero .display-4 {
        font-size: 1.5rem;
    }
    
    .blog-content {
        font-size: 1rem;
    }
    
    .blog-content h1,
    .blog-content h2,
    .blog-content h3 {
        font-size: 1.5rem;
    }
    
    .interaction-buttons .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* États de chargement */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Notifications */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
}

/* Améliorations d'accessibilité */
.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Thème sombre (optionnel) */
@media (prefers-color-scheme: dark) {
    .blog-content {
        color: #e9ecef;
    }
    
    .blog-content h1,
    .blog-content h2,
    .blog-content h3,
    .blog-content h4,
    .blog-content h5,
    .blog-content h6 {
        color: #ffffff;
    }
    
    .comment-item:hover {
        background-color: #343a40;
    }
    
    .comment-form-section {
        background-color: #343a40;
        color: #e9ecef;
    }
}
