/**
 * Text Highlighter Styles
 * 
 * Styles for the text selection action menu
 */

.text-highlighter-menu {
    position: absolute;
    z-index: 9999;
    display: flex;
    gap: 4px;
    padding: 6px;
    background: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
}

.text-highlighter-menu--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.text-highlighter-menu__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.text-highlighter-menu__btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.text-highlighter-menu__btn:active {
    transform: scale(0.95);
}

.text-highlighter-menu__btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.text-highlighter-menu__btn svg {
    width: 18px;
    height: 18px;
}

/* Toast notification for copy feedback */
.text-highlighter-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    background: #1a1a1a;
    color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.text-highlighter-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Dark theme adjustments */
[data-theme="dark"] .text-highlighter-menu {
    background: #2a2a2a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .text-highlighter-toast {
    background: #2a2a2a;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .text-highlighter-menu {
        padding: 8px;
    }
    
    .text-highlighter-menu__btn {
        width: 44px;
        height: 44px;
    }
    
    .text-highlighter-menu__btn svg {
        width: 20px;
        height: 20px;
    }
}
