/* ===== CSS Variables - Light Theme ===== */
:root {
    /* Primary colors - Blue brand color */
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #3B82F6;
    --primary-lighter: #60A5FA;
    --primary-bg: rgba(37, 99, 235, 0.08);
    --primary-bg-hover: rgba(37, 99, 235, 0.12);

    /* Gradient - Blue to Cyan */
    --gradient: linear-gradient(135deg, #2563EB 0%, #0EA5E9 100%);
    --gradient-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);

    /* Background & Surface - Light theme */
    --background: #F8FAFC;
    --surface: #FFFFFF;
    --surface-secondary: #F1F5F9;
    --surface-hover: #E2E8F0;
    --surface-active: #CBD5E1;

    /* Text colors */
    --text: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --text-dim: #94A3B8;
    --text-on-primary: #FFFFFF;

    /* Border colors */
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --border-focus: var(--primary);

    /* Semantic colors */
    --success: #10B981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --warning: #F59E0B;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --error: #EF4444;
    --error-bg: rgba(239, 68, 68, 0.1);
    --info: #0EA5E9;
    --info-bg: rgba(14, 165, 233, 0.1);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 24px;
    --spacing-2xl: 32px;

    /* Border radius */
    --radius-sm: 4px;
    --radius: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== App Layout ===== */
.app {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ===== Sidebar ===== */
.sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    color: white;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    color: var(--text);
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
}

.nav-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 8px 12px 12px;
}

.nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: 4px;
}

.nav-item:hover {
    background: var(--surface-secondary);
    color: var(--text);
}

.nav-item.active {
    background: var(--primary);
    color: var(--text-on-primary);
    box-shadow: var(--shadow);
}

.nav-item.active .nav-icon {
    color: var(--text-on-primary);
}

.nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--text-muted);
}

.nav-item:hover .nav-icon {
    color: var(--text);
}

/* Sidebar CTA */
.sidebar-cta {
    padding: 16px;
}

.cta-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--gradient-soft);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-lg);
}

.cta-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.cta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cta-text span {
    font-size: 12px;
    color: var(--text-secondary);
}

.cta-text a {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.cta-text a:hover {
    text-decoration: underline;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 12px 16px 16px;
    border-top: 1px solid var(--border);
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
}

.footer-link:hover {
    background: var(--surface-secondary);
    color: var(--text);
}

.footer-link svg {
    width: 16px;
    height: 16px;
}

/* ===== Main Content ===== */
.main {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--background);
}

/* ===== Playground Sections ===== */
.playground {
    display: none;
    flex-direction: column;
    height: 100%;
    padding: 32px 40px;
    overflow-y: auto;
}

.playground.active {
    display: flex;
}

/* Playground Header */
.playground-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    flex-shrink: 0;
}

.playground-title h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.playground-title p {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.6;
}

.playground-meta {
    display: flex;
    gap: 8px;
}

.meta-tag {
    padding: 6px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Playground Content */
.playground-content {
    flex: 1;
    display: flex;
    gap: 24px;
    min-height: 0;
}

/* Playground Actions */
.playground-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    margin-top: 24px;
    flex-shrink: 0;
}

.results-count {
    margin-right: auto;
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-on-primary);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface-secondary);
    border-color: var(--surface-active);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary-bg);
}

.btn-success {
    background: var(--success);
    color: var(--text-on-primary);
    box-shadow: var(--shadow);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
}

.btn-text:hover {
    text-decoration: underline;
}

.copy-btn {
    width: 100%;
    margin-top: 12px;
}

/* ===== Section Labels ===== */
.section-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Upload Areas ===== */
.upload-section {
    margin-bottom: 24px;
}

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.upload-area:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.upload-area svg {
    width: 40px;
    height: 40px;
    color: var(--primary);
    margin-bottom: 12px;
}

.upload-area span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.upload-hint {
    font-size: 13px !important;
    color: var(--text-muted) !important;
    margin-top: 4px;
}

.upload-area.compact {
    padding: 24px;
}

.upload-area.compact svg {
    width: 32px;
    height: 32px;
}

.upload-area.large {
    padding: 48px;
}

.upload-small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s ease;
}

.upload-small:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.upload-small svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.upload-small span {
    font-size: 13px;
    color: var(--text-secondary);
}

.upload-small.full-width {
    width: 100%;
}

/* ===== Color Swatches ===== */
.color-section {
    margin-bottom: 20px;
}

