/* Color Picker Styles */

/* Current color display next to title */
.current-color-display {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.current-color {
    color: var(--theme-color);
    font-weight: bold;
    letter-spacing: 1px;
}

/* Action buttons row (3 columns) */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}


/* Color section in dropdown */
.color-section {
    margin-top: 16px;
    margin-bottom: 10px;
    padding-top: 16px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

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

.color-section-title {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--theme-color);
    text-shadow: 0 0 10px var(--theme-glow);
}

.color-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.color-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 16px;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.color-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.color-option:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.color-option.active {
    border-color: var(--theme-color);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.5), 0 0 10px var(--theme-glow);
    background: rgba(255, 255, 255, 0.1);
}

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

/* Animated noise pattern for swatches using canvas animation */
.color-swatch canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.color-swatch .swatch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: multiply;
}

.color-swatch.rainbow {
    background: linear-gradient(90deg, 
        #ff0000 0%, 
        #ff8800 16%, 
        #ffff00 33%, 
        #00ff00 50%, 
        #0088ff 66%, 
        #aa00ff 83%, 
        #ff0088 100%
    );
}


/* Color Overlay */
.color-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: multiply;
    opacity: 0.5;
    transition: background 0.5s ease;
}

.color-overlay.rainbow {
    background: linear-gradient(45deg, 
        #ff0000 0%, 
        #ff8800 14%, 
        #ffff00 28%, 
        #00ff00 42%, 
        #0088ff 57%, 
        #aa00ff 71%, 
        #ff0088 85%,
        #ff0000 100%
    );
    background-size: 400% 400%;
    animation: rainbow-shift 10s ease infinite;
}

@keyframes rainbow-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 1+ Experimental Section */
.oneplus-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.oneplus-section-header {
    margin-bottom: 12px;
}

.oneplus-section-title {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--theme-color);
    text-shadow: 0 0 10px var(--theme-glow);
}

.oneplus-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* Blend Controls Section */
.blend-section {
    margin-top: 16px;
    margin-bottom: 10px;
    padding-top: 16px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.blend-section.hidden {
    display: none;
}

.blend-section-header {
    margin-bottom: 16px;
}

.blend-section-title {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--theme-color);
    text-shadow: 0 0 10px var(--theme-glow);
}

.blend-layer-control {
    margin-bottom: 12px;
}

.blend-label {
    display: block;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.blend-intensity-value {
    float: right;
    color: var(--theme-color);
    font-weight: bold;
}

.blend-select {
    width: 100%;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.blend-select:hover {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.blend-select:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.blend-select:focus {
    outline: none;
    border-color: var(--theme-color);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.5), 0 0 10px var(--theme-glow);
}

.blend-select option {
    background: #1a1a1a;
    color: #fff;
    padding: 8px;
}

.blend-intensity-control {
    margin-top: 16px;
}

.blend-intensity-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, transparent 0%, var(--theme-color) 100%);
    border-radius: 4px;
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.blend-intensity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--theme-color);
    cursor: pointer;
    box-shadow: 0 0 10px var(--theme-glow), 0 2px 4px rgba(0, 0, 0, 0.5);
    border: 2px solid #000;
    transition: all 0.2s ease;
}

.blend-intensity-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--theme-glow), 0 3px 6px rgba(0, 0, 0, 0.7);
}

.blend-intensity-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--theme-color);
    cursor: pointer;
    box-shadow: 0 0 10px var(--theme-glow), 0 2px 4px rgba(0, 0, 0, 0.5);
    border: 2px solid #000;
    transition: all 0.2s ease;
}

.blend-intensity-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--theme-glow), 0 3px 6px rgba(0, 0, 0, 0.7);
}

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

