/* ==========================================================================
   BERLEEN STORE - PLAYSTATION VR CONSOLE STORE
   Futuristic PlayStation Flagship Experience Center • Neon Cyber Aesthetics
   Interactive PS5 Demo Station • Floating 3D Symbols • Instant 0ms In-Place Shopping
   ========================================================================== */

/* 1. Floating Action Button (FAB) on Left Side - PlayStation Neon Blue */
#berlin-ps-vr-fab {
    -webkit-tap-highlight-color: transparent !important;
    tap-highlight-color: transparent !important;
    position: fixed;
    left: 20px;
    bottom: 120px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, #003791, #0070d1);
    border: 2px solid rgba(255, 255, 255, 0.75);
    color: #ffffff;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99998;
    box-shadow: 0 8px 24px rgba(0, 112, 209, 0.55), inset 0 2px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    isolation: isolate;
}

#berlin-ps-vr-fab:hover {
    transform: scale(1.08) translateY(-3px);
    background: linear-gradient(135deg, #002f7a, #0082f3);
    box-shadow: 0 12px 32px rgba(0, 112, 209, 0.75), inset 0 2px 0 #ffffff;
    border-color: #ffffff;
}

#berlin-ps-vr-fab i {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
    transition: transform 0.25s ease;
}

#berlin-ps-vr-fab:hover i {
    transform: scale(1.12);
}

.berlin-ps-vr-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 999px;
    border: 1.5px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

/* Tooltip on Hover */
#berlin-ps-vr-fab::after {
    content: "متجر بلايستيشن الافتراضي 3D VR";
    position: absolute;
    left: 74px;
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    background: rgba(5, 10, 25, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 112, 209, 0.6);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 12px rgba(0, 112, 209, 0.3);
}

#berlin-ps-vr-fab:hover::after,
#berlin-ps-vr-fab:focus-visible::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Header toolbar shortcut button */
.berlin-ps-vr-shortcut-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 7px 16px;
    background: linear-gradient(135deg, rgba(0, 55, 145, 0.4), rgba(0, 112, 209, 0.35));
    border: 1px solid rgba(0, 112, 209, 0.65);
    border-radius: 999px;
    color: #e0f2fe;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 112, 209, 0.25);
    transition: all 0.25s ease;
}

.berlin-ps-vr-shortcut-btn:hover {
    background: linear-gradient(135deg, rgba(0, 55, 145, 0.7), rgba(0, 112, 209, 0.65));
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 112, 209, 0.5);
}

/* Hide VR FAB and shortcut button on Mobile & Tablets */
@media (max-width: 1024px), (pointer: coarse) {
    #berlin-ps-vr-fab,
    .berlin-ps-vr-shortcut-btn {
        display: none !important;
    }
}

/* 2. Fullscreen PlayStation VR Overlay Container */
#berlin-ps-vr-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483640;
    background: #050811;
    font-family: inherit;
    user-select: none;
    overflow: hidden;
    display: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

#berlin-ps-vr-overlay.active {
    display: block;
    opacity: 1;
}

#berlin-ps-vr-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
}

/* 3. Dark PlayStation Neon HUD Glass Layer */
.berlin-ps-vr-hud {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 20px;
    box-sizing: border-box;
    z-index: 5;
}

/* 4. Top Navigation Bar */
.berlin-ps-vr-topbar {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    pointer-events: auto;
}

.berlin-ps-vr-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(10, 15, 29, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 112, 209, 0.45);
    padding: 8px 18px;
    border-radius: 999px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(0, 112, 209, 0.25);
}

.berlin-ps-vr-branding i.fa-playstation {
    font-size: 26px;
    color: #0070d1;
    filter: drop-shadow(0 0 8px rgba(0, 112, 209, 0.8));
}

.berlin-ps-vr-title-group h2 {
    margin: 0;
    font-size: 0.95rem;
    color: #f8fafc;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.berlin-ps-vr-title-group span {
    font-size: 0.72rem;
    color: #38bdf8;
    font-weight: 700;
}

.berlin-ps-vr-status-dot {
    width: 8px;
    height: 8px;
    background: #0070d1;
    border-radius: 50%;
    box-shadow: 0 0 10px #0070d1, 0 0 16px #38bdf8;
    display: inline-block;
    animation: berlinPsDotGlow 1.6s infinite alternate;
}

