/* Color Harmony Generator Styles */

.harmony-preview {
    height: 60px;
    border-radius: 10px;
    border: 1px solid var(--bs-border-color);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.steps-display {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.steps-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 32px;
    border-radius: 16px;
    background: var(--bs-secondary-bg);
    font-weight: 600;
    font-size: 16px;
    padding: 0 12px;
}

.harmony-section {
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    padding: 16px;
    background: var(--bs-body-bg);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.harmony-section + .harmony-section {
    margin-top: 16px;
}

.harmony-section:hover {
    border-color: rgba(5, 44, 101, 0.25);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.harmony-swatches {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.color-swatch {
    position: relative;
    border-radius: 12px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.color-swatch:hover,
.color-swatch:focus {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
    outline: none;
}

.color-swatch:focus-visible {
    outline: 2px solid #052c65;
    outline-offset: 2px;
}

.swatch-hex {
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.swatch-label {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .harmony-preview {
        height: 48px;
    }

    .color-swatch {
        padding: 20px 12px;
    }

    .swatch-hex {
        font-size: 14px;
    }

    .swatch-label {
        font-size: 12px;
    }
}

[data-bs-theme="dark"] .harmony-section {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] .harmony-section:hover {
    border-color: rgba(110, 168, 254, 0.5);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

[data-bs-theme="dark"] .color-swatch {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .color-swatch:hover,
[data-bs-theme="dark"] .color-swatch:focus {
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.55);
}
