/* ==========================================================================
   VizyAjans - 3D Virtual Tour (Live Residence) Styles
   ========================================================================== */

:root {
    --vt-bg-dark: #090d16;
    --vt-card-bg: rgba(15, 23, 42, 0.75);
    --vt-card-border: rgba(255, 255, 255, 0.12);
    --vt-accent-gradient: linear-gradient(135deg, #9d36ff 0%, #ff3b8d 50%, #00d2ff 100%);
    --vt-gold: #d4af37;
    --vt-gold-gradient: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    --vt-text-main: #f8fafc;
    --vt-text-muted: #94a3b8;
    --vt-glass-blur: blur(16px);
}

/* Base Body & Reset for Sanal Tur page */
body.virtual-tour-body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
    background-color: var(--vt-bg-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--vt-text-main);
    user-select: none;
    -webkit-user-select: none;
}

/* 1. Main Viewport Container */
.virtual-tour-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background-color: var(--vt-bg-dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 2. Launcher Overlay (Splash Screen) */
.vt-launcher {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.7) 0%, rgba(9, 13, 22, 0.95) 100%),
                url('../assets/hero_strategy.png') center/cover no-repeat;
    padding: 24px;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

.vt-launcher.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.vt-launcher-card {
    max-width: 620px;
    width: 100%;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid var(--vt-card-border);
    backdrop-filter: var(--vt-glass-blur);
    -webkit-backdrop-filter: var(--vt-glass-blur);
    border-radius: 28px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(157, 54, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.vt-launcher-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--vt-accent-gradient);
}

.vt-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(157, 54, 255, 0.15);
    border: 1px solid rgba(157, 54, 255, 0.3);
    color: #c084fc;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.vt-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00d2ff;
    box-shadow: 0 0 10px #00d2ff;
}

.vt-launcher-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.75rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 16px;
}

.vt-launcher-title span {
    background: var(--vt-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vt-launcher-desc {
    font-size: 1.1rem;
    color: var(--vt-text-muted);
    line-height: 1.6;
    margin-bottom: 36px;
}

.vt-btn-start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 36px;
    background: var(--vt-accent-gradient);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 25px rgba(157, 54, 255, 0.35);
}

.vt-btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(157, 54, 255, 0.5);
}

.vt-btn-start svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.vt-btn-start:hover svg {
    transform: translateX(4px);
}

.vt-launcher-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    color: var(--vt-text-muted);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.vt-launcher-back:hover {
    color: #ffffff;
}

/* 3. Pixel Streaming Iframe & Viewer Container */
.vt-iframe-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background-color: #000000;
}

.vt-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    outline: none;
}

/* 4. Loading State Screen */
.vt-loading-screen {
    position: absolute;
    inset: 0;
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(9, 13, 22, 0.95);
    backdrop-filter: var(--vt-glass-blur);
    -webkit-backdrop-filter: var(--vt-glass-blur);
    transition: opacity 0.5s ease, visibility 0.5s;
}

.vt-loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.vt-spinner {
    width: 56px;
    height: 56px;
    border: 3px solid rgba(157, 54, 255, 0.2);
    border-top-color: #ff3b8d;
    border-right-color: #9d36ff;
    border-radius: 50%;
    animation: vtSpin 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    margin-bottom: 24px;
}

@keyframes vtSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vt-loading-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.vt-loading-subtext {
    font-size: 0.95rem;
    color: var(--vt-text-muted);
}

/* 5. Minimal Control HUD Overlay */
.vt-hud {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none; /* Allows mouse clicks to reach iframe by default */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.vt-hud.hidden {
    opacity: 0;
    visibility: hidden;
}

.vt-hud-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.vt-brand-tag {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--vt-card-border);
    backdrop-filter: var(--vt-glass-blur);
    -webkit-backdrop-filter: var(--vt-glass-blur);
    padding: 10px 20px;
    border-radius: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.vt-brand-tag img {
    height: 24px;
    width: auto;
}

.vt-brand-tag span {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.vt-actions-top {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.vt-btn-hud {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--vt-card-border);
    backdrop-filter: var(--vt-glass-blur);
    -webkit-backdrop-filter: var(--vt-glass-blur);
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.vt-btn-hud:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(157, 54, 255, 0.4);
    transform: translateY(-1px);
}

.vt-btn-close {
    background: rgba(225, 29, 72, 0.2);
    border-color: rgba(225, 29, 72, 0.4);
    color: #fecdd3;
}

.vt-btn-close:hover {
    background: rgba(225, 29, 72, 0.4);
    border-color: rgba(225, 29, 72, 0.6);
    color: #ffffff;
}

.vt-hud-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
}

.vt-controls-guide {
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--vt-card-border);
    backdrop-filter: var(--vt-glass-blur);
    -webkit-backdrop-filter: var(--vt-glass-blur);
    border-radius: 16px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.vt-key-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vt-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-family: 'Outfit', monospace;
    font-weight: 700;
    font-size: 0.85rem;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.vt-key-label {
    font-size: 0.85rem;
    color: var(--vt-text-muted);
    font-weight: 500;
}

.vt-key-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
}

.vt-mouse-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--vt-text-muted);
}

.vt-mouse-hint svg {
    width: 18px;
    height: 18px;
    color: #c084fc;
}

/* 6. Error & Connection Fallback Overlay */
.vt-error-screen {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(9, 13, 22, 0.96);
    backdrop-filter: var(--vt-glass-blur);
    -webkit-backdrop-filter: var(--vt-glass-blur);
    padding: 24px;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.vt-error-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.vt-error-card {
    max-width: 520px;
    width: 100%;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(244, 63, 94, 0.1);
}

.vt-error-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.vt-error-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.vt-error-desc {
    font-size: 1rem;
    color: var(--vt-text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.vt-dev-hint {
    background: rgba(30, 41, 59, 0.7);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #cbd5e1;
    text-align: left;
    margin-bottom: 28px;
    line-height: 1.5;
}

.vt-dev-hint strong {
    color: #f43f5e;
}

.vt-btn-retry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.3);
}

/* 7. Capacity Full Overlay */
.vt-capacity-screen {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(9, 13, 22, 0.96);
    backdrop-filter: var(--vt-glass-blur);
    -webkit-backdrop-filter: var(--vt-glass-blur);
    padding: 24px;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.vt-capacity-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.vt-capacity-card {
    max-width: 540px;
    width: 100%;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 24px;
    padding: 44px 36px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(234, 179, 8, 0.1);
}

.vt-capacity-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.vt-capacity-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.vt-capacity-desc {
    font-size: 1.05rem;
    color: var(--vt-text-muted);
    line-height: 1.6;
    margin-bottom: 28px;
}

.vt-btn-capacity-retry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 36px;
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(234, 179, 8, 0.3);
}

.vt-btn-capacity-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(234, 179, 8, 0.5);
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .vt-launcher-card {
        padding: 32px 24px;
    }

    .vt-launcher-title {
        font-size: 2rem;
    }

    .vt-controls-guide {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 16px;
    }

    .vt-key-divider {
        display: none;
    }

    .vt-brand-tag span {
        display: none;
    }
}
