/* Styles pour le compteur de vues des chapitres de manga */

.chapter-views-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    max-width: fit-content;
}

.chapter-views-counter:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.views-icon {
    font-size: 1.1rem;
    opacity: 0.9;
}

.views-count {
    font-weight: bold;
    font-size: 1rem;
}

.views-label {
    opacity: 0.9;
    font-size: 0.85rem;
}

/* Version inline pour les listes de chapitres */
.chapter-views-counter-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(102, 126, 234, 0.2);
    min-width: 60px;
    justify-content: center;
}

.chapter-views-counter-inline:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.3);
}

.chapter-views-counter-inline .views-icon {
    font-size: 0.9rem;
    opacity: 0.9;
}

.chapter-views-counter-inline .views-count {
    font-weight: bold;
    color: white;
    font-size: 0.85rem;
}

.chapter-views-counter-inline .views-label {
    font-size: 0.7rem;
    opacity: 0.9;
}

/* Intégration avec les chapitres existants */
.chapter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.chapter-item .chapter-link {
    flex: 1;
    min-width: 0;
}

.chapter-item .chapter-date {
    color: #999;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    .chapter-views-counter {
        margin: 15px 0;
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    
    .chapter-views-counter-inline {
        margin-left: 5px;
        padding: 3px 6px;
        font-size: 0.75rem;
        min-width: 50px;
    }
    
    .chapter-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .chapter-item .chapter-views-counter-inline {
        align-self: flex-end;
        margin-top: 3px;
    }
    
    .chapter-item .chapter-link {
        flex: none;
        width: 100%;
    }
}

/* Animation d'apparition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chapter-views-counter,
.chapter-views-counter-inline {
    animation: fadeInUp 0.5s ease-out;
}

/* Style pour les nombres élevés */
.views-count {
    min-width: 20px;
    text-align: center;
}

/* Variation de couleur selon le nombre de vues */
.chapter-views-counter.high-views {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.chapter-views-counter.medium-views {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.chapter-views-counter.low-views {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
