<?php
/**
 * Support Center styles
 */
.support-hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.support-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.support-tabs {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem;
  gap: 0.15rem;
}

.support-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
}

.support-tab.active {
  background: rgba(199, 107, 42, 0.2);
  color: var(--accent-bright);
}

.support-tab-count {
  display: inline-flex;
  min-width: 1.25rem;
  justify-content: center;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
}

.support-toolbar-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.support-panel {
  background: rgba(21, 24, 29, 0.5);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem;
  min-height: 280px;
}

.support-section-intro {
  margin-bottom: 1.35rem;
  text-align: center;
}

.support-section-title {
  margin: 0 0 0.4rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  color: var(--text);
}

.support-section-copy {
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.5;
  max-width: 40rem;
}

.support-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 52rem;
  margin: 0 auto;
}

.support-closed-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(199, 107, 42, 0.35);
  border-radius: 8px;
  background: rgba(199, 107, 42, 0.08);
  color: var(--muted);
}

.support-closed-notice i {
  margin-top: 0.15rem;
  color: var(--accent-bright);
}

.support-closed-notice strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.support-closed-notice p {
  margin: 0;
  line-height: 1.45;
}

.support-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
}

.support-empty i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

.support-empty h3 {
  margin: 0 0 0.5rem;
  color: var(--text);
}

.support-empty p {
  max-width: 36rem;
  margin: 0 auto 1.25rem;
  line-height: 1.5;
}

.support-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.support-list-item:hover {
  border-color: rgba(199, 107, 42, 0.45);
  transform: translateY(-1px);
}

.support-list-item h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.support-list-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.support-status {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.support-status.open,
.support-status.pending,
.support-status.awaiting_staff {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
}

.support-status.awaiting_player,
.support-status.under_review {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.support-status.resolved,
.support-status.approved {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
}

.support-status.closed,
.support-status.denied {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

.support-path-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
}

.support-path-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem;
}

.support-path-card.primary {
  background: linear-gradient(145deg, rgba(199, 107, 42, 0.12), rgba(255, 255, 255, 0.02));
  border-color: rgba(199, 107, 42, 0.35);
}

.support-path-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.support-path-card p {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

.support-server-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.support-server-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.support-server-btn:hover,
.support-server-btn.selected {
  border-color: rgba(199, 107, 42, 0.55);
  background: rgba(199, 107, 42, 0.12);
}

.support-server-btn .meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.support-form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem;
  margin-top: 1rem;
}

.support-form-card .form-group {
  margin-bottom: 1rem;
}

.support-form-card label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.support-form-card input,
.support-form-card select,
.support-form-card textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
}

.support-form-card textarea {
  min-height: 140px;
  resize: vertical;
}

.support-email-optin {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.support-form-card .support-email-optin-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  cursor: pointer;
}

.support-form-card .support-email-optin-toggle input {
  width: auto;
  margin: 0;
  flex: 0 0 auto;
}

.support-email-optin .form-group {
  margin: 0.85rem 0 0;
}

.support-email-optin .form-group[hidden] {
  display: none !important;
}

.support-thread {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.25rem 0;
}

.support-msg {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.support-msg.staff {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.06);
}

.support-msg-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.support-msg-body {
  white-space: pre-wrap;
  line-height: 1.5;
}

.support-ban-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
}

.support-ban-card h4 {
  margin: 0 0 0.35rem;
}

.support-ban-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.support-staff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.support-login-gate {
  text-align: center;
  padding: 3rem 1rem;
}

.support-player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.6rem;
}

.support-player-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  position: relative;
}

.support-player-btn:hover,
.support-player-btn.selected {
  border-color: rgba(199, 107, 42, 0.55);
  background: rgba(199, 107, 42, 0.12);
}

.support-player-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}

.support-player-avatar.placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.support-player-avatar.placeholder.unknown {
  background: rgba(199, 107, 42, 0.15);
  color: var(--accent-bright);
  border: 1px solid rgba(199, 107, 42, 0.35);
}

.support-player-btn-unknown {
  border-style: dashed;
}

.support-player-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.support-player-info strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-player-info .meta,
.support-selected-chip .meta {
  color: var(--muted);
  font-size: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.support-player-check {
  opacity: 0;
  color: var(--accent-bright);
  flex-shrink: 0;
}

.support-player-btn.selected .support-player-check {
  opacity: 1;
}

.support-selected-players {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.support-selected-players .label {
  width: 100%;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.support-selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.support-selected-chip .support-player-avatar {
  width: 28px;
  height: 28px;
}

.support-related-players {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.support-related-players h4 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.support-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.support-filters label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.support-filters select {
  min-width: 160px;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
}

.support-attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.support-attachment-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  max-width: 100%;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.support-attachment-link:hover {
  border-color: rgba(199, 107, 42, 0.45);
  color: var(--accent-bright);
}

.support-attachment-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
}

body.support-evidence-open {
  overflow: hidden;
}

.support-evidence-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.support-evidence-lightbox[hidden] {
  display: none !important;
}

.support-evidence-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.support-evidence-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #121412;
  overflow: hidden;
}

.support-evidence-lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
}

.support-evidence-lightbox-title {
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-evidence-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.support-evidence-lightbox-body {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0b0a;
  padding: 0.75rem;
}

.support-evidence-lightbox-body img {
  max-width: 100%;
  max-height: calc(92vh - 5.5rem);
  object-fit: contain;
}

.support-evidence-lightbox-body iframe {
  width: 100%;
  height: calc(92vh - 5.5rem);
  min-height: 420px;
  border: 0;
  background: #fff;
}

.support-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.support-category-grid[hidden],
.support-category-locked[hidden] {
  display: none !important;
}

.support-category-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 110px;
  padding: 1rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.support-category-btn:hover {
  border-color: rgba(199, 107, 42, 0.45);
  color: var(--accent-bright);
}

.support-category-btn.selected {
  border-color: rgba(199, 107, 42, 0.7);
  background: rgba(199, 107, 42, 0.12);
  color: var(--accent-bright);
  box-shadow: inset 0 0 0 1px rgba(199, 107, 42, 0.25);
}

.support-category-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: 1.35rem;
  color: inherit;
}

.support-category-x {
  position: absolute;
  right: -0.35rem;
  top: -0.15rem;
  font-size: 0.7rem;
}

.support-category-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
}

.support-category-locked {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.support-category-locked-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .support-path-grid {
    grid-template-columns: 1fr;
  }

  .support-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
