/* Interactive Color Swatch Styles for Wedding Attire */

.color-swatch.active-swatch {
    transform: scale(1.2) !important;
    box-shadow: 0 6px 16px rgba(229, 152, 155, 0.4) !important;
    border: 3px solid #e5989b !important;
    position: relative;
}

.color-swatch.active-swatch::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.outfit-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
}

.outfit-icon:hover {
    transform: scale(1.1) !important;
    opacity: 1 !important;
}

/* Color palette interaction feedback */
.color-palette {
    position: relative;
}

.color-palette::after {
    content: 'Double-click to reset colors';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #666;
    opacity: 0.7;
    white-space: nowrap;
}

/* Enhanced color swatches */
.color-swatch {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.color-swatch:active {
    transform: scale(0.95);
}

/* Animation for outfit icons during color change */
@keyframes colorChange {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.outfit-icon.color-changing {
    animation: colorChange 0.3s ease-in-out;
}

/* Mobile responsiveness for interactive elements */
@media (max-width: 768px) {
    .color-swatch.active-swatch::after {
        font-size: 10px;
    }
    
    .color-palette::after {
        font-size: 10px;
        bottom: -20px;
    }
}

@media (max-width: 480px) {
    .color-swatch.active-swatch::after {
        font-size: 8px;
    }
    
    .color-palette::after {
        display: none; /* Hide the hint text on very small screens */
    }
}
