/* © 2026 Wim Lanclus — All rights reserved. This wall preview application, including all code, design, and artwork, is protected by copyright. Unauthorized copying, reproduction, modification, or distribution is strictly prohibited. */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    background: #111;
    overflow: hidden;
    font-family: system-ui, sans-serif;
    color: white;
}

#app {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

#wall-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

#wall {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------------- ARTWORK + SCHADUW ---------------- */

.artwork-container {
    position: absolute;
    top: 40%;
    left: 50%;
    pointer-events: none;
    z-index: 1;
}

.artwork-container::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -30px;
    transform: translateX(-50%);
    width: 70%;
    height: 30px;
    background: rgba(0, 0, 0, 0.25);
    filter: blur(46px);
    border-radius: 40%;
    pointer-events: none;
    z-index: 0;
}

#artwork {
    position: relative;
    transform-origin: center center;
    cursor: default;
    user-select: none;
    touch-action: none;
    z-index: 1;
    border-radius: 3px;
    box-shadow:
        0 0 50px rgba(0, 0, 0, 0.15),
        0 0 40px rgba(0, 0, 0, 0.00);
}

@media (hover: none) {
    #artwork {
        cursor: grab;
    }
}

img, .artwork, .image-container {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* ---------------- UI ---------------- */

#ui {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#ui.fade-out {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.no-auto-fade {
    animation: none;
    opacity: 1;
}

.bottom-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
    pointer-events: auto;
}

.bottom-row button {
    background: rgba(0,0,0,0.55);
    border: none;
    color: white;
    padding: 8px 12px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
}

/* ---------------- UNIVERSELE UI ANIMATIE ---------------- */

button,
.ui-button,
#thumbs img {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

button:hover,
.ui-button:hover,
#thumbs img:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* ---------------- MAIN ARROWS ---------------- */

.main-arrow {
    pointer-events: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    background: rgba(0,0,0,0.4);
    border: none;
    color: white;
    padding: 0;
    cursor: pointer;
    border-radius: 8px;
    height: 72px;
    width: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transform-origin: center center;
}

.main-arrow:hover {
    transform: translateY(-50%) scale(1.12);
    opacity: 0.8;
}

.main-arrow.left { left: 20px; }
.main-arrow.right { right: 20px; }

/* ---------------- WALL BUTTONS ---------------- */

#wall-toggle {
    pointer-events: auto;
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.5);
    border: none;
    padding: 10px 18px;
    font-size: 13px;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

#your-wall-btn {
    pointer-events: auto;
    position: absolute;
    top: 20px;
    left: 140px;
    background: rgba(0,0,0,0.5);
    border: none;
    padding: 10px 18px;
    font-size: 13px;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

/* ---------------- CENTER CONTROLS ---------------- */

#center-controls {
    pointer-events: auto;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

#center-controls button {
    background: rgba(0,0,0,0.55);
    border: none;
    color: white;
    padding: 8px 12px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
}

#center-controls .middle-row {
    display: flex;
    gap: 6px;
}

/* ---------------- THUMBNAILS ---------------- */

.thumb-arrow {
    pointer-events: auto;
    background: rgba(0,0,0,0.4);
    border: none;
    color: white;
    font-size: 32px;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
}

#thumbs-wrapper {
    pointer-events: auto;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    display: flex;
    align-items: center;
    gap: 10px;
}

#thumbs {
    flex: 1;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    padding-left: 10px;
    padding-right: 10px;
    scrollbar-width: none;
}

#thumbs::-webkit-scrollbar { display: none; }

#thumbs img {
    width: 70px;
    height: 70px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 6px;
    opacity: 0.6;
    cursor: pointer;
}

#thumbs img.active {
    opacity: 1;
    transform: scale(1.1);
}

/* ---------------- TOP RIGHT CONTROLS ---------------- */

#top-right-controls {
    position: absolute;
    top: 20px;
    right: 20px;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;

    pointer-events: auto;
    z-index: 9999;
}

#fullscreen-btn,
#audioToggle {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);

    cursor: pointer;
    color: #bfbfbf;
}

/* FULLSCREEN ICON FIX */
#fullscreen-btn {
    font-size: 28px;
}

/* AUDIO ICON FIX */
#audioToggle svg {
    width: 28px;
    height: 28px;
}

/* ---------------- YOUR WALL POPOVER ---------------- */

#your-wall-popover {
    position: fixed;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 12px 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    width: 120px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 9999;
}

#your-wall-popover.visible {
    opacity: 1;
    pointer-events: auto;
}

#your-wall-popover button,
#your-wall-popover label {
    background: none;
    border: none;
    padding: 10px 16px;
    text-align: left;
    font-size: 13px;
    color: white;
    cursor: pointer;
    width: 100%;
}

#your-wall-popover button:hover,
#your-wall-popover label:hover {
    background: rgba(255,255,255,0.12);
}

/* ---------------- COPYRIGHT ---------------- */

.copyright {
    position: fixed;
    bottom: 10px;
    right: 15px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    pointer-events: none;
    user-select: none;
    z-index: 9999;
}

@media screen and (max-height: 820px) {
    #top-right-controls,
    #wall-toggle,
    #your-wall-btn,
    #center-controls {
        top: 30px !important;
    }
    #thumbs-wrapper {
        bottom: 50px;
    }
}