﻿/* Color Tuner App Scoped Styling */
.color-tuner-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background-color: var(--bg-base);
    color: var(--text-main);
    overflow: hidden;
}

@media (min-width: 768px) {
    .color-tuner-layout {
        flex-direction: row;
    }
}

/* Sidebar Controls */
.tuner-sidebar {
    width: 100%;
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-shrink: 0;
    overflow-y: auto;
}

@media (min-width: 768px) {
    .tuner-sidebar {
        width: 320px;
    }
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

    .sidebar-header h2 {
        font-size: 1.25rem;
        margin: 0;
        font-weight: 600;
    }

.tuner-control label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-base);
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

input[type="color"] {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    background: transparent;
}

    input[type="color"]::-webkit-color-swatch-wrapper {
        padding: 0;
    }

    input[type="color"]::-webkit-color-swatch {
        border: none;
        border-radius: 4px;
        box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
    }

select {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-base);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
}

    select:focus {
        border-color: var(--accent);
    }

.palette-preview label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.palette-swatches {
    display: flex;
    gap: 0.5rem;
    height: 40px;
}

.swatch {
    flex: 1;
    border-radius: 4px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}

.tuner-footer {
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

/* Wireframe Preview Area */
.tuner-preview-area {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    background: radial-gradient(circle at center, var(--bg-surface-hover) 0%, var(--bg-base) 100%);
}

.browser-frame {
    width: 100%;
    max-width: 900px;
    background-color: var(--t-surface, #ffffff);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: background-color 0.4s ease;
}

.browser-header {
    height: 40px;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 1rem;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

    .browser-dots span {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #555;
    }

        .browser-dots span:nth-child(1) {
            background: #ff5f56;
        }

        .browser-dots span:nth-child(2) {
            background: #ffbd2e;
        }

        .browser-dots span:nth-child(3) {
            background: #27c93f;
        }

.browser-url {
    background: #1a1a1a;
    color: #888;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 12px;
    flex: 1;
    text-align: center;
    max-width: 300px;
    margin: 0 auto;
}

/* The Mock Website utilizing generated custom properties */
.mock-website {
    color: var(--t-text, #333);
    background-color: var(--t-bg, #f8f9fa);
    font-family: system-ui, -apple-system, sans-serif;
    transition: all 0.4s ease;
}

.mw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: var(--t-surface, #fff);
    border-bottom: 2px solid var(--t-primary, #3b82f6);
}

.mw-logo {
    width: 40px;
    height: 40px;
    background-color: var(--t-primary, #3b82f6);
    border-radius: 8px;
}

.mw-nav {
    display: flex;
    gap: 1.5rem;
    font-weight: 500;
}

.mw-hero {
    padding: 5rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--t-bg, #f8f9fa) 0%, var(--t-surface, #fff) 100%);
}

.mw-h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--t-text, #111);
}

.mw-p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    opacity: 0.8;
}

.mw-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.mw-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.mw-btn-primary {
    background-color: var(--t-primary, #3b82f6);
    color: #fff; /* Primary buttons typically look best with white text */
}

.mw-btn-secondary {
    background-color: var(--t-secondary, #10b981);
    color: #fff;
}

.mw-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    background-color: var(--t-surface, #fff);
}

.mw-card {
    padding: 2rem;
    background-color: var(--t-bg, #f8f9fa);
    border-radius: 12px;
    border-top: 4px solid var(--t-accent, #8b5cf6);
    text-align: center;
}

.mw-card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.mw-card h3 {
    margin-bottom: 0.5rem;
}

.mw-footer {
    padding: 2rem;
    text-align: center;
    background-color: var(--t-text, #111);
    color: var(--t-surface, #fff);
}
