/* ==========================================================================
   FLOATING HELP WIDGET & COPY INTERACTION
   ========================================================================== */
.floating-help-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

@media (max-width: 991px) {
    .floating-help-widget {
        display: none !important;
    }
}

.help-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan, #00d2ff), var(--neon-blue, #3a7bd5));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.help-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.6);
}

.help-menu {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 250px;
    border-radius: 16px;
    padding: 0.5rem;
    background: linear-gradient(145deg, rgba(20, 30, 48, 0.95), rgba(36, 59, 85, 0.95));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 210, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.help-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.help-menu-header {
    padding: 0.8rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-bright, #fff);
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.1));
    margin-bottom: 0.5rem;
}

.help-menu-item {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    color: var(--text-muted, #94a3b8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.help-menu-item i {
    width: 24px;
    font-size: 1.1rem;
    margin-right: 10px;
}

.help-menu-item:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-bright, #fff);
    padding-left: 1rem;
}

[data-bs-theme="light"] .help-menu-item:hover {
    background: rgba(0,0,0,0.05);
}

/* Micro-Interaction: Copyable Text */
.mergen-copyable {
    cursor: pointer;
    position: relative;
    display: inline-block;
    transition: color 0.2s ease;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.4);
}

.mergen-copyable:hover {
    color: var(--neon-cyan, #00d2ff) !important;
    border-bottom-color: var(--neon-cyan, #00d2ff);
}

.mergen-copyable::after {
    content: '\f0c5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8em;
    margin-left: 6px;
    opacity: 0;
    transform: translateY(5px);
    display: inline-block;
    transition: all 0.2s ease;
}

.mergen-copyable:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   GLOBAL CONTEXT MENU (RIGHT CLICK)
   ========================================================================== */
#mergen-context-menu {
    position: fixed;
    z-index: 10000;
    width: 200px;
    background: linear-gradient(145deg, rgba(20, 30, 48, 0.95), rgba(36, 59, 85, 0.95));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transform-origin: top left;
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#mergen-context-menu.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.ctx-menu-item {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.8rem;
    color: var(--text-bright, #fff);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ctx-menu-item i {
    width: 20px;
    margin-right: 8px;
    opacity: 0.8;
}

.ctx-menu-item:hover {
    background: rgba(0, 210, 255, 0.15);
    color: var(--neon-cyan, #00d2ff);
    padding-left: 1rem;
}

.ctx-menu-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 0.4rem 0;
}
