/* wb.css - Fixed Website Builder Styles */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Main container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Main content */
main {
    background: white;
    margin: 20px 0;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Color controls */
.color-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.color-preview {
    width: 120px;
    height: 80px;
    border: 3px solid #333;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #ffffff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.color-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.color-preview::after {
    content: attr(data-color);
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(255,255,255,0.9);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-family: monospace;
}

/* Color bar */
.color-bar {
    width: 100%;
    height: 30px;
    background: linear-gradient(to right, red, yellow, green, cyan, blue, magenta, red);
    border-radius: 15px;
    cursor: pointer;
    margin: 15px 0;
    border: 2px solid #333;
    transition: transform 0.2s ease;
}

.color-bar:hover {
    transform: scale(1.02);
}

/* Color inputs */
input[type="color"] {
    width: 60px;
    height: 40px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

input[type="color"]:hover {
    transform: scale(1.1);
}

/* Sliders */
.slider-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.slider-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-label {
    min-width: 50px;
    font-weight: bold;
    color: #555;
}

input[type="range"] {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: #ddd;
    outline: none;
    transition: background 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    transition: background 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #5a6fd8;
    transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
}

.slider-value {
    min-width: 40px;
    text-align: right;
    font-family: monospace;
    font-weight: bold;
    color: #333;
}

/* Red slider specific */
#red-slider {
    background: linear-gradient(to right, #000000, #ff0000);
}

/* Green slider specific */
#green-slider {
    background: linear-gradient(to right, #000000, #00ff00);
}

/* Blue slider specific */
#blue-slider {
    background: linear-gradient(to right, #000000, #0000ff);
}

/* Color display */
.color-display {
    font-family: monospace;
    font-size: 1.2rem;
    padding: 10px 15px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    margin: 10px 0;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 20px;
    }
    
    .color-container {
        flex-direction: column;
    }
    
    .slider-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .slider-label {
        min-width: auto;
        margin-bottom: 5px;
    }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}