@keyframes berlinPsDotGlow {
    0% { opacity: 0.4; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.2); }
}

.berlin-ps-vr-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.berlin-ps-vr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 112, 209, 0.4);
    border-radius: 999px;
    color: #e0f2fe;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.berlin-ps-vr-btn:hover {
    background: linear-gradient(135deg, rgba(0, 55, 145, 0.8), rgba(0, 112, 209, 0.7));
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 112, 209, 0.4);
}

.berlin-ps-vr-cart-btn {
    background: linear-gradient(135deg, #003791, #0070d1);
    border-color: #0070d1;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 112, 209, 0.45);
}

.berlin-ps-vr-cart-badge {
    background: #ffffff;
    color: #003791;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 1px 7px;
    border-radius: 999px;
}

.berlin-ps-vr-exit-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: #ef4444;
    color: #ffffff;
}

.berlin-ps-vr-exit-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.45);
}

/* 5. Center Crosshair & Interaction Prompt */
.berlin-ps-vr-crosshair-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.berlin-ps-vr-crosshair {
    width: 24px;
    height: 24px;
    position: relative;
}

.berlin-ps-vr-crosshair::before,
.berlin-ps-vr-crosshair::after {
    content: '';
    position: absolute;
    background: rgba(56, 189, 248, 0.85);
    box-shadow: 0 0 8px rgba(0, 112, 209, 0.8);
}

.berlin-ps-vr-crosshair::before {
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
}

.berlin-ps-vr-crosshair::after {
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
}

.berlin-ps-vr-crosshair-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: #0070d1;
    border-radius: 50%;
    box-shadow: 0 0 6px #38bdf8;
}

/* Dynamic Interaction Prompt */
.berlin-ps-vr-prompt {
    display: none;
    align-items: center;
    gap: 9px;
    padding: 8px 22px;
    background: linear-gradient(135deg, #003791, #0070d1);
    border: 1px solid #38bdf8;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 800;
    box-shadow: 0 6px 24px rgba(0, 112, 209, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    animation: berlinPsPromptPulse 1.2s ease-in-out infinite alternate;
    white-space: nowrap;
}

.berlin-ps-vr-prompt.active {
    display: inline-flex;
}

@keyframes berlinPsPromptPulse {
    0% { transform: scale(0.96); box-shadow: 0 6px 20px rgba(0, 112, 209, 0.5); }
    100% { transform: scale(1.04); box-shadow: 0 8px 32px rgba(56, 189, 248, 0.8); }
}

.berlin-ps-vr-prompt-key {
    background: #ffffff;
    color: #003791;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 900;
    font-size: 0.84rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* 6. Minimap Radar (Top-Right) */
.berlin-ps-vr-minimap-container {
    position: absolute;
    top: 70px;
    right: 20px;
    z-index: 10;
    pointer-events: auto;
    background: rgba(10, 15, 29, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 112, 209, 0.5);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 112, 209, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.berlin-ps-vr-minimap-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.5px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 4px;
}

#berlin-ps-vr-minimap {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.95) 0%, rgba(5, 10, 20, 0.95) 75%);
    border: 1px solid rgba(0, 112, 209, 0.5);
    box-shadow: inset 0 0 16px rgba(0, 112, 209, 0.2);
}

/* 7. Bottom Quick-Teleport Bar */
.berlin-ps-vr-bottombar {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}

.berlin-ps-vr-controls-hint {
    background: rgba(10, 15, 29, 0.9);
    border: 1px solid rgba(0, 112, 209, 0.35);
    border-radius: 999px;
    padding: 6px 18px;
    font-size: 0.76rem;
    color: #cbd5e1;
    font-weight: 700;
    display: flex;
    gap: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.berlin-ps-vr-teleport-dock {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(10, 15, 29, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 112, 209, 0.45);
    border-radius: 999px;
    padding: 6px 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 112, 209, 0.25);
}

.berlin-ps-vr-dock-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.85);
    color: #cbd5e1;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.berlin-ps-vr-dock-btn:hover {
    background: linear-gradient(135deg, #003791, #0070d1);
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 112, 209, 0.45);
}

