/**
 * CHC Copy Link Styles
 * Visual feedback for copy link functionality
 */

/* Success state */
.chc-copy-success {
    color: #28a745 !important;
}

.chc-copy-success .gcis {
    color: #28a745 !important;
}

/* Error state */
.chc-copy-error {
    color: #dc3545 !important;
}

.chc-copy-error .gcis {
    color: #dc3545 !important;
}

/* Flash animation for copy feedback */
.chc-copy-flash {
    animation: chc-copy-flash 0.3s ease-in-out;
}

@keyframes chc-copy-flash {
    0% {
        background-color: transparent;
    }

    50% {
        background-color: rgba(40, 167, 69, 0.2);
        border-radius: 4px;
    }

    100% {
        background-color: transparent;
    }
}

/* Hover state for copy link */
[id^="chc_copy_link_"]:hover {
    cursor: pointer;
}

/* Ensure tooltip positioning works correctly */
.ps-tooltip--permalink {
    position: relative;
}

/* Tooltip styles for action buttons */
.chc-activity-copy-link {
    position: relative;
    display: inline-block;
}

.chc-tooltip {
    position: fixed;
    background-color: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10000;
}

.chc-tooltip.show {
    opacity: 1;
}

/* Arrow for tooltip */
.chc-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}