/* ==========================================================
   VeaXpert — Paspası araçta gör (arac3d.php)
   ========================================================== */
:root {
    --gold: #D4AF37;
}

* {
    box-sizing: border-box;
}

.vxc-body {
    margin: 0;
    min-height: 100vh;
    background: #0a0a0a;
    color: #ddd;
    font-family: 'Montserrat', sans-serif;
}

.vxc-body button {
    cursor: pointer;
}

.vxc-head {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 22px;
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.9), rgba(8, 8, 8, 0));
    pointer-events: none;
}

.vxc-head a {
    pointer-events: auto;
}

.vxc-logo img {
    display: block;
    width: auto;
    height: 46px;
}

.vxc-head nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.vxc-head nav a {
    color: #bbb;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.2s;
}

.vxc-head nav a:hover {
    color: var(--gold);
}

.vxc-head nav a.vxc-order {
    padding: 8px 18px;
    border: 1px solid var(--gold);
    border-radius: 3px;
    color: var(--gold);
}

.vxc-head nav a.vxc-order:hover {
    background: var(--gold);
    color: #000;
}

.vxc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    height: 100vh;
    height: 100dvh;
}

.vxc-view {
    position: relative;
    min-height: 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 68%, rgba(212, 175, 55, 0.14), transparent 58%),
        radial-gradient(circle at 50% 38%, #24221c, #090909 78%);
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}

.vxc-view.grabbing {
    cursor: grabbing;
}

.vxc-view canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.vxc-fail {
    display: none;
    position: absolute;
    inset: 0;
    margin: auto;
    width: min(420px, 86%);
    height: fit-content;
    text-align: center;
    line-height: 1.6;
    color: #aaa;
}

.vxc-fail a {
    color: var(--gold);
}

.vxc-view.fail .vxc-fail {
    display: block;
}

.vxc-view .vx3d-label {
    top: 76px;
    bottom: auto;
}

.vxc-hint {
    position: absolute;
    top: 76px;
    right: 18px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: #bbb;
    font-size: 0.72rem;
    pointer-events: none;
    transition: opacity 0.5s;
}

.vxc-view.used .vxc-hint {
    opacity: 0;
}

/* Görünüm düğmeleri */
.vxc-views {
    position: absolute;
    left: 50%;
    bottom: 22px;
    display: flex;
    gap: 6px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(12, 12, 12, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateX(-50%);
    cursor: default;
}

.vxc-view-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 66px;
    padding: 9px 8px 7px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #999;
    font-family: 'Oswald', sans-serif;
    font-size: 0.74rem;
    letter-spacing: 0.6px;
    transition: background 0.2s, color 0.2s;
}

.vxc-view-btn i {
    font-size: 1rem;
}

.vxc-view-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

.vxc-view-btn.on {
    background: var(--gold);
    color: #000;
}

/* Yan panel */
.vxc-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 88px 28px 26px;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, #121212, #0b0b0b);
    overflow-y: auto;
}

.vxc-k {
    font-family: 'Oswald', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 3px;
    color: var(--gold);
}

.vxc-panel h1 {
    margin: 0;
    font-family: 'Oswald', sans-serif;
    font-size: 2.1rem;
    font-weight: 600;
    line-height: 1.15;
    color: #fff;
    text-transform: uppercase;
}

.vxc-panel h1 em {
    display: block;
    font-style: normal;
    color: var(--gold);
}

.vxc-lead {
    margin: 0 0 6px;
    font-size: 0.88rem;
    line-height: 1.65;
    color: #999;
}

.vxc-panel .vxs-chip i {
    margin-right: 6px;
}

.vxc-cta {
    display: block;
    margin-top: auto;
    padding: 15px;
    border-radius: 4px;
    background: var(--gold);
    color: #000;
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.2s, box-shadow 0.2s;
}

.vxc-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(212, 175, 55, 0.3);
}

.vxc-note {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.55;
    color: #666;
}

@media (max-width: 900px) {
    .vxc {
        display: block;
        height: auto;
    }

    .vxc-view {
        height: 62vh;
        height: 62dvh;
        min-height: 380px;
    }

    .vxc-panel {
        padding: 22px 18px 30px;
        border-left: 0;
        overflow: visible;
    }

    .vxc-panel h1 {
        font-size: 1.7rem;
    }

    .vxc-cta {
        margin-top: 10px;
    }

    .vxc-hint {
        display: none;
    }

    .vxc-views {
        bottom: 12px;
        gap: 2px;
        padding: 4px;
        max-width: calc(100% - 16px);
    }

    .vxc-view-btn {
        min-width: 0;
        padding: 8px 9px 6px;
        font-size: 0.68rem;
    }

    .vxc-head {
        height: 56px;
        padding: 0 14px;
    }

    .vxc-logo img {
        height: 38px;
    }

    .vxc-view .vx3d-label {
        top: 62px;
    }
}

/* --- Araç inerken sahnenin ortasında duran "yükleniyor" yazısı --- */
.vxc-loading {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-top: -18px;
    padding: 10px 20px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 20px;
    background: rgba(10, 10, 10, 0.8);
    color: #ccc;
    font-size: 0.9rem;
    text-align: center;
    max-width: calc(100% - 32px);
    transform: translateX(-50%);
    pointer-events: none;
}

.vxc-loading b {
    margin-left: 6px;
    color: var(--gold);
    font-family: 'Oswald', sans-serif;
}

.vxc-panel .vxs-chip:disabled {
    opacity: 0.55;
    cursor: default;
}

.vxc-note a {
    color: #999;
}
