.editor-container { max-width: 1200px; margin: 0 auto; padding-bottom: 2rem; } .loading-container { display: flex; justify-content: center; padding: 4rem; } .editor-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; padding: 1rem; background-color: #f5f5f5; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); > div { display: flex; align-items: center; gap: 1rem; } h2 { margin: 0; font-size: 1.5rem; font-weight: 500; color: #333; } .save-indicator { color: #1976d2; font-size: 0.875rem; font-style: italic; font-weight: 500; } button mat-icon { margin-right: 0.5rem; } } .editor-tabs { ::ng-deep { .mat-mdc-tab-body-content { overflow: visible; } } } .tab-content { padding: 2rem 1rem; display: flex; flex-direction: column; gap: 1.5rem; background-color: #fff; border-radius: 0 0 8px 8px; gap: 1.5rem; .full-width { width: 100%; } .half-width { flex: 1; } .form-row { display: flex; gap: 1rem; align-items: center; } } // Images Tab .images-section { .upload-area { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; .upload-label { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; background: #1976d2; color: white; border-radius: 4px; cursor: pointer; transition: background-color 0.2s; &:hover { background: #1565c0; } } } .images-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; } .image-card { position: relative; border: 2px solid #e0e0e0; border-radius: 8px; overflow: hidden; cursor: move; transition: all 0.2s; &.cdk-drag-preview { opacity: 0.8; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); } &.cdk-drag-animating { transition: transform 250ms cubic-bezier(0, 0, 0.2, 1); } .drag-handle { position: absolute; top: 8px; left: 8px; background: rgba(0, 0, 0, 0.6); color: white; border-radius: 4px; padding: 4px; display: flex; align-items: center; justify-content: center; cursor: move; z-index: 10; mat-icon { font-size: 20px; width: 20px; height: 20px; } } aspect-ratio: 1; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); img { width: 100%; height: 100%; object-fit: cover; } .remove-btn { position: absolute; top: 0.5rem; right: 0.5rem; background: rgba(244, 67, 54, 0.9); color: white; &:hover { background: rgb(244, 67, 54); } } .image-order { position: absolute; bottom: 0.5rem; left: 0.5rem; background: rgba(0, 0, 0, 0.7); color: white; padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.75rem; } } .empty-images { display: flex; flex-direction: column; align-items: center; padding: 4rem; color: #999; mat-icon { font-size: 64px; width: 64px; height: 64px; margin-bottom: 1rem; } } } // Tags Tab .tags-section { .add-tag-form { display: flex; gap: 1rem; margin-bottom: 2rem; .tag-input { flex: 1; } } .tags-list { display: flex; flex-wrap: wrap; gap: 0.5rem; mat-chip { font-size: 0.875rem; } } } // Description Tab .description-section { h3 { margin: 0 0 0.5rem 0; font-size: 1.125rem; font-weight: 500; } .hint { margin: 0 0 1.5rem 0; color: #666; font-size: 0.875rem; } .add-desc-form { display: flex; gap: 1rem; margin-bottom: 2rem; mat-form-field { flex: 1; } } .desc-fields-list { display: flex; flex-direction: column; gap: 1rem; } .desc-field-row { display: flex; gap: 1rem; align-items: center; mat-form-field { flex: 1; } } } // Comments Tab .comments-section { .comments-list { display: flex; flex-direction: column; gap: 1rem; } .comment-card { padding: 1rem; background: #f5f5f5; border-radius: 8px; .comment-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; > div { display: flex; flex-direction: column; gap: 0.25rem; } strong { color: #333; } .comment-stars { display: flex; gap: 2px; .star-icon { font-size: 16px; width: 16px; height: 16px; color: #ffa726; &.filled { color: #ff9800; } } } .comment-date { color: #999; font-size: 0.875rem; } } p { margin: 0; color: #666; } } } .empty-state { display: flex; flex-direction: column; align-items: center; padding: 3rem; color: #999; mat-icon { font-size: 48px; width: 48px; height: 48px; margin-bottom: 1rem; } p { margin: 0; font-size: 1rem; } }