/* Lock System Styles */

/* Item verrouillé */
.item-locked {
    opacity: 0.7;
    position: relative;
    pointer-events: none; /* Empêche le clic */
}

.item-locked::after {
    content: "🔒";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Indicateur de verrouillage inline */
.lock-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.5);
    border-radius: 4px;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    color: #ffc107;
    margin-left: 0.5rem;
    font-weight: 500;
}

/* Dans les listes */
.news-item.item-locked,
.animation-item.item-locked {
    background: rgba(255, 193, 7, 0.05);
    border-left: 3px solid #ffc107;
}

.news-item.item-locked:hover,
.animation-item.item-locked:hover {
    background: rgba(255, 193, 7, 0.08);
    cursor: not-allowed;
}

/* Bouton de libération */
#news-unlock-btn,
#animation-unlock-btn {
    background: #ffc107;
    color: #000;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

#news-unlock-btn:hover,
#animation-unlock-btn:hover {
    background: #ffb300;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

/* Notification de verrouillage */
.lock-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    color: #333;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 2000;
    max-width: 350px;
    border-left: 4px solid #ffc107;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.lock-notification h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #000;
}

.notification-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.notification-actions button {
    padding: 0.375rem 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.notification-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.notification-actions button:first-child {
    background: #28a745;
    color: white;
}

.notification-actions button:nth-child(2) {
    background: #dc3545;
    color: white;
}

.notification-actions button:last-child {
    background: #6c757d;
    color: white;
}

/* Animation pour le heartbeat */
@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.lock-heartbeat {
    animation: heartbeat 2s infinite;
}

/* Mode sombre */
body[data-theme="dark"] .lock-indicator {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    color: #ffca2c;
}

body[data-theme="dark"] .item-locked {
    background: rgba(255, 193, 7, 0.02);
}

body[data-theme="dark"] .lock-notification {
    background: #2d2d2d;
    color: #fff;
    border-left-color: #ffc107;
}

body[data-theme="dark"] .lock-notification h4 {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .lock-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .lock-indicator {
        font-size: 0.7rem;
        padding: 0.1rem 0.3rem;
    }
}