/* ===== create_motion.css — Premium Glassmorphic Wizard Styles ===== */

:root {
    --bg-dark: #09090b;
    --bg-dark-elevated: #18181b;
    --border-glass: rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);
    --text-muted: #a1a1aa;
}

body {
    background: var(--bg-dark);
    color: #f4f4f5;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
}

/* Wizard Container */
.wizard-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-dark-elevated);
    border-left: 1px solid var(--border-glass);
    border-right: 1px solid var(--border-glass);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
}

/* Floating ambient glow orbs */
.ambient-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}
.glow-1 {
    background: radial-gradient(circle, #7C3AED 0%, transparent 70%);
    top: -50px;
    right: -50px;
}
.glow-2 {
    background: radial-gradient(circle, #2563EB 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
}

/* Header */
.wizard-header {
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(9, 9, 11, 0.4);
    backdrop-filter: blur(12px);
    z-index: 10;
}

.back-link {
    text-decoration: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: color 0.2s;
    width: 100px;
}
.back-link:hover {
    color: #ffffff;
}

.progress-container {
    flex: 1;
    max-width: 600px;
    margin: 0 20px;
}

.steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.step.active {
    color: #a78bfa;
}
.step.completed {
    color: #34d399;
}

.progress-bar-bg {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #7C3AED 0%, #2563EB 100%);
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-spacer {
    width: 100px;
}

/* Main Content Area */
.wizard-content {
    flex: 1;
    overflow-y: auto;
    padding: 40px 48px;
    position: relative;
    z-index: 5;
}

.wizard-step {
    display: none;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    animation: stepFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-step.active {
    display: block;
}

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

.step-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
    text-align: center;
}

.step-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 36px;
    text-align: center;
}

/* Step 1: Website Extract Styles */
.website-input-group {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 32px;
}

.website-input-group input {
    flex: 1;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 14px 20px;
    border-radius: 12px;
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}

.website-input-group input:focus {
    border-color: #7C3AED;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

.website-input-group button {
    padding: 0 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7C3AED 0%, #2563EB 100%);
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 15px;
}

.website-input-group button:hover {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

/* Scanner Loading Panel */
.scanner-container {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 32px;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    position: relative;
    overflow: hidden;
}

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

.scanner-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(124, 58, 237, 0.2);
    border-top: 3px solid #7C3AED;
    border-radius: 50%;
    animation: scanSpinner 1s linear infinite;
}

@keyframes scanSpinner {
    to { transform: rotate(360deg); }
}

.scanner-title {
    font-weight: 600;
    font-size: 16px;
}

.scanner-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scanner-step {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 14px;
}

.scanner-step.active {
    color: #ffffff;
}

.scanner-step.completed {
    color: #34d399;
}

.scanner-step .icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.scanner-step.completed .icon::before {
    content: "✓";
}

/* Simulated Extraction Results */
.extraction-results {
    animation: stepFadeIn 0.4s ease;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.extracted-section-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 12px;
}

.brand-kit-preview {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.color-swatch-row {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.color-swatch-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.color-swatch {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.color-label {
    font-size: 11px;
    color: var(--text-muted);
}

.brand-identity-row {
    display: flex;
    gap: 24px;
    align-items: center;
}

.logo-preview-card {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-preview-card img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.meta-details {
    flex: 1;
}

.meta-title {
    font-weight: 600;
    font-size: 16px;
    color: white;
}

.meta-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Step 2: Assets Upload */
.upload-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

.asset-dropzone {
    border: 2px dashed var(--border-glass);
    background: var(--bg-glass);
    border-radius: 16px;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 250px;
}

.asset-dropzone.dragover {
    border-color: #7C3AED;
    background: rgba(124, 58, 237, 0.05);
}

.dropzone-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.dropzone-text {
    font-weight: 600;
    margin-bottom: 8px;
}

.dropzone-subtext {
    font-size: 13px;
    color: var(--text-muted);
}

.link-assets-panel {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 24px;
    text-align: left;
}

.link-assets-panel h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.link-assets-panel p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.link-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link-input-group input {
    background: rgba(9, 9, 11, 0.5);
    border: 1px solid var(--border-glass);
    padding: 12px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    outline: none;
}

.link-input-group input:focus {
    border-color: #7C3AED;
}

.link-input-group button {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--border-glass);
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.link-input-group button:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Uploaded Files Grid */
.uploaded-assets-section {
    margin-top: 24px;
    text-align: left;
}

.assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.asset-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    aspect-ratio: 1;
    justify-content: center;
}

.asset-card-icon {
    font-size: 24px;
}

.asset-card-name {
    font-size: 11px;
    color: white;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asset-card-delete {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asset-card-delete:hover {
    background: #ef4444;
    color: white;
}

/* Step 3: Brand Kit selector */
.brand-kit-config {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
}

.config-form {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

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

.preset-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 13px;
    text-align: center;
}

.preset-card:hover {
    background: var(--bg-glass-hover);
    border-color: rgba(124, 58, 237, 0.4);
}

.preset-card.selected {
    border-color: #7C3AED;
    background: rgba(124, 58, 237, 0.1);
    color: #a78bfa;
}

.color-pickers-row {
    display: flex;
    gap: 12px;
}

.picker-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.picker-label {
    font-size: 11px;
    color: var(--text-muted);
}

.picker-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 8px;
    border-radius: 8px;
}

.picker-wrapper input[type="color"] {
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
}

.picker-wrapper input[type="text"] {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    font-size: 13px;
    outline: none;
}

/* Preview side panel */
.preview-panel {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.preview-mock-card {
    aspect-ratio: 1.6;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    background: #09090b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: background 0.3s;
}

.preview-mock-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
    transition: color 0.3s;
}

.preview-mock-desc {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.preview-mock-logo {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-mock-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* Footer Section */
.wizard-footer {
    padding: 20px 40px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(9, 9, 11, 0.4);
    backdrop-filter: blur(12px);
    z-index: 10;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-primary {
    background: linear-gradient(135deg, #7C3AED 0%, #2563EB 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    box-shadow: 0 0 24px rgba(124, 58, 237, 0.4);
}

/* Demo Assets Selection Styles */
.demo-assets-section {
    margin-top: 32px;
    text-align: left;
}

.demo-videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 12px;
}

.demo-video-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-video-card:hover {
    background: var(--bg-glass-hover);
    border-color: rgba(124, 58, 237, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.demo-video-thumb {
    aspect-ratio: 1.6;
    border-radius: 8px;
    background: var(--brand-grad, linear-gradient(135deg, #7C3AED, #2563EB));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.2);
}

.demo-video-thumb .play-arrow {
    font-size: 20px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
    backdrop-filter: blur(4px);
    padding-left: 2px;
}

.demo-video-card:hover .play-arrow {
    transform: scale(1.15);
    background: rgba(0, 0, 0, 0.75);
}

.demo-brand-pill {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-video-title {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

/* ── Brand Kit Advanced Options ── */
.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.chip {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.chip:hover {
    border-color: rgba(124,58,237,0.5);
    color: rgba(255,255,255,0.85);
    background: rgba(124,58,237,0.08);
}

.chip.selected {
    border-color: #7C3AED;
    background: rgba(124,58,237,0.2);
    color: #ffffff;
}

.advanced-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    width: 100%;
}

.advanced-toggle:hover {
    border-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.03);
}

#advanced-options {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
