/* Gold Sniper — goldsniperwow.com */
:root {
  --bg: #1a1814;
  --surface: #252119;
  --border: #3d3528;
  --gold: #c9a227;
  --gold-dim: #8b7340;
  --text: #e8e0d4;
  --muted: #9a8f7a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.app {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.header h1 {
  margin: 0;
  font-size: 1.75rem;
  color: var(--gold);
}

.tagline {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.tab {
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.main {
  flex: 1;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.realm-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.realm-row label {
  color: var(--muted);
  font-size: 0.9rem;
}

.realm-row select {
  padding: 0.4rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 0.95rem;
  min-width: 200px;
}

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

.search-row {
  margin-bottom: 1rem;
}

.search-row input {
  width: 100%;
  max-width: 320px;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 0.95rem;
}

.search-row input::placeholder {
  color: var(--gold-dim);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.item-table {
  width: 100%;
  border-collapse: collapse;
}

.item-table th,
.item-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.item-table th {
  color: var(--gold-dim);
  font-weight: 600;
  font-size: 0.85rem;
}

.item-table th.num,
.item-table td.num {
  text-align: right;
}

.item-table tbody tr:last-child td {
  border-bottom: none;
}

.item-table tbody tr:hover {
  background: rgba(201, 162, 39, 0.06);
}

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

.empty.hidden {
  display: none;
}

/* Import */
.import-intro {
  color: var(--muted);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

#import textarea {
  width: 100%;
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  resize: vertical;
  margin-bottom: 1rem;
}

.import-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.btn.primary {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

.btn.primary:hover {
  filter: brightness(1.1);
}

.status {
  font-size: 0.9rem;
  color: var(--muted);
}

.status.ok {
  color: #7cb37c;
}

.status.err {
  color: #c97070;
}

/* Download */
.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 480px;
}

.download-title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: var(--gold);
}

.download-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 1.25rem;
}

.btn-download {
  display: inline-block;
  text-decoration: none;
  padding: 0.6rem 1.25rem;
  font-weight: 600;
}

.download-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--gold-dim);
}

.hidden {
  display: none !important;
}

.download-password-form label {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.download-password-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.download-password-row input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.95rem;
}

.download-password-err {
  margin: 0;
  font-size: 0.9rem;
  color: #c97070;
}

.download-unlocked .btn-download {
  margin-bottom: 0.25rem;
}

.footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.footer a {
  color: var(--gold-dim);
  text-decoration: none;
}

.footer a:hover {
  color: var(--gold);
}
