/* Create View Styles */
/* El offset del sidebar lo aplica #app-container. */
.create-container {
    min-height: calc(100vh - 48px);
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    margin-left: 0;
    background: var(--bg-primary);
    padding-top: calc(48px + 2rem);
}

/* En móvil, el sidebar se oculta y el contenido ocupa todo el ancho */
@media (max-width: 768px) {
    .create-container {
        margin-left: 0;
        padding: 1rem;
        padding-top: calc(48px + 1rem);
    }
}

.create-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.create-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.create-mode-selector {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.mode-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mode-btn:hover {
    color: var(--text-primary);
    background: rgba(236, 235, 218, 0.1);
}

.mode-btn.active {
    background: var(--bg-interactive);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.create-mode-content {
    display: none;
}

.create-mode-content.active {
    display: block;
}

.guided-wizard {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.wizard-step {
    display: none;
}

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

.wizard-step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.wizard-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.pro-editor {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.editor-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.editor-section label {
    color: var(--text-primary);
    font-weight: 500;
}

.form-textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-dark);
    border: 1px solid rgba(236, 235, 218, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    resize: vertical;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.template-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.template-card:hover {
    border-color: var(--accent-yellow);
    background: var(--bg-hover);
    transform: translateY(-2px);
}

.template-card i {
    font-size: 3rem;
    color: var(--accent-yellow);
    margin-bottom: 1rem;
}

.template-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

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

@media (max-width: 768px) {
    .create-container {
        padding: 1rem;
    }

    .create-mode-selector {
        width: 100%;
        flex-direction: column;
    }
}
