/**
 * Wizard Component Styles
 * Generic wizard UI for multi-step processes
 */

.wizard-container {
    max-width: 900px;
    margin: 2rem auto;
}

.wizard-header {
    text-align: center;
    margin-bottom: 2rem;
}

.wizard-header h1 {
    margin-bottom: 0.5rem;
}

/* Step Indicators */
.wizard-step-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.wizard-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.wizard-step-indicator.active {
    opacity: 1;
}

.wizard-step-indicator.completed {
    opacity: 0.8;
}

.wizard-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.wizard-step-indicator.active .wizard-step-number {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.wizard-step-indicator.completed .wizard-step-number {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.wizard-step-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.wizard-step-indicator.active .wizard-step-label {
    color: var(--text-primary);
    font-weight: 600;
}

/* Wizard Content */
.wizard-content {
    min-height: 400px;
}

.wizard-step-content h2 {
    margin-bottom: 1rem;
}

/* Wizard Actions */
.wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.wizard-actions .btn {
    min-width: 120px;
}

/* Upload Areas */
.upload-box {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-secondary);
}

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

.upload-box.dragover {
    border-color: var(--primary);
    background: var(--primary-alpha-10);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-box p {
    margin: 0.5rem 0;
    color: var(--text-primary);
    font-weight: 500;
}

.upload-box small {
    color: var(--text-secondary);
}

/* Progress */
.progress {
    height: 20px;
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Resource List */
.resource-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.resource-icon {
    font-size: 1.5rem;
}

.resource-name {
    flex: 1;
    font-weight: 500;
}

.resource-size {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Tour Steps */
.tour-steps-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tour-step-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    background: var(--bg-secondary);
}

.tour-step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.tour-step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.tour-step-header strong {
    flex: 1;
}

.tour-step-preview {
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding-left: 2.5rem;
}

/* Summary Cards */
.summary-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
}

.summary-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.summary-table {
    width: 100%;
}

.summary-table td {
    padding: 0.5rem 0;
    vertical-align: top;
}

.summary-table td:first-child {
    width: 180px;
    color: var(--text-secondary);
}

/* Button Group */
.wizard-btn-group {
    display: flex;
    width: 100%;
}

.wizard-btn-group .btn {
    flex: 1;
    border-radius: 0;
}

.wizard-btn-group .btn:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.wizard-btn-group .btn:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* Video/YouTube Areas */
.video-upload-options {
    margin-top: 1.5rem;
}

.current-video-display {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    text-align: center;
}

.current-video-display video,
.current-video-display iframe {
    max-width: 100%;
    border-radius: 6px;
    margin: 1rem 0;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .wizard-step-indicators {
        gap: 0.5rem;
    }

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

    .wizard-step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

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

    .wizard-actions .btn {
        flex: 1;
        min-width: auto;
    }
}
