/* ============================================================================
   ANIMATION UI STYLES - Client Interaction & Layout
   ============================================================================
   
   This stylesheet contains ONLY the styles for client-side UI, controls,
   viewport layout, and user interaction. These styles are NOT needed for
   server-side 3D rendering (Puppeteer screenshots).
   
   3D rendering styles are in animation-core.css (shared with server).
*/

/* ============================================================================
   MAIN ANIMATION CONTAINER LAYOUT
   ============================================================================ */

.animation {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    justify-content: center;
    background-color: #555;
    overflow: hidden;
    height: 100vh;
    max-height: 100vh;
    max-width: 100%;
    min-width: 0;
    border-radius: 5px;
    pointer-events: auto;
}

/* ============================================================================
   VIEWPORT CONTAINER (3D Rendering Area)
   ============================================================================ */

/* Main 3D viewport - displays the rendered scene */
.animateprisms {
    flex: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: white;
    margin: 0;
    overflow: hidden;
    pointer-events: auto;
    position: relative;
    perspective: none;
}

/* Viewport container - holds perspective rendering */
.prism-container {
    width: 800px;
    display: flex;
    align-items: center;
    transform-origin: center;
    cursor: grab;
    user-select: none;
    overflow: hidden;
}

.prism-container:active {
    cursor: grabbing;
}

/* The scene canvas - draggable 3D coordinate space */
.scene {
    width: 4000px;
    height: 4000px;
    display: flex;
    padding: 0;
    cursor: grab;
    user-select: none;
    pointer-events: auto;
    backface-visibility: visible;
    overflow: visible;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -2000px;
    margin-top: -2000px;
    perspective: none;
}

.scene:active {
    cursor: grabbing;
}

/* ============================================================================
   CONTROL BUTTONS
   ============================================================================ */

/* Animation control buttons */
.animatebuttons {
    width: 4.5rem;
    height: 4.5rem;
    border: none;
    border-radius: 5px;
    padding: 13px 0px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.animatebuttons:hover {
    background-color: #999999;
}

.animatebuttons:active {
    transform: scale(0.98);
}

/* Button images */
.btn-img {
    height: 2rem;
    width: 2rem;
}

/* ============================================================================
   CONTROL PANEL LAYOUT
   ============================================================================ */

/* Animation control panel container */
.animationcontrols {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 100%;
    column-gap: 0.5rem;
    row-gap: 1rem;
    justify-items: center;
    margin-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.5rem;
}

/* Slider control container */
.animation-sliders {
    color: white;
    margin: 2rem 2rem 2rem 0;
}

.animation-sliders label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.animation-sliders input[type="range"] {
    width: 150px;
    cursor: pointer;
}

/* ============================================================================
   PICK POINT INTERACTION (Client-side feedback only)
   ============================================================================
   
   Drag line and animation feedback for pick point interactions.
   The pick points themselves are in animation-core.css (they're 3D elements).
*/

/* Pick point drag line - shown during drag operations */
.pick-point-drag-line {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

.pick-point-drag-line svg {
    filter: drop-shadow(0 0 2px rgba(255, 0, 0, 0.5));
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media screen and (max-width: 1024px) {
    .animateprisms {
        flex-direction: column;
    }

    .animationcontrols {
        order: -1;
        margin-left: 0;
    }
}

@media screen and (max-width: 768px) {
    .prism-container {
        width: 100%;
        max-width: 90vw;
    }

    .animatebuttons {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 10px;
    }

    .animationcontrols {
        justify-content: center;
    }

    .animation-sliders input[type="range"] {
        width: 120px;
    }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.hidden {
    display: none !important;
}

.dragging {
    user-select: none;
    cursor: grabbing;
}
