/* Blend Mode Tester Styles */
.blend-mode-tester {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.preview-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.blend-container {
    position: relative;
    width: 100%;
    height: 400px;
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
}

.base-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #3366ff;
}

.blend-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ff3366;
    mix-blend-mode: normal;
    opacity: 1;
}

.controls-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
    overflow-y: auto;
    max-height: 800px;
}

.blend-modes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.blend-modes-grid .btn {
    text-align: left;
    text-transform: capitalize;
}

#css-code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 0;
    min-height: 80px;
}

.example-container {
    text-align: center;
}

.example-blend {
    position: relative;
    width: 100%;
    height: 120px;
    margin-bottom: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.example-blend-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.example-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: capitalize;
}

/* Pattern styles */
.blend-container.checker-pattern .base-layer {
    background-image: 
        linear-gradient(45deg, #3366ff 25%, transparent 25%),
        linear-gradient(-45deg, #3366ff 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #3366ff 75%),
        linear-gradient(-45deg, transparent 75%, #3366ff 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.blend-container.checker-pattern .blend-layer {
    background-image: 
        linear-gradient(45deg, #ff3366 25%, transparent 25%),
        linear-gradient(-45deg, #ff3366 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ff3366 75%),
        linear-gradient(-45deg, transparent 75%, #ff3366 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.blend-container.stripes-pattern .base-layer {
    background-image: linear-gradient(45deg, #3366ff 25%, transparent 25%, transparent 50%, #3366ff 50%, #3366ff 75%, transparent 75%);
    background-size: 20px 20px;
}

.blend-container.stripes-pattern .blend-layer {
    background-image: linear-gradient(45deg, #ff3366 25%, transparent 25%, transparent 50%, #ff3366 50%, #ff3366 75%, transparent 75%);
    background-size: 20px 20px;
}

.blend-container.dots-pattern .base-layer {
    background-image: radial-gradient(#3366ff 20%, transparent 20%);
    background-size: 20px 20px;
}

.blend-container.dots-pattern .blend-layer {
    background-image: radial-gradient(#ff3366 20%, transparent 20%);
    background-size: 20px 20px;
}

/* Gradient styles */
.blend-container.gradient-base .base-layer {
    background: linear-gradient(135deg, #3366ff, #33ffcc);
}

.blend-container.gradient-blend .blend-layer {
    background: linear-gradient(135deg, #ff3366, #ffcc33);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blend-container {
        height: 300px;
    }
    
    .controls-container {
        max-height: none;
    }
    
    .blend-modes-grid {
        grid-template-columns: 1fr;
    }
}