/* views/support/css/support.css */

/* ── Shell Layout ────────────────────────────────────────── */

.support-shell {
  display: flex;
  height: 100%;
  overflow: hidden;
}

/* ── Sidebar ─────────────────────────────────────────────── */

.support-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: var(--space-4) 0;
}

.support-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: 0 var(--space-3);
}

.support-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  color: var(--text2);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition:
    background var(--transition-fast),
    color var(--transition-fast);
  width: 100%;
}

.support-nav-item:hover {
  background: var(--bg3);
  color: var(--text);
}

.support-nav-item.active {
  background: var(--bg3);
  color: var(--accent);
  border-left: 2px solid var(--accent);
}

.support-nav-icon {
  font-size: 12px;
  width: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}

/* ── Content ─────────────────────────────────────────────── */

.support-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6) var(--space-6);
}

/* ── Views ───────────────────────────────────────────────── */

.support-view {
  display: none;
}

.support-view.active {
  display: block;
}

/* ── View Header ─────────────────────────────────────────── */

.support-view-header {
  margin-bottom: var(--space-6);
}

.support-view-title {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-1);
}

.support-view-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text3);
}

.support-view-sub--red {
  color: var(--red);
}

/* ── Guides Grid ─────────────────────────────────────────── */

.support-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
}

.support-guide-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.support-guide-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.support-guide-thumb {
  background: var(--bg3);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.support-guide-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

.support-guide-card:hover .support-guide-play {
  opacity: 0.85;
  transform: scale(1.08);
}

.support-guide-info {
  padding: var(--space-4);
}

.support-guide-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-1);
}

.support-guide-desc {
  font-size: 12px;
  color: var(--text3);
  font-family: var(--font-body);
}

/* ── Form Wrap ───────────────────────────────────────────── */

.support-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.support-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* ── Form Groups ─────────────────────────────────────────── */

.support-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.support-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.support-req {
  color: var(--red);
  font-size: 10px;
}

.support-opt {
  color: var(--text3);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* ── Inputs ──────────────────────────────────────────────── */

.support-input {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 0.75rem 1rem;
  width: 100%;
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  resize: none;
}

.support-input:hover:not(:focus) {
  border-color: var(--border-active);
}

.support-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.support-input::placeholder {
  color: var(--text3);
}

.support-textarea {
  min-height: 120px;
  resize: vertical;
}

.support-textarea--tall {
  min-height: 180px;
}

/* ── Field Note ──────────────────────────────────────────── */

.support-field-note {
  font-size: 11px;
  font-family: var(--font-mono);
  min-height: 16px;
  color: var(--text3);
}

.support-field-note.error {
  color: var(--red);
}
.support-field-note.success {
  color: var(--green);
}

/* ── Severity ────────────────────────────────────────────── */

.support-severity-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.support-severity-btn {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.support-severity-btn:hover {
  border-color: var(--border-active);
  color: var(--text);
}

.support-severity-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--bg3));
}

.support-severity-btn--critical.active {
  border-color: var(--red);
  color: var(--red);
  background: color-mix(in srgb, var(--red) 10%, var(--bg3));
}

/* ── Notice (Direkt zu mir) ──────────────────────────────── */

.support-notice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg3));
  border: 1px solid color-mix(in srgb, var(--red-dim) 25%, transparent);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: 13px;
  color: var(--text2);
  font-family: var(--font-body);
}

.support-notice-icon {
  color: var(--accent);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Submit Button ───────────────────────────────────────── */

.support-submit {
  width: 100%;
  padding: 0.875rem;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--accent-text);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition:
    opacity var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.support-submit:hover:not(:disabled) {
  opacity: 0.88;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 28%, transparent);
}

.support-submit:active:not(:disabled) {
  transform: translateY(1px);
}

.support-submit:disabled {
  opacity: var(--inactive-opacity);
  cursor: not-allowed;
}

.support-submit--complaint {
  background: var(--bg3);
  color: var(--accent);
  border: 1px solid var(--accent);
}

/* ── Video Modal ─────────────────────────────────────────── */

.support-video-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  z-index: 200;
}

.support-video-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 201;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: min(860px, 92vw);
  box-shadow: 0 24px 64px #000000a0;
}

.support-video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
}

.support-video-modal-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.support-video-modal-close {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 14px;
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  transition:
    color var(--transition-fast),
    background var(--transition-fast);
}

.support-video-modal-close:hover {
  color: var(--text);
  background: var(--bg3);
}

.support-video-player {
  width: 100%;
  display: block;
  background: #000;
  max-height: 70vh;
}
