/* Verified Screenshot — selection toolbar, message highlight, result modal */

.vshot-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 4px;
}

.vshot-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.vshot-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 7px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #3a3a3e;
    background: transparent;
    color: var(--kick-text, #efeff1);
    transition: background .15s, border-color .15s, opacity .15s;
}
.vshot-btn:hover { border-color: var(--kick-green, #53FC18); }
.vshot-btn-primary {
    background: var(--kick-green, #53FC18);
    color: #0e0e10;
    border-color: var(--kick-green, #53FC18);
}
.vshot-btn-primary:hover { opacity: .9; }
.vshot-btn:disabled { opacity: .5; cursor: not-allowed; }

.vshot-hint {
    color: #8a8a8d;
    font-size: 0.82rem;
}

/* New-feature treatment for the entry button: pulsing green glow + a light
   sweep across the surface, so it stands out above the search results. */
#vshot-enter {
    position: relative;
    overflow: hidden;
    border-color: var(--kick-green, #53FC18);
    animation: vshot-glow 2.2s ease-in-out infinite;
}
#vshot-enter::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 40%;
    background: linear-gradient(105deg, transparent, rgba(83, 252, 24, 0.28), transparent);
    animation: vshot-shimmer 2.8s ease-in-out infinite;
    pointer-events: none;
}
@keyframes vshot-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(83, 252, 24, 0); }
    50% { box-shadow: 0 0 12px 2px rgba(83, 252, 24, 0.35); }
}
@keyframes vshot-shimmer {
    0% { left: -60%; }
    60% { left: 120%; }
    100% { left: 120%; }
}
@media (prefers-reduced-motion: reduce) {
    #vshot-enter { animation: none; }
    #vshot-enter::after { animation: none; display: none; }
}

.vshot-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(83, 252, 24, 0.15);
    color: var(--kick-green, #53FC18);
    font-weight: 700;
    font-size: 0.85rem;
}

/* Selection mode: messages become selectable */
.chat-messages.vshot-selecting .chat-message {
    cursor: pointer;
    position: relative;
    padding-left: 38px;
    user-select: none;
}
.chat-messages.vshot-selecting .chat-message:hover {
    background: rgba(255, 255, 255, 0.03);
}
.chat-messages.vshot-selecting .chat-message::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #6a6a6e;
    border-radius: 4px;
    box-sizing: border-box;
}
.chat-message.vshot-selected {
    background: rgba(83, 252, 24, 0.10) !important;
    box-shadow: inset 3px 0 0 var(--kick-green, #53FC18);
}
.chat-messages.vshot-selecting .chat-message.vshot-selected::before {
    background: var(--kick-green, #53FC18);
    border-color: var(--kick-green, #53FC18);
}

/* Result modal */
.vshot-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.vshot-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}
/* Flex column: only the image preview scrolls; the link row and action
   buttons below it stay visible no matter how tall the image is. */
.vshot-modal-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--kick-light-gray, #18181b);
    border: 1px solid #2a2a2e;
    border-radius: 12px;
    padding: 24px;
    color: var(--kick-text, #efeff1);
}
.vshot-modal-card h3 { margin: 0 0 6px; font-size: 1.2rem; }
.vshot-modal-hint { color: #8a8a8d; font-size: 0.9rem; margin: 0 0 14px; line-height: 1.45; }
.vshot-modal-close {
    position: absolute;
    top: 10px; right: 14px;
    background: none; border: none; cursor: pointer;
    color: #8a8a8d; font-size: 1.6rem; line-height: 1;
}
.vshot-modal-preview {
    border: 1px solid #2a2a2e;
    border-radius: 8px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    background: #0e0e10;
    margin-bottom: 14px;
}
.vshot-modal-preview img { display: block; width: 100%; height: auto; }
.vshot-modal-linkrow { display: flex; gap: 8px; margin-bottom: 12px; flex-shrink: 0; }
.vshot-modal-actions { flex-shrink: 0; }
.vshot-modal-linkrow input {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    border-radius: 7px;
    border: 1px solid #3a3a3e;
    background: #0e0e10;
    color: var(--kick-text, #efeff1);
    font-family: monospace;
    font-size: 0.85rem;
}
.vshot-modal-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vshot-modal-actions a { text-decoration: none; }
