/* Pokédex Lookup Tool — Stylesheet
   Prefix: --pok-
   Cluster: hobby (accent: --tf-accent #9c4221 in light, #e08355 in dark). */

:root {
  --pok-surface: #ffffff;
  --pok-card: #ffffff;
  --pok-border: #e2e8f0;
  --pok-text: #0f172a;
  --pok-muted: #64748b;
  --pok-code-bg: #f8fafc;
  --pok-radius: 4px;
}

.pok-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.pok-main {
  padding: 16px 0 60px;
}

/* Search Card */
.pok-search-card {
  background: var(--pok-surface);
  border: 1.5px solid var(--pok-border);
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.pok-search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.pok-lbl {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--pok-text);
}

.pok-dex-counter {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--tf-accent);
  background: var(--tf-accent-wash);
  border: 1px solid var(--tf-accent);
  padding: 2px 8px;
  border-radius: var(--pok-radius);
  font-family: ui-monospace, monospace;
}

.pok-controls-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 720px) {
  .pok-controls-grid {
    grid-template-columns: 1fr;
  }
}

.pok-input-wrap {
  display: flex;
  gap: 8px;
}

.pok-input {
  flex: 1;
  background: var(--pok-surface);
  border: 1px solid var(--pok-border);
  color: var(--pok-text);
  padding: 10px 14px;
  border-radius: var(--pok-radius);
  font-size: 0.9375rem;
  font-family: inherit;
}

.pok-input:focus,
.pok-select:focus {
  outline: 2px solid var(--tf-accent);
  border-color: var(--tf-accent);
}

.pok-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tf-accent);
  color: var(--tf-accent-ink, #ffffff);
  border: 1px solid var(--tf-accent);
  padding: 10px 16px;
  border-radius: var(--pok-radius);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.pok-btn-primary:hover {
  background: var(--tf-accent-hover);
}

.pok-select {
  width: 100%;
  background: var(--pok-surface);
  border: 1px solid var(--pok-border);
  color: var(--pok-text);
  padding: 10px 12px;
  border-radius: var(--pok-radius);
  font-size: 0.875rem;
  font-family: inherit;
  font-weight: 600;
}

.pok-presets {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  border-top: 1px solid var(--pok-border);
  padding-top: 12px;
}

.pok-preset-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--pok-muted);
}

.pok-chip {
  background: var(--pok-surface);
  border: 1px solid var(--pok-border);
  color: var(--pok-text);
  padding: 4px 10px;
  border-radius: var(--pok-radius);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.pok-chip:hover {
  border-color: var(--tf-accent);
  color: var(--tf-accent);
}

.pok-chip.active {
  background: var(--tf-accent-wash);
  border-color: var(--tf-accent);
  color: var(--tf-accent);
  font-weight: 700;
}

/* Profile Card */
.pok-profile-card {
  background: var(--pok-surface);
  border: 1.5px solid var(--pok-border);
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.pok-profile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid var(--pok-border);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.pok-nav-btn {
  background: var(--pok-surface);
  border: 1px solid var(--pok-border);
  color: var(--pok-text);
  padding: 6px 14px;
  border-radius: var(--pok-radius);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.pok-nav-btn:hover {
  border-color: var(--tf-accent);
  color: var(--tf-accent);
}

.pok-identity-wrap {
  text-align: center;
}

.pok-dex-num {
  font-family: ui-monospace, monospace;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--tf-accent);
  background: var(--tf-accent-wash);
  border: 1px solid var(--tf-accent);
  padding: 2px 10px;
  border-radius: var(--pok-radius);
}

.pok-name {
  font-size: 2rem;
  font-weight: 900;
  color: var(--pok-text);
  margin: 6px 0 8px;
  letter-spacing: -0.02em;
}

.pok-types-row {
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* Showcase Grid */
.pok-showcase-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
}

@media (max-width: 820px) {
  .pok-showcase-grid {
    grid-template-columns: 1fr;
  }
}

/* Left Visual Stage */
.pok-visual-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pok-artwork-stage {
  background: var(--pok-code-bg);
  border: 1.5px solid var(--pok-border);
  border-radius: 6px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.pok-artwork-img {
  max-width: 220px;
  max-height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
  transition: transform 0.2s ease;
}

.pok-artwork-img:hover {
  transform: scale(1.05);
}

.pok-specs-card {
  background: var(--pok-surface);
  border: 1px solid var(--pok-border);
  border-radius: var(--pok-radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pok-spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

.pok-spec-lbl {
  color: var(--pok-muted);
  font-weight: 600;
}

.pok-spec-item strong {
  color: var(--pok-text);
  font-weight: 700;
}

/* Right Data Stats */
.pok-data-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pok-stats-section,
.pok-matchup-section {
  background: var(--pok-surface);
  border: 1.5px solid var(--pok-border);
  border-radius: 6px;
  padding: 18px 20px;
}

.pok-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--pok-border);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.pok-sec-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--pok-text);
  margin: 0;
}

.pok-bst-pill {
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
  background: var(--tf-accent-wash);
  color: var(--tf-accent);
  border: 1px solid var(--tf-accent);
  padding: 3px 8px;
  border-radius: var(--pok-radius);
  font-weight: 800;
}

.pok-stat-row {
  display: grid;
  grid-template-columns: 70px 35px 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.pok-stat-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pok-muted);
  text-transform: uppercase;
}

.pok-stat-num {
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--pok-text);
  text-align: right;
}

