/**
 * Hurricane Colour Swatches Widget Styles
 */

.hurricane-colour-swatches-wrapper {
    width: 100%;
}

/* Header */
.swatches-header {
    text-align: center;
    margin-bottom: 40px;
}

.swatches-heading {
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.swatches-description {
    font-size: 18px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* Grid */
.hurricane-colour-swatches-grid {
    display: grid;
    gap: 20px;
}

/* Dynamic columns based on data attributes */
.hurricane-colour-swatches-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.hurricane-colour-swatches-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.hurricane-colour-swatches-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.hurricane-colour-swatches-grid[data-columns="5"] {
    grid-template-columns: repeat(5, 1fr);
}

.hurricane-colour-swatches-grid[data-columns="6"] {
    grid-template-columns: repeat(6, 1fr);
}

/* Individual Swatch Item */
.colour-swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Swatch Box (Square) */
.colour-swatch-box {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    border: 3px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.colour-swatch-item:hover .colour-swatch-box {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Colour Info */
.colour-swatch-item .colour-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.colour-swatch-item .colour-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
    line-height: 1.3;
}

.colour-swatch-item .colour-ral {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .hurricane-colour-swatches-grid[data-columns="6"] {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hurricane-colour-swatches-grid[data-columns="5"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .swatches-heading {
        font-size: 28px;
    }
    
    .swatches-description {
        font-size: 16px;
    }
    
    .swatches-header {
        margin-bottom: 30px;
    }
    
    /* Tablet columns */
    .hurricane-colour-swatches-grid[data-columns-tablet="2"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hurricane-colour-swatches-grid[data-columns-tablet="3"] {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hurricane-colour-swatches-grid[data-columns-tablet="4"] {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .colour-swatch-box {
        width: 80px;
        height: 80px;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .swatches-heading {
        font-size: 24px;
    }
    
    .swatches-description {
        font-size: 15px;
    }
    
    .hurricane-colour-swatches-grid {
        gap: 15px;
    }
    
    /* Mobile columns */
    .hurricane-colour-swatches-grid[data-columns-mobile="2"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hurricane-colour-swatches-grid[data-columns-mobile="3"] {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .colour-swatch-box {
        width: 70px;
        height: 70px;
    }
    
    .colour-swatch-item .colour-name {
        font-size: 14px;
    }
    
    .colour-swatch-item .colour-ral {
        font-size: 11px;
    }
}
