/* Modal des notifications */
.notification-modal {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.notification-modal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
    display: flex;
    flex-direction: column;
}

/* Animation d'entrée */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

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

/* Header du modal */
.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 20px 20px 0 0;
}

.notification-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.notification-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-mark-all {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-mark-all:hover {
    background: #0056b3;
}

.btn-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.btn-close:hover {
    background: #f0f0f0;
}

/* Corps du modal */
.notification-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Liste des notifications */
.notifications-list {
    padding: 0;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
    cursor: pointer;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #f0f8ff;
    border-left: 4px solid #007bff;
}

.notification-item.unread:hover {
    background: #e6f3ff;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.notification-icon i {
    color: #666;
    font-size: 16px;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.notification-message {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.notification-time {
    color: #999;
    font-size: 11px;
}

.notification-item .notification-actions {
    margin-left: 10px;
}

.btn-mark-read {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s;
    opacity: 0;
}

.notification-item:hover .btn-mark-read {
    opacity: 1;
}

.btn-mark-read:hover {
    background: #e6f3ff;
}

/* Loading spinner */
.notifications-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #666;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* État vide */
.no-notifications {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #999;
}

.empty-state {
    text-align: center;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 500;
}

.empty-state small {
    font-size: 12px;
    opacity: 0.7;
}

/* Bouton charger plus */
.load-more-container {
    padding: 20px;
    text-align: center;
}

.btn-load-more {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #666;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-load-more:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* Responsive */
@media (max-width: 768px) {
    .notification-modal-content {
        height: 90%;
    }
    
    .notification-header {
        padding: 15px;
    }
    
    .notification-header h3 {
        font-size: 16px;
    }
    
    .btn-mark-all {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .notification-item {
        padding: 12px 15px;
    }
    
    .notification-icon {
        width: 35px;
        height: 35px;
        margin-right: 12px;
    }
    
    .notification-title {
        font-size: 13px;
    }
    
    .notification-message {
        font-size: 12px;
    }
}

/* Types de notifications avec icônes spécifiques */
.notification-item[data-type="message"] .notification-icon {
    background: #e3f2fd;
}

.notification-item[data-type="message"] .notification-icon i {
    color: #1976d2;
}

.notification-item[data-type="like"] .notification-icon {
    background: #fce4ec;
}

.notification-item[data-type="like"] .notification-icon i {
    color: #e91e63;
}

.notification-item[data-type="match"] .notification-icon {
    background: #e8f5e8;
}

.notification-item[data-type="match"] .notification-icon i {
    color: #4caf50;
}

.notification-item[data-type="system"] .notification-icon {
    background: #fff3e0;
}

.notification-item[data-type="system"] .notification-icon i {
    color: #ff9800;
}

.notification-item[data-type="advertisement_response"] .notification-icon {
    background: #e8eaf6;
}

.notification-item[data-type="advertisement_response"] .notification-icon i {
    color: #3f51b5;
}

.notification-item[data-type="advertisement_participation"] .notification-icon {
    background: #f3e5f5;
}

.notification-item[data-type="advertisement_participation"] .notification-icon i {
    color: #9c27b0;
}

.notification-item[data-type="favorite_place_advertisement"] .notification-icon {
    background: #e0f2f1;
}

.notification-item[data-type="favorite_place_advertisement"] .notification-icon i {
    color: #00695c;
}
