/* Logo Builder Wizard Styles */

/* ─── Stepper ─────────────────────────────────────────────────── */
.logo-wizard-stepper {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 1rem 0;
    position: relative;
}

.logo-wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 140px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.logo-wizard-step.active,
.logo-wizard-step.completed {
    opacity: 1;
}

.logo-wizard-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    background: var(--bs-gray-200);
    color: var(--bs-gray-600);
    transition: all 0.2s;
    z-index: 1;
}

.logo-wizard-step.active .logo-wizard-step-num {
    background: var(--bs-primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), 0.2);
}

.logo-wizard-step.completed .logo-wizard-step-num {
    background: var(--bs-success);
    color: #fff;
}

.logo-wizard-step-label {
    font-size: 0.75rem;
    margin-top: 0.375rem;
    color: var(--bs-body-color);
    text-align: center;
    white-space: nowrap;
}

/* Connector lines between steps */
.logo-wizard-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px;
    left: calc(50% + 22px);
    width: calc(100% - 44px);
    height: 2px;
    background: var(--bs-gray-300);
    z-index: 0;
}

.logo-wizard-step.completed:not(:last-child)::after {
    background: var(--bs-success);
}

/* ─── Archetype Grid ──────────────────────────────────────────── */
.archetype-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.archetype-card {
    border: 2px solid var(--bs-border-color);
    border-radius: var(--bs-card-border-radius, 0.375rem);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bs-paper-bg, #fff);
}

.archetype-card:hover {
    border-color: var(--bs-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.archetype-card.selected {
    border-color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.05);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.15);
}

.archetype-card .archetype-preview {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    overflow: hidden;
    border-radius: 0.25rem;
    background: var(--bs-gray-100);
}

.archetype-card .archetype-preview svg {
    max-width: 100%;
    max-height: 100%;
}

.archetype-card .archetype-name {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.archetype-card .archetype-desc {
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
}

/* ─── Icon Generation ─────────────────────────────────────────── */
.icon-gen-panel {
    background: var(--bs-gray-100);
    border-radius: var(--bs-card-border-radius, 0.375rem);
    padding: 1.5rem;
}

.icon-gen-prompt {
    background: var(--bs-paper-bg, #fff);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    margin-bottom: 1rem;
}

.icon-gen-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.icon-result-card {
    border: 2px solid var(--bs-border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.icon-result-card:hover {
    border-color: var(--bs-primary);
}

.icon-result-card.selected {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.15);
}

.icon-result-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 0.5rem;
    background: #fff;
}

.gen-counter {
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
}

/* ─── Live Preview ────────────────────────────────────────────── */
.logo-preview-container {
    background: repeating-conic-gradient(#f0f0f0 0% 25%, #fff 0% 50%) 50% / 16px 16px;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.logo-preview-container svg {
    max-width: 100%;
    max-height: 400px;
}

.logo-preview-dark {
    background: #1a1a1a;
}

/* ─── Font Picker ─────────────────────────────────────────────── */
.font-option {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 0.25rem;
}

.font-option:hover {
    border-color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.03);
}

.font-option.selected {
    border-color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.08);
}

/* ─── Export Panel ────────────────────────────────────────────── */
.export-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}

.export-card {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
}

.export-card:hover {
    border-color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.03);
}

.export-card .export-size {
    font-size: 0.7rem;
    color: var(--bs-secondary-color);
    margin-top: 0.25rem;
}

/* ─── Generating Spinner ──────────────────────────────────────── */
.generating-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    z-index: 10;
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .archetype-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo-wizard-step-label {
        display: none;
    }

    .logo-wizard-step-num {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .icon-gen-results {
        grid-template-columns: 1fr;
    }

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