/* Modern Context Popup Styles - Compact & Trendy */
.context-popup {
    position: fixed;
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    min-width: 120px;
    max-width: 200px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px;
    color: #ffffff;
}

.context-popup.context-popup-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.context-popup-content {
    position: relative;
}

.context-popup-header {
    display: none; /* Hide header for compact design */
}

.context-popup-body {
    padding: 0;
}

.selected-text-preview {
    display: none; /* Hide preview for compact design */
}

.context-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.context-popup-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    background: transparent;
    color: #ffffff;
    width: 100%;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.context-popup-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.15s ease;
    border-radius: 8px;
}

.context-popup-btn:hover::before {
    opacity: 1;
}

.context-popup-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(2px);
}

.context-popup-btn:active {
    transform: translateX(2px) scale(0.98);
}

.follow-up-btn {
    color: #ffffff;
}

.follow-up-btn:hover {
    background: rgba(10, 132, 255, 0.15);
}

.copy-btn {
    color: #ffffff;
}

.copy-btn:hover {
    background: rgba(48, 209, 88, 0.15);
}

.copy-btn.copied {
    color: #ffffff;
    background: rgba(48, 209, 88, 0.2);
}

.context-popup-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.5);
}

.context-popup-btn .material-icons {
    font-size: 16px;
    opacity: 0.9;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .context-popup {
        min-width: 100px;
        max-width: 160px;
        padding: 6px;
    }
    
    .context-popup-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .context-popup-btn .material-icons {
        font-size: 14px;
    }
}

/* Animation for popup appearance */
@keyframes contextPopupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes contextPopupSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .context-popup {
        background: #000000;
        border: 2px solid #ffffff;
    }
    
    .context-popup-btn {
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .context-popup {
        transition: none;
    }
    
    .context-popup-btn::before {
        display: none;
    }
    
    .context-popup-btn:hover {
        transform: none;
    }
} 