/* ==========================================================================
   Collectible 3D Figure & Blister Pack Packaging Styles
   Real-Time Three.js Diorama + Cyberpunk Packaging Card
   ========================================================================== */

.hero-toy-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 520px;
}

/* View Mode Selector (Video 3D vs WebGL 3D) */
.toy-mode-toggle {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 20, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-line);
    border-radius: 9999px;
    padding: 3px;
    margin-bottom: 1rem;
    gap: 4px;
    z-index: 10;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.toy-mode-toggle::-webkit-scrollbar {
    display: none;
}

.toy-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 5px 12px;
    border-radius: 9999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toy-mode-btn.active {
    background: var(--color-accent-10);
    color: var(--color-accent);
    border: 1px solid var(--color-accent-border);
    font-weight: 600;
    box-shadow: 0 0 12px var(--color-accent-glow);
}

.toy-mode-btn:hover:not(.active) {
    color: var(--color-bone);
}

.toy-mode-btn .pulse-indicator {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 6px var(--color-accent);
    display: inline-block;
}

/* Packaging Container Card */
.toy-packaging-card {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: rgba(11, 14, 18, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    border: 1px solid var(--color-accent-border, rgba(36, 177, 177, 0.35));
    box-shadow: 
        0 14px 40px rgba(0, 0, 0, 0.75),
        0 0 25px var(--color-accent-glow, rgba(36, 177, 177, 0.15)),
        inset 0 0 15px rgba(30, 64, 175, 0.15);
    display: flex;
    flex-direction: column;
    padding: 16px;
    box-sizing: border-box;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    overflow: hidden;
    user-select: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.35s ease, 
                box-shadow 0.35s ease;
}

.toy-packaging-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: var(--color-accent);
    box-shadow: 
        0 22px 50px rgba(0, 0, 0, 0.85),
        0 0 35px var(--color-accent-glow, rgba(36, 177, 177, 0.3));
}

/* Card Header */
.toy-card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
    margin-bottom: 8px;
}

.toy-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.toy-edition-badge {
    font-size: 11px;
    font-weight: 700;
    color: #D4AF37;
    letter-spacing: 0.12em;
    background: rgba(212, 175, 55, 0.12);
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.toy-barcode {
    display: flex;
    gap: 2.5px;
    height: 14px;
    align-items: flex-end;
}

.toy-barcode span {
    display: inline-block;
    background: var(--color-accent, #24B1B1);
    opacity: 0.85;
    width: 2px;
    height: 100%;
}
.toy-barcode span:nth-child(2n) { width: 3px; }
.toy-barcode span:nth-child(3n) { height: 70%; }
.toy-barcode span:nth-child(5n) { width: 1px; }

.toy-title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #f1f5f9;
    line-height: 1.2;
}

.toy-subtitle {
    font-size: 10px;
    font-weight: 600;
    color: var(--color-accent, #24B1B1);
    letter-spacing: 0.14em;
    margin-top: 2px;
}

/* 3D Video Screen Window (Aurox MP4 Clips) */
.toy-video-window {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.3),
        inset 0 0 25px rgba(36, 177, 177, 0.12);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toy-video-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    border-radius: 16px;
    z-index: 1;
}

.toy-video-player.active {
    opacity: 1;
    visibility: visible;
}

/* Sleek Floating Sound Toggle Button */
.toy-sound-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(15, 20, 26, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-bone-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toy-sound-btn:hover {
    background: rgba(36, 177, 177, 0.2);
    color: var(--color-accent);
    border-color: var(--color-accent);
    transform: scale(1.08);
}

/* 3D Blister Dome Window (WebGL Three.js) */
.toy-blister-window {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 16px;
    background: radial-gradient(circle at 50% 40%, rgba(36, 177, 177, 0.06) 0%, rgba(11, 14, 18, 0.2) 70%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.3),
        inset 0 0 20px rgba(36, 177, 177, 0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glossy Blister Reflection Strip */
.blister-specular-highlight {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 38%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 16px 16px 0 0;
    pointer-events: none;
    z-index: 2;
}

.toy-blister-window canvas {
    width: 100% !important;
    height: 100% !important;
    outline: none;
    z-index: 1;
    display: block;
}

/* Card Footer */
.toy-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
    margin-top: 8px;
    font-size: 9px;
    color: #8b9bb4;
    letter-spacing: 0.09em;
}

.toy-card-url {
    color: var(--color-accent, #24B1B1);
    font-weight: 600;
}

/* View Visibility Switching */
.toy-view-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.toy-view-item {
    display: none;
    width: 100%;
    justify-content: center;
}

.toy-view-item.active {
    display: flex;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .toy-packaging-card {
        max-width: 320px;
        padding: 12px;
    }
    .toy-blister-window {
        height: 320px;
    }
}
