/* ==========================================================================
   SteamPulse - CSFloat-Inspired 3D Weapon Inspect & Viewport Styles
   ========================================================================== */

.item-inspect-container {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
}

/* Mode Switcher Tabs (3D Inspect vs 2D Screenshot) */
.item-inspect-tabs {
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(15, 23, 42, 0.7);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: fit-content;
    margin: 0 auto 16px auto;
}

.item-inspect-tab-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.item-inspect-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.item-inspect-tab-btn.active {
    background: var(--brand-lime, #a3e635);
    color: #0f172a;
    box-shadow: 0 0 15px rgba(163, 230, 53, 0.35);
}

/* 3D Viewport Box */
.item-3d-viewport {
    position: relative;
    width: 100%;
    height: 440px;
    border-radius: 16px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 45%, rgba(30, 41, 59, 0.6) 0%, rgba(10, 15, 26, 0.95) 75%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8), 0 15px 35px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    user-select: none;
}

.item-3d-viewport:active {
    cursor: grabbing;
}

.item-3d-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    outline: none;
}

/* 3D Studio Floor Grid Overlay */
.item-3d-grid-floor {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, transparent 100%),
                radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* 3D Controls Floating Bar */
.item-3d-controls-bar {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: nowrap;
    max-width: 95%;
    overflow-x: auto;
    gap: 6px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 12px;
    border-radius: 30px;
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    scrollbar-width: none;
}

.item-3d-controls-bar::-webkit-scrollbar {
    display: none;
}

.item-3d-btn {
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 11px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.item-3d-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.item-3d-btn.active {
    color: var(--brand-lime, #a3e635);
    background: rgba(163, 230, 53, 0.18);
    box-shadow: 0 0 12px rgba(163, 230, 53, 0.25);
}

#btn3dInspectAnim.active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.2);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
    animation: inspectPulse 1.2s infinite ease-in-out;
}

@keyframes inspectPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 3D Drag Hint */
.item-3d-drag-hint {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

/* 2D Screenshot Viewport Box */
.item-2d-viewport {
    text-align: center;
    padding: 30px 10px;
    position: relative;
    display: none;
}

.item-2d-viewport.active {
    display: block;
}

/* CSFloat Authenticity Badges */
.item-csfloat-badges-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.item-csfloat-badge-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-csfloat-badge-label {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.item-csfloat-badge-val {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-mono, monospace);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .item-3d-viewport {
        height: 320px;
    }
    .item-3d-controls-bar {
        width: 90%;
        justify-content: center;
        overflow-x: auto;
    }
}
