/* ============================================================
   VaultGallery – CSS
   ============================================================ */

.vg-widget {
    position: relative;
    width: 100%;
    user-select: none;
    font-family: 'Courier New', monospace;
}

/* ── Canvas Wrap ─────────────────────────────────────────── */
.vg-canvas-wrap {
    position: relative;
    width: 100%;
    height: 650px;
    max-height: 65vh;
    overflow: hidden;
    background: #0a0c10;
    border: 2px solid #1e2630;
    border-radius: 4px;
    cursor: grab;
}
.vg-canvas-wrap:active { cursor: grabbing; }
.vg-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ── UI Overlay ──────────────────────────────────────────── */
.vg-ui-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* hint bar */
.vg-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.65);
    border: 1px solid #3a4a5a;
    border-radius: 3px;
    padding: 5px 14px;
}
.vg-hint-text {
    color: #8ab4cf;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* combo display */
.vg-combo-display {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(5,8,14,.8);
    border: 1px solid #2e4a5a;
    border-radius: 4px;
    padding: 6px 14px;
}
.vg-combo-dials {
    display: flex;
    gap: 8px;
    align-items: center;
}
.vg-dial-num {
    width: 32px;
    height: 36px;
    background: #111820;
    border: 1px solid #2a3a4a;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c8e0f0;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 8px #4af;
    transition: color .1s, text-shadow .1s;
}
.vg-dial-num.active {
    color: #40e0ff;
    border-color: #40e0ff;
    text-shadow: 0 0 12px #40e0ff;
}

/* alarm */
.vg-alarm {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background: rgba(180,10,10,.85);
    border: 2px solid #ff2020;
    border-radius: 4px;
    padding: 12px 28px;
    color: #fff;
    font-size: 14px;
    letter-spacing: 3px;
    text-align: center;
    animation: vg-alarm-flash .4s step-end infinite;
    z-index: 10;
}
@keyframes vg-alarm-flash {
    0%, 100% { opacity: 1; }
    50%       { opacity: .4; }
}

/* surveillance cam */
.vg-cam-overlay {
    position: absolute;
    top: 10px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #607080;
    font-size: 10px;
    letter-spacing: 1px;
}
.vg-cam-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e53030;
    animation: vg-blink 1.8s ease-in-out infinite;
}
@keyframes vg-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: .15; }
}

/* ── Lightbox ────────────────────────────────────────────── */
.vg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(42,48,64,.95);
    animation: vg-lb-in .25s ease;
}
@keyframes vg-lb-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.vg-lb-inner {
    position: relative;
    max-width: min(880px, 92vw);
    width: 100%;
    background: #0e1420;
    overflow: hidden;
}

/* frame styles */
.vg-lb-frame-bank {
    border: 3px solid #506070;
    border-radius: 6px;
    box-shadow: 0 0 0 1px #2a3a4a,
                0 0 40px rgba(0,0,0,.9),
                inset 0 0 30px rgba(0,0,0,.5);
}
.vg-lb-frame-secret {
    border: 2px solid #1a8a50;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(0,255,100,.15), 0 0 60px rgba(0,0,0,.95);
}
.vg-lb-frame-minimal {
    border: 1px solid #333;
    border-radius: 0;
    box-shadow: 0 0 60px rgba(0,0,0,.95);
}

/* scan line */
.vg-scanline {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #40e0ff, transparent);
    animation: vg-scan 1.6s linear forwards;
    z-index: 5;
    pointer-events: none;
}
@keyframes vg-scan {
    0%   { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* header */
.vg-lb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: #080c14;
    border-bottom: 1px solid #1e2a36;
}
.vg-lb-label {
    color: #8ab4cf;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.vg-lb-close {
    background: none;
    border: 1px solid #3a4a5a;
    color: #8ab4cf;
    width: 28px;
    height: 28px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: background .15s, color .15s;
}
.vg-lb-close:hover {
    background: #c0392b;
    border-color: #e74c3c;
    color: #fff;
}

/* content */
.vg-lb-content {
    padding: 16px;
    display: flex;
    justify-content: center;
    background: #080c14;
}
.vg-lb-img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    display: block;
    border: 1px solid #1e2a36;
}

/* footer */
.vg-lb-footer {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    background: #080c14;
    border-top: 1px solid #1e2a36;
}
.vg-lb-footer button {
    background: #111820;
    border: 1px solid #2e4050;
    color: #8ab4cf;
    padding: 6px 18px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 3px;
    transition: background .15s, border-color .15s;
}
.vg-lb-footer button:hover {
    background: #1a2a3a;
    border-color: #4a6a8a;
    color: #c8e0f0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .vg-canvas-wrap { height: 420px; max-height: 60vh; }
    .vg-lb-img { max-height: 50vh; }
    .vg-lb-footer { flex-direction: column; gap: 8px; }
    .vg-lb-footer button { width: 100%; text-align: center; }
    .vg-dial-num { width: 26px; height: 30px; font-size: 13px; }
}
@media (max-width: 480px) {
    .vg-canvas-wrap { height: 300px; }
    .vg-hint-text { font-size: 9px; }
}