.pok-bar-track {
  height: 8px;
  background: var(--pok-border);
  border-radius: 4px;
  overflow: hidden;
}

.pok-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.pok-bar-fill.hp { background: #10b981; }
.pok-bar-fill.atk { background: #ef4444; }
.pok-bar-fill.def { background: #f59e0b; }
.pok-bar-fill.spatk { background: #3b82f6; }
.pok-bar-fill.spdef { background: #8b5cf6; }
.pok-bar-fill.spd { background: #ec4899; }

/* Matchups */
.pok-matchup-group {
  margin-bottom: 12px;
}

.pok-group-lbl {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.pok-group-lbl.weak { color: #dc2626; }
.pok-group-lbl.resist { color: #059669; }
.pok-group-lbl.immune { color: #64748b; }

.pok-matchup-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pok-empty-msg {
  font-size: 0.75rem;
  color: var(--pok-muted);
  font-style: italic;
}

/* Pokemon Type Badges */
.pok-type-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 3px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.pok-type-pill.normal   { background: #9fa19f; }
.pok-type-pill.fire     { background: #e62829; }
.pok-type-pill.water    { background: #2980ef; }
.pok-type-pill.electric { background: #fac000; color: #1e293b; text-shadow: none; }
.pok-type-pill.grass    { background: #3fa129; }
.pok-type-pill.ice      { background: #3dcef3; color: #1e293b; text-shadow: none; }
.pok-type-pill.fighting { background: #ff8000; }
.pok-type-pill.poison   { background: #8f41cb; }
.pok-type-pill.ground   { background: #915121; }
.pok-type-pill.flying   { background: #81b9ef; color: #1e293b; text-shadow: none; }
.pok-type-pill.psychic  { background: #ef4179; }
.pok-type-pill.bug      { background: #91a119; }
.pok-type-pill.rock     { background: #afa981; }
.pok-type-pill.ghost    { background: #704170; }
.pok-type-pill.dragon   { background: #5060e1; }
.pok-type-pill.steel    { background: #60a1b8; }
.pok-type-pill.dark     { background: #50413f; }
.pok-type-pill.fairy    { background: #ef70ef; }

.pok-ad-container {
  margin-block: 2rem;
  min-height: 280px;
  border: 1px dashed var(--pok-border);
  border-radius: var(--pok-radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* tf:dark-palette — generated by migrate_chrome.py */
/* Neutrals inherit the shared chrome tokens so all tools share one
   ground; brand hues are kept and lightened, never inverted. */
[data-theme="dark"] {
  --pok-surface: var(--tf-surface);
  --pok-card: var(--tf-surface);
  --pok-border: var(--tf-surface);
  --pok-text: var(--tf-ink);
  --pok-muted: var(--tf-ink-faint);
  --pok-code-bg: var(--tf-surface);
}
