/* Color Adjuster - Specific Styles */

.adjuster-hero {
    text-align: center;
    margin-bottom: 40px;
}

.adjuster-hero h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.adjuster-hero p {
    font-size: 18px;
    color: var(--text-secondary);
}

/* Adjuster Section */
.adjuster-section {
    margin-bottom: 60px;
}

.adjuster-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Color Input Section */
.color-input-section {
    margin-bottom: 30px;
}

.color-input-card {
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
}

.color-input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.color-input-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.color-picker-native {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: none;
    padding: 0;
}

.color-picker-native::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker-native::-webkit-color-swatch {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.color-picker-native::-moz-color-swatch {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.color-text-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 18px;
    font-weight: 600;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: var(--background);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.color-text-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Preview Section */
.preview-section {
    margin-bottom: 40px;
}

.preview-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.preview-half {
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.preview-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.preview-color {
    width: 100%;
    height: 150px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.preview-values {
    text-align: left;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
}

.value-row {
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.value-row:last-child {
    border-bottom: none;
}

/* Adjustment Controls */
.adjustment-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.control-group {
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
}

.control-group h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.slider-control {
    margin-bottom: 24px;
}

.slider-control:last-child {
    margin-bottom: 0;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.slider-header label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.slider-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    min-width: 60px;
    text-align: right;
}

.adjuster-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--background-secondary);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.adjuster-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.2s ease;
}

.adjuster-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.adjuster-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Special slider colors */
.hue-slider {
    background: linear-gradient(to right, 
        hsl(0, 100%, 50%), 
        hsl(60, 100%, 50%), 
        hsl(120, 100%, 50%), 
        hsl(180, 100%, 50%), 
        hsl(240, 100%, 50%), 
        hsl(300, 100%, 50%), 
        hsl(360, 100%, 50%)
    );
}

.saturation-slider {
    background: linear-gradient(to right, 
        hsl(0, 0%, 50%), 
        hsl(0, 100%, 50%)
    );
}

.lightness-slider {
    background: linear-gradient(to right, 
        rgb(0, 0, 0), 
        rgb(128, 128, 128), 
        rgb(255, 255, 255)
    );
}

.red-slider {
    background: linear-gradient(to right, 
        rgb(0, 0, 0), 
        rgb(255, 0, 0)
    );
}

.green-slider {
    background: linear-gradient(to right, 
        rgb(0, 0, 0), 
        rgb(0, 255, 0)
    );
}

.blue-slider {
    background: linear-gradient(to right, 
        rgb(0, 0, 0), 
        rgb(0, 0, 255)
    );
}

.opacity-slider {
    background: linear-gradient(to right, 
        transparent, 
        var(--primary-color)
    );
}

.contrast-slider {
    background: linear-gradient(to right, 
        rgb(128, 128, 128), 
        rgb(255, 255, 255)
    );
}

/* Result Actions */
.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-random {
    padding: 8px 16px;
    font-size: 13px;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-random:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Info Section */
.adjuster-info-section {
    margin-bottom: 60px;
}

.adjuster-info-section h3 {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.info-card {
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.info-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.info-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.info-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .adjuster-hero h2 {
        font-size: 28px;
    }

    .preview-comparison {
        grid-template-columns: 1fr;
    }

    .adjustment-controls {
        grid-template-columns: 1fr;
    }

    .color-input-row {
        flex-direction: column;
    }

    .color-picker-native {
        width: 100%;
        height: 50px;
    }

    .result-actions {
        flex-direction: column;
    }

    .result-actions .btn {
        width: 100%;
    }
}

/* Animation */
@keyframes colorTransition {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.preview-color {
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.adjuster-slider::-webkit-slider-thumb {
    animation: colorTransition 2s ease-in-out infinite;
}