.berlin-ps-vr-dock-btn.active {
    background: linear-gradient(135deg, #003791, #0070d1);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(0, 112, 209, 0.6);
}

/* 8. Department In-Place Instant Window Modal (Zero Reload / Instant 0ms) */
.berlin-ps-vr-section-window {
    position: absolute;
    inset: 16px 22px;
    background: #080d1a;
    border: 2px solid rgba(0, 112, 209, 0.65);
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 45px rgba(0, 112, 209, 0.35);
    z-index: 100;
    pointer-events: auto;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: berlinPsWindowPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes berlinPsWindowPop {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.berlin-ps-vr-section-window.active {
    display: flex;
}

.berlin-ps-vr-window-header {
    height: 54px;
    background: linear-gradient(90deg, #050a14, #0d172e);
    border-bottom: 1px solid rgba(0, 112, 209, 0.3);
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.berlin-ps-vr-window-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f8fafc;
    font-size: 0.98rem;
    font-weight: 800;
}

.berlin-ps-vr-window-title i {
    color: #0070d1;
    font-size: 1.2rem;
    filter: drop-shadow(0 0 6px rgba(0, 112, 209, 0.8));
}

.berlin-ps-vr-window-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.berlin-ps-vr-window-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #003791, #0070d1);
    border: 1px solid #38bdf8;
    border-radius: 999px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 112, 209, 0.45);
    transition: all 0.2s ease;
}

.berlin-ps-vr-window-back-btn:hover {
    background: linear-gradient(135deg, #002f7a, #0082f3);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.65);
}

.berlin-ps-vr-section-body {
    flex: 1;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    box-sizing: border-box;
    background: #060913;
    color: #e2e8f0;
}

.berlin-ps-vr-section-body::-webkit-scrollbar {
    width: 8px;
}
.berlin-ps-vr-section-body::-webkit-scrollbar-track {
    background: #080d1a;
}
.berlin-ps-vr-section-body::-webkit-scrollbar-thumb {
    background: rgba(0, 112, 209, 0.5);
    border-radius: 4px;
}
.berlin-ps-vr-section-body::-webkit-scrollbar-thumb:hover {
    background: #0070d1;
}

/* 9. Controls Help Modal */
.berlin-ps-vr-terminal-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: min(520px, 92vw);
    background: rgba(10, 15, 29, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 112, 209, 0.5);
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 112, 209, 0.3);
    z-index: 50;
    pointer-events: auto;
    display: none;
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    color: #f8fafc;
}

.berlin-ps-vr-terminal-modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.berlin-ps-vr-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #cbd5e1;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.berlin-ps-vr-stat-value {
    font-weight: 800;
    color: #38bdf8;
    font-size: 0.95rem;
}

/* ==========================================================================
   10. Administrative & Cart Modals Elevation in PlayStation VR Mode
   Ensures #ps-cart-modal, #ps-option-modal, and cart selectors render above
   the VR overlay with full pointer events and clickability enabled.
   ========================================================================== */
body.berlin-ps-vr-active #ps-cart-modal,
body.berlin-ps-vr-active #ps-option-modal,
body.berlin-ps-vr-active #carts-selector-overlay,
body.berlin-ps-vr-active #accessories-frame-overlay,
body.berlin-ps-vr-active #digital-cart-frame-overlay,
body.berlin-ps-vr-active .ps-option-modal,
body:has(#berlin-ps-vr-overlay.active) #ps-cart-modal,
body:has(#berlin-ps-vr-overlay.active) #ps-option-modal,
body:has(#berlin-ps-vr-overlay.active) #carts-selector-overlay,
body:has(#berlin-ps-vr-overlay.active) #accessories-frame-overlay,
body:has(#berlin-ps-vr-overlay.active) #digital-cart-frame-overlay {
    z-index: 2147483646 !important;
    pointer-events: auto !important;
}

body.berlin-ps-vr-active #ps-cart-modal > div,
body.berlin-ps-vr-active .ps-option-box,
body.berlin-ps-vr-active .carts-selector-box,
body.berlin-ps-vr-active .accessories-frame-shell,
body:has(#berlin-ps-vr-overlay.active) #ps-cart-modal > div,
body:has(#berlin-ps-vr-overlay.active) .ps-option-box {
    position: relative;
    z-index: 2147483647 !important;
    pointer-events: auto !important;
}
