/* ===== WARDROBE PAGE STYLES ===== */

.wardrobe-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 0;
    overflow: hidden;
    position: relative;
}

/* 3D Viewer Area */
.wardrobe-viewer {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1a1a4e 0%, #0f0f2d 100%);
    overflow: hidden;
}

.viewer-bg {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 60%);
    animation: rotateBg 20s linear infinite;
}

@keyframes rotateBg {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.mannequin-container {
    position: relative;
    width: 200px;
    height: 400px;
    z-index: 10;
    transform-style: preserve-3d;
    animation: floatFloat 4s ease-in-out infinite;
}

@keyframes floatFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.mannequin-base {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 60px 60px 40px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.3);
}

.equip-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.equip-layer.body {
    transform: translate(-50%, -80%);
}

.equip-layer.legs {
    transform: translate(-50%, 20%);
}

/* Floating Slots */
.equip-slots-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 80px 20px 180px;
    /* Space for header and bottom panel */
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 20;
}

.slot-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    pointer-events: auto;
}

.equip-slot {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.2s ease;
}

.equip-slot:hover {
    transform: scale(1.1);
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.3);
}

.equip-slot.filled {
    border-color: var(--success);
    background: rgba(56, 239, 125, 0.1);
}

.slot-placeholder {
    font-size: 20px;
    opacity: 0.5;
}

.slot-icon {
    font-size: 24px;
}

/* Controls */
.viewer-controls {
    position: absolute;
    bottom: 220px;
    /* Above the panel */
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 20;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 18px;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

/* Bottom Panel */
.wardrobe-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    border-radius: 20px 20px 0 0;
    background: rgba(25, 25, 50, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 30;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
}

.panel-tab.active {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 2px solid var(--primary);
}

.panel-content {
    flex: 1;
    padding: 15px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.stats-radar {
    width: 100px;
    height: 100px;
    position: relative;
    /* Simplified radar visual */
}

.radar-stat {
    position: absolute;
    font-size: 10px;
    color: var(--text-muted);
}

.radar-graph {
    width: 60%;
    height: 60%;
    background: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.radar-shape {
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0.5;
    transform: scale(0.7);
    clip-path: polygon(50% 10%, 90% 90%, 10% 90%);
}

.stats-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 4px;
}

.stat-row .positive {
    color: var(--success);
}

.transparent {
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
}