/* Modern Context Menu Styles */

.context-menu {
    position: fixed;
    z-index: 10000;
    min-width: 220px;
    max-width: 300px;
    background-color: rgba(23, 23, 23, 0.8);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    outline: none;
    transform-origin: top left;
}

.context-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #e5e5e5;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    user-select: none;
}

.context-menu-item:hover,
.context-menu-item:focus {
    background-color: var(--primary);
    color: white;
}

.context-menu-item.danger {
    color: #f87171;
}

.context-menu-item.danger:hover,
.context-menu-item.danger:focus {
    background-color: #ef4444;
    color: white;
}

.context-menu-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.context-menu-shortcut {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: 12px;
    font-family: monospace;
}

.context-menu-separator {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 4px 6px;
}

/* Animations */
.animate-in {
    animation: cm-fade-in 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-out {
    animation: cm-fade-out 0.1s ease-in forwards;
}

@keyframes cm-fade-in {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes cm-fade-out {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.95); }
}

/* Mobile Support */
@media (max-width: 768px) {
    .context-menu {
        min-width: 240px;
        padding: 8px;
    }
    .context-menu-item {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* 200% Zoom Compatibility */
@media screen and (min-resolution: 2dppx) {
    .context-menu {
        transform: scale(0.9);
    }
}
