/* lachub.ir/support — dedicated stylesheet for the ticket console
   Loaded after the shared ../style.css: consumes its color/font
   tokens (--pink, --cyan, --bg-card, --font-mono, etc.) but owns
   every rule specific to the support page's own UI. */

/* ---------- ticket console (outer frame) ---------- */
.ticket-console {
  max-width: 640px;
  margin: 0 auto 22px;
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-raised) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px -30px rgba(0,0,0,0.6);
}

.console-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: rgba(0,0,0,0.32);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}
.console-live { display: flex; align-items: center; gap: 8px; color: var(--text-dim); }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
  animation: livePulse 2.4s ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(62, 240, 216, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(62, 240, 216, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 240, 216, 0); }
}
.console-chan { direction: ltr; letter-spacing: 0.04em; color: var(--text-faint); text-transform: lowercase; }

.console-body { padding: 22px 24px 24px; }
@media (max-width: 620px) { .console-body { padding: 16px 16px 18px; } }

/* ---------- segmented switch ---------- */
.segmented {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 20px;
  background: rgba(0,0,0,0.26);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.segmented__opt {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 10px 10px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: color 0.25s ease;
}
.segmented__opt.active { color: var(--bg-deep); }
.segmented__thumb {
  position: absolute;
  top: 4px; bottom: 4px; left: 0; width: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  transition: left 0.28s cubic-bezier(.4,0,.2,1), width 0.28s cubic-bezier(.4,0,.2,1);
  z-index: 0;
}

/* ---------- panes ---------- */
.pane { display: none; }
.pane.active { display: block; }

/* ---------- tag-field: label chip sits on the field, not a plain caption above it ---------- */
.tag-field { margin-bottom: 16px; }
.tag-field__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cyan);
  background: rgba(62, 240, 216, 0.08);
  border: 1px solid rgba(62, 240, 216, 0.25);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.tag-field input, .tag-field textarea {
  display: block;
  width: 100%;
  background: rgba(14, 6, 22, 0.6);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.95rem;
  resize: vertical;
}
.tag-field textarea { min-height: 120px; line-height: 1.6; }
.tag-field input:focus, .tag-field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(62, 240, 216, 0.12);
}

.btn-full { width: 100%; justify-content: center; border: none; cursor: pointer; }

/* ---------- status feedback ---------- */
.status-msg {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  display: none;
}
.status-msg.ok  { background: rgba(78, 232, 165, 0.1);  border: 1px solid rgba(78, 232, 165, 0.4);  color: var(--green); display: block; }
.status-msg.err { background: rgba(255, 84, 112, 0.1);  border: 1px solid rgba(255, 84, 112, 0.4);  color: var(--red);   display: block; }

.ticket-id-chip {
  font-family: var(--font-mono);
  direction: ltr;
  display: inline-block;
  background: rgba(62, 240, 216, 0.1);
  border: 1px solid rgba(62, 240, 216, 0.4);
  color: var(--cyan);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  user-select: all;
}

/* ---------- case file: the loaded ticket + its thread ---------- */
.case-file {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.case-file__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.case-file__id {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  direction: ltr;
  text-align: left;
  letter-spacing: 0.02em;
  margin-bottom: 5px;
}
.case-file__subject {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 1.25rem;
  margin: 0;
}

.badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 11px 4px 9px;
  border-radius: 999px;
  direction: ltr;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge.open     { background: rgba(255, 210, 63, 0.15); color: var(--yellow);     border: 1px solid rgba(255,210,63,0.4); }
.badge.answered { background: rgba(78, 232, 165, 0.15); color: var(--green);      border: 1px solid rgba(78,232,165,0.4); }
.badge.closed   { background: rgba(124, 92, 149, 0.2);  color: var(--text-faint); border: 1px solid var(--line); }

.log { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.log-entry {
  max-width: 88%;
  padding: 10px 13px;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  font-size: 0.9rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}
.log-entry.player { align-self: flex-start; border-right: 3px solid var(--pink); background: rgba(255, 94, 184, 0.06); }
.log-entry.owner  { align-self: flex-end;   border-left:  3px solid var(--cyan); background: rgba(62, 240, 216, 0.06); }
.log-entry__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
  margin-bottom: 5px;
}
