/* Color Mixer - Specific Styles */

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

.mixer-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;
}

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

/* Mixer Section */
.mixer-section {
    margin-bottom: 60px;
}

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

/* Color Selection Grid */
.color-selection-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
}

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

.color-input-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.color-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.color-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-random {
    padding: 6px 14px;
    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;
}

.color-preview-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 4px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: background-color 0.3s ease;
}

.color-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.color-picker-native {
    width: 50px;
    height: 50px;
    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: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
    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);
}

.color-formats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.format-tag {
    padding: 6px 12px;
    background: var(--background-secondary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Mix Icon */
.mix-icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mix-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    border-radius: 50%;
    color: white;
}

.mix-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* Ratio Section */
.ratio-section {
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.ratio-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.ratio-slider-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}

.ratio-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 24px;
}

.ratio-slider {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--primary-color) 50%, var(--border-color) 50%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

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

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

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

.ratio-values {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.ratio-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 50px;
}

/* Result Section */
.result-section {
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
}

.result-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.result-display {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 24px;
}

.result-color-preview {
    width: 180px;
    height: 180px;
    border-radius: var(--radius);
    border: 4px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
}

.result-info {
    flex: 1;
    text-align: left;
}

.result-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.result-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 50px;
}

.result-value {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.copy-btn-small {
    padding: 8px 16px;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

.copy-btn-small.copied {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

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

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

.mixer-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;
}

/* Blend Modes Section */
.blend-modes-section {
    margin-bottom: 60px;
}

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

.blend-modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.blend-mode-card {
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blend-mode-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.blend-mode-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    box-shadow: var(--shadow);
}

.blend-mode-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.blend-mode-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .color-selection-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mix-icon-container {
        flex-direction: row;
        justify-content: center;
    }

    .result-display {
        flex-direction: column;
        gap: 20px;
    }

    .result-color-preview {
        width: 100%;
        height: 200px;
    }

    .result-info {
        text-align: center;
    }

    .result-row {
        justify-content: center;
    }

    .ratio-slider-container {
        gap: 12px;
    }

    .blend-modes-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation */
@keyframes colorPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.color-preview-circle {
    animation: colorPulse 2s ease-in-out infinite;
}
