/* ==========================================================================
   QUOOKER 3D PURE EXPERIENCE - MINIMALIST WHITE & UNDERLINED DESIGN SYSTEM
   ========================================================================== */

:root {
    --bg-dark: #070a0f;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    font-family: var(--font-body);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

#ambient-glow {
    position: fixed;
    top: -20%;
    left: 20%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

/* ==========================================================================
   TOP MINIMALIST BAR & VOLUME SCALER
   ========================================================================== */

.top-bar {
    position: fixed;
    top: 30px;
    left: 40px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    z-index: 100;
    pointer-events: none;
}

.volume-control-wrapper {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.volume-btn {
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-main);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.volume-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

.vol-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.volume-slider-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    background: transparent;
}

.slider-input {
    -webkit-appearance: none;
    width: 130px;
    height: 2px;
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    cursor: pointer;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.vol-val {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    color: #ffffff;
    min-width: 36px;
    text-align: right;
}

/* ==========================================================================
   3D FLOATING HOTSPOTS (CLEAN UNDERLINED TEXT)
   ========================================================================== */

#hotspots-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

.hotspot {
    position: absolute;
    pointer-events: auto;
    cursor: pointer;
    /* We don't translate center anymore, we align from the pin */
    display: flex;
    align-items: center;
    gap: 0px; /* Gap is handled by the line */
    transition: opacity 0.3s ease;
}

/* Left Aligned: Text is on the left, pin is on the right */
.hotspot.left-aligned {
    transform: translate(-100%, -50%);
}

/* Right Aligned: Pin is on the left, text is on the right */
.hotspot.right-aligned {
    transform: translate(0, -50%);
}

.hotspot-pin {
    position: relative;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pin-core {
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    z-index: 2;
    transition: transform 0.2s ease;
}

.hotspot:hover .pin-core {
    transform: scale(1.6);
}

.hs-line {
    width: 0px; /* Animates on load */
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    margin: 0 10px;
    transition: background 0.3s ease;
}

.hotspot:hover .hs-line {
    background: rgba(255, 255, 255, 0.8);
}

.hotspot-label {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}

.hs-title {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9); /* Ensures readability against any background glare */
    transition: border-color 0.2s ease, color 0.2s ease;
}

/* ==========================================================================
   COLOR CUSTOMIZER UI
   ========================================================================== */
#settings-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    z-index: 1000;
}

#settings-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

#settings-btn svg {
    width: 22px;
    height: 22px;
}

#color-palette {
    position: absolute;
    bottom: 90px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(10, 12, 16, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

#color-palette.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.palette-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.palette-title {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.color-swatches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.color-swatch:hover, .color-swatch.active {
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.8);
}

.hotspot:hover .hs-title {
    border-bottom-color: #ffffff;
    border-bottom-width: 1px;
}

/* ==========================================================================
   MINIMAL FLOATING INFO TEXT (SIDE ALIGNED & HIGHLY TRANSPARENT)
   ========================================================================== */

.info-card {
    position: fixed;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    width: 360px;
    padding: 30px;
    z-index: 150;
    display: flex;
    flex-direction: column;
    gap: 24px;
    
    /* Highly transparent frameless look */
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-bounce);
}

.info-card.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(40px);
}

.info-close {
    align-self: flex-end;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0;
    margin-bottom: -10px;
}

.info-close:hover {
    color: #fff;
}

.info-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-badge {
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.info-header h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 300;
    color: #fff;
    line-height: 1.2;
}

/* Typwriter Text Content */
.info-desc-container {
    min-height: 120px;
}

.info-card p {
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.typewriter-cursor {
    display: inline-block;
    width: 6px;
    height: 1em;
    background-color: rgba(255, 255, 255, 0.7);
    animation: blink 0.8s infinite;
    vertical-align: text-bottom;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.info-stats {
    display: flex;
    justify-content: flex-start;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-label {
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
}

.stat-val {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 300;
    color: #fff;
}

.info-actions {
    display: flex;
    margin-top: 10px;
}

.btn-standby {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    padding: 0 0 6px 0;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
    letter-spacing: 0.5px;
}

.btn-standby:hover {
    border-bottom-color: #fff;
}

/* ==========================================================================
   NAVIGATION ARROWS
   ========================================================================== */
.nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 200;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.nav-arrow.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(0.8);
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.nav-left { left: 40px; }
.nav-right { right: 430px; }
