/* ===========================================
   SectorView Styles - Dark Theme (Match SprayWallView)
   =========================================== */

.sector-view {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--editor-bg, #1a1a2e);
  color: #fff;
  overflow: hidden;
}

/* ===================
   Loading & Error States
   =================== */

.sector-view--loading,
.sector-view--error {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  min-height: 300px;
  background: var(--editor-bg, #1a1a2e);
  color: #fff;
}

.sector-view--loading p,
.sector-view--error p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.sector-view--error button {
  background: var(--primary-color, #6c5ce7);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

.sector-view--error button:hover {
  background: var(--primary-hover, #5a4fcf);
}

/* Loading spinner */
.sector-view-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--primary-color, #6c5ce7);
  border-radius: 50%;
  animation: sector-spin 0.8s linear infinite;
}

@keyframes sector-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===================
   Desktop Layout (2-panel: main LEFT + sidebar RIGHT)
   =================== */

.sector-view--desktop {
  flex-direction: row;
}

/* Main content - LEFT panel */
.sector-view__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--editor-bg, #1a1a2e);
  overflow: hidden;
  position: relative;
  min-height: 0; /* Important for flex child to shrink properly */
}

/* Note: Desktop toolbar removed - search/filter/roulette now in SectorHeader (Phase 8) */

/* WallPreviewPanel fills remaining space */
.sector-view__main > .wall-preview-panel {
  flex: 1;
  min-height: 0;
  height: 100%;
  width: 100%;
}

/* Preview image */
.sector-view__preview {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.sector-view__preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* Empty state */
.sector-view__empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 2rem;
}

.sector-view__empty-state p {
  font-size: 1rem;
}

/* ===================
   Mobile Layout
   =================== */

.sector-view--mobile {
  flex-direction: column;
  position: relative;
}

.sector-view--mobile .sector-view__preview {
  flex: 1;
  min-height: 200px;
  max-height: 40vh;
}

.sector-view--mobile .sector-view__preview img {
  max-height: 100%;
}

/* Note: Mobile toolbar removed - search/filter/roulette now in SprayWallMobileNav (Phase 8) */

/* Space for bottom nav on mobile */
.sector-view--mobile {
  padding-bottom: 60px; /* Height of SprayWallMobileNav */
}
