/* ================================================
   AREDIUS ART PRODUCTION - Flux d'Activité
   Style pour l'icône cloche et la lightbox
   ================================================ */

/* Icône de notification dans le menu */
.activity-bell {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    transition: all 0.3s ease;
    font-size: 1.2em;
}

.activity-bell:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* Badge de compteur */
.activity-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    font-weight: bold;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Animation de la cloche */
.activity-bell.has-notifications {
    animation: ring 4s ease-in-out infinite;
}

@keyframes ring {
    0%, 10%, 20%, 30%, 100% {
        transform: rotate(0deg);
    }
    5% {
        transform: rotate(15deg);
    }
    15% {
        transform: rotate(-15deg);
    }
    25% {
        transform: rotate(10deg);
    }
}

/* Overlay de la lightbox */
.activity-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9998;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.activity-overlay.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Lightbox principale */
.activity-lightbox {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    background: linear-gradient(135deg, #2c1810 0%, #1a0f08 100%);
    border: 2px solid #d4a574;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow: hidden;
    animation: slideIn 0.3s ease forwards;
}

.activity-lightbox.active {
    display: block;
}

@keyframes slideIn {
    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* En-tête de la lightbox */
.activity-header {
    background: linear-gradient(90deg, #d4a574 0%, #b8894e 100%);
    color: #1a0f08;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #d4a574;
}

.activity-header h2 {
    margin: 0;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.activity-close {
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: #1a0f08;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.activity-close:hover {
    background: rgba(26, 15, 8, 0.2);
    transform: rotate(90deg);
}

/* Corps de la lightbox */
.activity-body {
    padding: 20px;
    max-height: calc(80vh - 140px);
    overflow-y: auto;
    background: #1a0f08;
}

/* Scrollbar personnalisée */
.activity-body::-webkit-scrollbar {
    width: 8px;
}

.activity-body::-webkit-scrollbar-track {
    background: rgba(212, 165, 116, 0.1);
    border-radius: 10px;
}

.activity-body::-webkit-scrollbar-thumb {
    background: #d4a574;
    border-radius: 10px;
}

.activity-body::-webkit-scrollbar-thumb:hover {
    background: #b8894e;
}

/* Message vide */
.activity-empty {
    text-align: center;
    padding: 40px 20px;
    color: #d4a574;
}

.activity-empty-icon {
    font-size: 3em;
    margin-bottom: 15px;
    opacity: 0.5;
}

.activity-empty p {
    font-size: 1.1em;
    margin: 0;
}

/* Liste des activités */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Item d'activité */
.activity-item {
    background: linear-gradient(135deg, #2c1810 0%, #1f120a 100%);
    border: 1px solid #d4a574;
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    transition: all 0.3s ease;
    animation: slideInItem 0.5s ease backwards;
}

@keyframes slideInItem {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.activity-item:hover {
    transform: translateX(5px);
    border-color: #f0c080;
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.2);
}

.activity-item.unread {
    border-left: 4px solid #ff4444;
    background: linear-gradient(135deg, #351a10 0%, #241410 100%);
}

/* Icône de l'activité */
.activity-icon {
    font-size: 2em;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 165, 116, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(212, 165, 116, 0.3);
}

/* Contenu de l'activité */
.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-category {
    font-size: 0.75em;
    color: #d4a574;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: bold;
}

.activity-title {
    color: #f0c080;
    font-size: 1.1em;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.activity-description {
    color: #c9a87c;
    font-size: 0.9em;
    margin: 0;
    word-wrap: break-word;
}

.activity-date {
    font-size: 0.8em;
    color: #a08060;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Pied de page */
.activity-footer {
    background: linear-gradient(90deg, #2c1810 0%, #1a0f08 100%);
    padding: 15px 25px;
    border-top: 2px solid #d4a574;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-footer button {
    background: #d4a574;
    color: #1a0f08;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.activity-footer button:hover {
    background: #f0c080;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.3);
}

.activity-info {
    color: #d4a574;
    font-size: 0.9em;
}

/* États de chargement */
.activity-loading {
    text-align: center;
    padding: 40px;
    color: #d4a574;
}

.activity-loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(212, 165, 116, 0.2);
    border-top-color: #d4a574;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .activity-lightbox {
        width: 95%;
        max-height: 90vh;
    }
    
    .activity-header h2 {
        font-size: 1.2em;
    }
    
    .activity-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .activity-icon {
        width: 100%;
        height: auto;
        padding: 10px;
    }
    
    .activity-footer {
        flex-direction: column;
        gap: 10px;
    }
}

/* Animation pour les nouveaux items */
.activity-item.new-item {
    animation: highlight 2s ease;
}

@keyframes highlight {
    0%, 100% {
        background: linear-gradient(135deg, #2c1810 0%, #1f120a 100%);
    }
    50% {
        background: linear-gradient(135deg, #3a2015 0%, #2a1810 100%);
    }
}