.color-swatches {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.swatch {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: var(--shadow-sm);
}

.swatch:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.swatch.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

/* ===== 1. Lookbook Layout ===== */
.lookbook-content {
    display: flex;
    gap: 24px;
}

.lookbook-left {
    width: 300px;
    flex-shrink: 0;
}

.lookbook-right {
    flex: 1;
}

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mockup-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mockup-preview {
    aspect-ratio: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.mockup-label {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
}

/* ===== 2. Wall Art Layout ===== */
.wallart-content {
    flex-direction: column;
}

.wallart-preview {
    flex: 1;
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 32px;
    min-height: 300px;
    box-shadow: var(--shadow);
}

.wallart-frame {
    width: 160px;
    height: 200px;
    background: var(--surface-secondary);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.wallart-frame:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.frame-content {
    text-align: center;
}

.frame-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.frame-label {
    font-size: 12px;
    color: var(--text-dim);
}

.wallart-controls {
    display: flex;
    gap: 16px;
    padding-top: 24px;
}

.panel-config {
    flex: 1;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.panel-number {
    width: 28px;
    height: 28px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
}

.panel-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

/* ===== 3. Studio Layout ===== */
.studio-content {
    gap: 24px;
}

.studio-preview {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: var(--radius-xl);
    min-height: 400px;
    box-shadow: var(--shadow);
}

.preview-mockup {
    width: 300px;
    height: 360px;
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.mockup-placeholder {
    text-align: center;
    color: var(--text-dim);
}

.mockup-placeholder svg {
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
    opacity: 0.5;
    color: var(--primary-lighter);
}

.mockup-placeholder span {
    font-size: 14px;
}

.studio-controls {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.control-section h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.control-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.control-row label {
    width: 80px;
    font-size: 12px;
    color: var(--text-muted);
}

.control-row input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    background: var(--surface-secondary);
    border-radius: var(--radius-full);
    cursor: pointer;
}

.control-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.range-value {
    width: 40px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
    font-weight: 500;
}

.select-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
}

.select-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.select-input.small {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
}

.text-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 14px;
    outline: none;
}

.text-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

/* ===== 4. Seasonal Layout ===== */
.seasonal-content {
    flex-direction: column;
    gap: 24px;
}

.season-toggle {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.season-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: var(--shadow-sm);
}

.season-btn svg {
    width: 20px;
    height: 20px;
}

.season-btn:hover {
    background: var(--surface-secondary);
    color: var(--text);
    box-shadow: var(--shadow);
}

.season-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.seasonal-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.seasonal-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.seasonal-preview {
    aspect-ratio: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.seasonal-badge {
    padding: 4px 10px;
    border-radius: var(--radius);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.seasonal-badge.summer {
    background: var(--warning-bg);
    color: var(--warning);
}

.seasonal-badge.winter {
    background: var(--info-bg);
    color: var(--info);
}

.seasonal-item > span {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
}

/* ===== 5. Colors Layout ===== */
.colors-content {
    gap: 24px;
}

.colors-left {
    width: 300px;
    flex-shrink: 0;
}

.colors-right {
    flex: 1;
}

.color-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
}

.color-check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s ease;
}

.color-check:hover {
    background: var(--surface-secondary);
}

.color-check.selected {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.color-check input {
    display: none;
}

.check-swatch {
    width: 24px;
    height: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.check-name {
    flex: 1;
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}

.check-mark {
    color: var(--primary);
    font-weight: 700;
    opacity: 0;
}

.color-check.selected .check-mark {
    opacity: 1;
}

.color-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

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

.color-preview-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.color-preview-box {
    aspect-ratio: 1;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.color-preview-item span {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
}

/* ===== 6. Personalization Layout ===== */
.personalization-content {
    gap: 24px;
}

.personalization-preview {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.preview-product {
    width: 280px;
    height: 340px;
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    box-shadow: var(--shadow-md);
}

.preview-artwork {
    width: 100px;
    height: 100px;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
}

.preview-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-muted);
    font-style: italic;
}

.personalization-controls {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.position-grid {
    display: flex;
    gap: 8px;
}

.position-btn {
    flex: 1;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}

.position-btn:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.position-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ===== 7. Lifestyle Layout ===== */
.lifestyle-content {
    flex-direction: column;
    gap: 24px;
}

.lifestyle-comparison {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.comparison-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.comparison-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-preview {
    width: 260px;
    height: 300px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.comparison-preview.lifestyle {
    background: var(--gradient-soft);
    border-color: var(--primary);
}

.boring-mockup, .lifestyle-mockup {
    text-align: center;
    color: var(--text-dim);
    font-size: 14px;
}

.comparison-arrow {
    color: var(--text-dim);
}

.comparison-arrow svg {
    width: 36px;
    height: 36px;
}

.lifestyle-scenes {
    padding: 24px;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

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

.scene-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px;
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.15s;
}

.scene-option:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.scene-option.active {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.scene-thumb {
    width: 52px;
    height: 52px;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.scene-option span {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== 8. Pattern Layout ===== */
.pattern-content {
    gap: 24px;
}

.pattern-preview {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.pattern-product {
    width: 300px;
    height: 340px;
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.pattern-tile-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    height: 100%;
}

.tile {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
}

.pattern-controls {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== 9. Print Layout ===== */
.print-content {
    gap: 24px;
}

.print-preview {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.print-mockup {
    width: 300px;
    height: 380px;
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.print-layer {
    padding: 6px 14px;
    border-radius: var(--radius);
    font-size: 11px;
    font-weight: 600;
}

.print-layer.bleed {
    background: var(--error-bg);
    color: var(--error);
    border: 1px dashed var(--error);
}

.print-layer.trim {
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid var(--info);
}

.print-layer.safe {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success);
}

.print-artwork {
    padding: 24px 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 12px;
    color: var(--text-dim);
}

.print-settings {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s;
}

.radio-option:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.radio-option.active {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.radio-option input {
    display: none;
}

.radio-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.radio-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
}

.checkbox-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* ===== 10. Catalog Layout ===== */
.catalog-content {
    gap: 24px;
}

.catalog-sidebar {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.search-box svg {
    width: 18px;
    height: 18px;
    color: var(--text-dim);
}

.search-box input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text);
    font-size: 14px;
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-dim);
}

.filter-section h4 {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s;
    font-size: 14px;
    color: var(--text-muted);
}

.filter-item:hover {
    background: var(--surface-secondary);
}

.filter-item.active {
    background: var(--primary-bg);
    color: var(--primary);
}

.filter-item input {
    display: none;
}

.filter-count {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-dim);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
}

.filter-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-tag.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.catalog-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-content: start;
}

.template-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: var(--shadow-sm);
}

.template-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.template-thumb {
    aspect-ratio: 1;
    background: var(--surface-secondary);
}

.template-info {
    padding: 12px;
}

.template-name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 2px;
}

.template-category {
    font-size: 11px;
    color: var(--text-dim);
}

/* ===== 11. Embed Layout ===== */
.embed-content {
    gap: 24px;
}

.embed-preview {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow);
}

.embed-frame {
    width: 100%;
    max-width: 520px;
    background: var(--surface-secondary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.embed-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.embed-dots {
    display: flex;
    gap: 8px;
}

.embed-dots span {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: var(--border);
}

.embed-dots span:nth-child(1) { background: #ff5f56; }
.embed-dots span:nth-child(2) { background: #ffbd2e; }
.embed-dots span:nth-child(3) { background: #27c93f; }

.embed-url {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: var(--text-dim);
}

.embed-body {
    padding: 20px;
}

.embedded-editor {
    display: flex;
    gap: 12px;
    height: 220px;
}

.editor-toolbar {
    width: 44px;
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tool-btn {
    width: 24px;
    height: 24px;
    background: var(--surface-secondary);
    border-radius: var(--radius);
}

.editor-canvas {
    flex: 1;
    background: var(--surface);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 13px;
}

.editor-sidebar {
    width: 88px;
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-item {
    height: 54px;
    background: var(--surface-secondary);
    border-radius: var(--radius);
}

.embed-code {
    width: 360px;
    flex-shrink: 0;
}

.code-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.code-tab {
    padding: 10px 18px;
    background: var(--surface-secondary);
    border: none;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.code-tab:hover {
    background: var(--surface-active);
}

.code-tab.active {
    background: #1e293b;
    color: white;
}

.code-block {
    background: #1e293b;
    border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
    padding: 20px;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 12px;
    line-height: 1.7;
}

.code-tag { color: #ff7b72; }
.code-attr { color: #79c0ff; }
.code-string { color: #a5d6ff; }
.code-func { color: #d2a8ff; }

/* ===== 12. Custom Mockup Layout ===== */
.custom-content {
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.custom-hero {
    text-align: center;
    max-width: 520px;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--gradient-soft);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: var(--radius-full);
    margin-bottom: 24px;
}

.ai-badge svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.ai-badge span {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.custom-hero h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.custom-hero p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

.custom-steps {
    display: flex;
    align-items: center;
    gap: 20px;
}

.custom-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 24px;
    background: var(--surface);
    border-radius: var(--radius-xl);
    width: 220px;
    box-shadow: var(--shadow);
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.step-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.step-content p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.step-arrow {
    color: var(--text-dim);
}

.step-arrow svg {
    width: 24px;
    height: 24px;
}

.custom-upload {
    width: 100%;
    max-width: 520px;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .seasonal-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .scene-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
        min-width: 240px;
    }

    .playground {
        padding: 24px 28px;
    }

    .mockup-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .embed-content {
        flex-direction: column;
    }

    .embed-code {
        width: 100%;
    }

    .custom-steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .playground-header {
        flex-direction: column;
        gap: 16px;
    }

    .playground-content {
        flex-direction: column;
    }

    .lookbook-left,
    .colors-left,
    .studio-controls,
    .personalization-controls,
    .pattern-controls,
    .print-settings,
    .catalog-sidebar {
        width: 100%;
    }

    .seasonal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wallart-preview {
        flex-direction: column;
    }

    .wallart-frame {
        width: 140px;
        height: 180px;
    }

    .lifestyle-comparison {
        flex-direction: column;
    }

    .comparison-arrow {
        transform: rotate(90deg);
    }
}
