/* ── Share Viewer — custom styles layered on top of Bulma ── */

.sv-brand-bar {
    background-color: #2d3c45;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
}

.sv-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: calc(100vh - 120px);
}

.sv-footer {
    background-color: #2d3c45;
    color: #fff;
    text-align: center;
    padding: 1rem;
    font-size: 0.85rem;
}

/* Brand bar */
.sv-brand-link { display: flex; align-items: center; }
.sv-footer-link { color: rgba(255,255,255,0.8); text-decoration: underline; }
.sv-footer-link:hover { color: #fff; }

/* Home / not-found landing */
.sv-home-box {
    text-align: center;
    padding: 4rem 1rem;
}
.sv-home-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; }

/* Asset grid */
.sv-assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.sv-asset-card {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.sv-asset-img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
}

.sv-asset-video {
    width: 100%;
    display: block;
}

.sv-asset-download {
    display: block;
    padding: 1.25rem;
    text-decoration: none;
    color: #3b82f6;
    font-size: 0.95rem;
}

/* Center utility for icon states */
.sv-state-box {
    text-align: center;
    padding: 4rem 1rem;
}

.sv-icon-xl {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

/* PIN input */
.sv-pin-input {
    font-size: 1.25rem;
    letter-spacing: 0.5rem;
    text-align: center;
    max-width: 180px;
}

/* Lightbox */
.sv-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: pan-y pinch-zoom;
    user-select: none;
}

.sv-lb-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: zoom-out;
}

.sv-lb-img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    cursor: default;
}

.sv-lb-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.sv-lb-close:hover {
    background: rgba(255,255,255,0.3);
}

.sv-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.sv-lb-nav:hover {
    background: rgba(255,255,255,0.3);
}

.sv-lb-prev { left: 1rem; }
.sv-lb-next { right: 1rem; }

.sv-lb-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    background: rgba(0,0,0,0.4);
    padding: 0.2rem 0.75rem;
    border-radius: 12px;
}
