/* ===================================
   VARIATION SELECTOR - Dark Minimal Enhanced
   =================================== */
.ux-game-variations-wrapper {
    background: linear-gradient(135deg, #1f1f1f 0%, #1a1a1a 100%);
    border: 1px solid #fff;
    border-radius: 8px;
    padding: 16px 18px;
    margin: 15px 0;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Border chạy - animated gradient border */
.ux-game-variations-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        90deg,
        transparent,
        transparent,
        #4a9fd8,
        #5ec4ff,
        #4a9fd8,
        transparent,
        transparent
    );
    background-size: 200% 100%;
    border-radius: 8px;
    z-index: -1;
    animation: borderRun 3s linear infinite;
}

/* Mask để tạo hiệu ứng border */
.ux-game-variations-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1f1f1f 0%, #1a1a1a 100%);
    border-radius: 7px;
    z-index: -1;
}

@keyframes borderRun {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

.ux-variation-group {
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.ux-variation-label {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
    color: #999;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.ux-variation-label strong {
    color: #ffffff;
    font-size: 13px;
    text-transform: uppercase;
}

.ux-variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-family: monospace;
}

.ux-variation-option {
    position: relative;
    padding: 4px 12px;
    border: 1px solid #3a3a3a;
    background: linear-gradient(135deg, #1a1a1a 0%, #151515 100%);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 12px;
    font-weight: 500;
    color: #888;
    white-space: nowrap;
    margin: 0;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Hover state - nổi bật */
.ux-variation-option:hover:not(.selected) {
    border-color: #4a4a4a;
    background: linear-gradient(135deg, #252525 0%, #1f1f1f 100%);
    color: #aaa;
    transform: translateY(-2px);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Selected state - rất nổi bật và sang trọng */
button.ux-variation-option.selected {
    background: linear-gradient(135deg, #3d5a7a 0%, #2d4a6a 100%);
    border-color: #5eb4ff;
    color: #ffffff;
    box-shadow: 
        0 0 0 1px rgba(94, 180, 255, 0.4),
        0 4px 12px rgba(74, 159, 216, 0.35),
        0 8px 24px rgba(74, 159, 216, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Glow effect cho selected */
button.ux-variation-option.selected::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(94, 180, 255, 0.1) 0%,
        transparent 70%
    );
    animation: pulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Hiệu ứng khi click */
.ux-variation-option:active {
    transform: translateY(0px);
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

button.ux-variation-option.selected:active {
    box-shadow: 
        0 0 0 1px rgba(94, 180, 255, 0.4),
        0 2px 6px rgba(74, 159, 216, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

