/**
 * Product deep-link UI: row highlight, copy-link button, copy toast,
 * gallery photo count badge.
 */

@keyframes highlightPulse {
    0%   { background-color: rgba(33, 150, 243, 0.15); }
    50%  { background-color: rgba(33, 150, 243, 0.05); }
    100% { background-color: rgba(33, 150, 243, 0.15); }
}

@keyframes highlightFadeOut {
    from { background-color: rgba(33, 150, 243, 0.15); }
    to   { background-color: transparent; }
}

table.dataTable > tbody > tr.highlight-row > td {
    animation:
        highlightPulse 1s ease-in-out 3,
        highlightFadeOut 1s ease-out 3s forwards !important;
    box-shadow: inset 0 0 0 2px #2196f3 !important;
    background-color: rgba(33, 150, 243, 0.15) !important;
}

.copy-product-link-btn {
    background: none;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 5px 8px;
    cursor: pointer;
    color: #888;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.copy-product-link-btn:hover {
    color: #1A5EDD;
    border-color: #1A5EDD;
    background-color: #f0f5ff;
}

.col-copy-link {
    width: 120px !important;
    max-width: 120px !important;
    text-align: center;
    padding: 0 !important;
}

.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #333;
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.clickCount {
    position: relative;
    display: inline-block;
    width: 100%;
}

.bg-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    pointer-events: none;
    z-index: 10;
}
