/**
 * Gaming Swatches Frontend Styles
 * Custom card layout matching target website design
 */

/* Style existing Woodmart swatches with gaming theme */
.wd-swatches-product .wd-swatch {
    border: 2px solid #084208 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #2a332a 0%, #171c17 100%) !important;
    color: #ffffff !important;
    padding: 20px 15px !important;
    margin: 5px !important;
    min-width: 140px !important;
    min-height: 120px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    cursor: pointer !important;
    position: relative !important;
    outline: none !important;
    border-style: solid !important;
}

.wd-swatches-product .wd-swatch:hover {
    border-color: #00ff00 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

.wd-swatches-product .wd-swatch.selected {
    border: 2px solid #00ff00 !important;
    border-style: solid !important;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4), 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-2px) !important;
    outline: none !important;
}

.wd-swatches-product .wd-swatch.selected .wd-swatch-name {
    color: #00ff00 !important;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3) !important;
}

.wd-swatches-product .wd-swatch .wd-swatch-image {
    margin-bottom: 8px !important;
    display: block !important;
}

.wd-swatches-product .wd-swatch .wd-swatch-image img {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
}

.wd-swatches-product .wd-swatch .wd-swatch-name {
    font-weight: 600 !important;
    font-size: 16px !important;
    margin-bottom: 8px !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    line-height: 1.2 !important;
}

.wd-swatches-product .wd-swatch .wd-swatch-price {
    font-size: 14px !important;
    color: #00ff00 !important;
    font-weight: 500 !important;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3) !important;
}

.wd-swatches-product .wd-swatch.disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    filter: grayscale(0.7) !important;
    border-color: #666666 !important;
}

.wd-swatches-product .wd-swatch.disabled .wd-swatch-name,
.wd-swatches-product .wd-swatch.disabled .wd-swatch-price {
    color: #666666 !important;
}

/* Container styling */
.wd-swatches-product {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    margin: 20px 0 !important;
}

/* Custom Variation Cards Container */
.custom-variation-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

/* Custom Card Styles - Using Website Gaming Colors */
.custom-card {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 140px;
    max-width: 180px;
    flex: 1 1 140px;
    border: 2px solid #084208;
    background: linear-gradient(135deg, #2a332a 0%, #171c17 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    padding: 20px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    outline: none;
    border-style: solid;
}

/* Custom Icon/Image */
.custom-icon {
    margin-bottom: 12px;
    display: block;
}

.custom-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Custom Label (Denomination) */
.custom-label {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

/* Custom Price */
.custom-price {
    font-size: 14px;
    color: #00ff00;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.gaming-swatch-price .regular-price,
.wd-custom-swatch .regular-price {
    text-decoration: line-through;
    opacity: 0.7;
    margin-right: 4px;
}

.gaming-swatch-price .sale-price,
.wd-custom-swatch .sale-price,
.gaming-swatch-price .single-price,
.wd-custom-swatch .single-price {
    color: #10b981;
    font-weight: 600;
}

/* Active/Selected State */
.custom-card.selected {
    border: 2px solid #00ff00;
    border-style: solid;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4), 0 8px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #2a332a 0%, #171c17 100%);
    outline: none;
}

.custom-card.selected .custom-label {
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

/* Hover Effects */
.custom-card:hover:not(.selected) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border: 2px solid #00ff00;
    border-style: solid;
    background: linear-gradient(135deg, #2a332a 0%, #1a201a 100%);
    outline: none;
}

.custom-card:hover:not(.selected) .custom-label {
    color: #00ff00;
}

/* Disabled/Out of Stock State */
.custom-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.7);
    border-color: #666666;
}

.custom-card.disabled .custom-label,
.custom-card.disabled .custom-price {
    color: #666666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .custom-variation-cards {
        gap: 10px;
        margin: 15px 0;
    }
    
    .custom-card {
        min-width: 110px;
        max-width: 150px;
        flex: 1 1 110px;
        padding: 15px 10px;
        min-height: 100px;
    }
    
    .custom-icon img {
        width: 32px;
        height: 32px;
    }
    
    .custom-label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .custom-price {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .custom-variation-cards {
        gap: 8px;
        margin: 10px 0;
    }
    
    .custom-card {
        min-width: 90px;
        max-width: 130px;
        flex: 1 1 90px;
        padding: 12px 8px;
        min-height: 85px;
    }
    
    .custom-icon img {
        width: 28px;
        height: 28px;
    }
    
    .custom-label {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .custom-price {
        font-size: 11px;
    }
}

