/* Advoke CV — Editor Panel (Content Container) */

.editor-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background-color: var(--white);
  overflow: hidden;
}

.editor-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-4);
  border-bottom: 1px solid var(--color-border-subtle);
  background-color: var(--white);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 2;
}

@media (min-width: 768px) {
  .editor-panel__header {
    padding: var(--space-4) var(--space-6);
  }
}

.editor-panel__header-title {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
  flex: 1 1 auto;
}

.editor-panel__title {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0;
}

.editor-panel__subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.4;
  margin: 0;
  max-width: 52ch;
}

.editor-panel__header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-shrink: 0;
}

.editor-panel__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-4) var(--space-4) var(--space-8);
}

@media (min-width: 768px) {
  .editor-panel__body {
    padding: var(--space-5) var(--space-6) var(--space-10);
  }
}

.editor-panel__body::-webkit-scrollbar {
  width: 8px;
}

.editor-panel__body::-webkit-scrollbar-track {
  background: transparent;
}

.editor-panel__body::-webkit-scrollbar-thumb {
  background-color: var(--color-border-strong);
  border-radius: var(--radius-full);
  border: 2px solid var(--white);
}

.editor-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border-subtle);
  background-color: var(--color-bg-subtle);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .editor-panel__footer {
    padding: var(--space-3) var(--space-6);
  }
}

.editor-panel__footer-info {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
}

.editor-panel__footer-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .editor-panel__footer {
    flex-direction: column;
    align-items: stretch;
  }
  .editor-panel__footer-actions .btn {
    width: 100%;
  }
}

.editor-panel__heading-actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.editor-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition-colors);
}

.editor-panel__close:hover {
  background-color: var(--color-accent-tint);
  color: var(--color-text);
}

.editor-panel__close svg {
  width: 16px;
  height: 16px;
}

.editor-panel__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-10) var(--space-4);
  text-align: center;
}

.editor-panel__empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--color-accent-soft);
  color: var(--color-accent-active);
}

.editor-panel__empty-icon svg {
  width: 24px;
  height: 24px;
}

.editor-panel__empty-title {
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin: 0;
}

.editor-panel__empty-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
  max-width: 32ch;
  line-height: 1.5;
}

.editor-panel__hint {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3);
  background-color: var(--color-accent-tint);
  border: 1px solid var(--yellow-200);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.editor-panel__hint-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-accent-active);
  margin-top: 2px;
}

.editor-panel__hint strong {
  color: var(--color-text);
  font-weight: var(--font-weight-semibold);
}

@media (prefers-reduced-motion: reduce) {
  .editor-panel__close {
    transition: none;
  }
}