/* Item Hunt page — scoped styles. Site tokens (colors, .white-box, .page-title)
   come from style.css; this file only adds page-specific layout. */

.item-hunt .ih-search-wrap {
  margin: 0.75rem 0 1rem;
}

.item-hunt .ih-search-input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  font-size: 1.05rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}

.item-hunt .ih-search-input:focus {
  border-color: var(--accent, #cb3900);
  box-shadow: 0 0 0 2px rgba(203, 57, 0, 0.25);
}

.item-hunt .ih-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.item-hunt .ih-chip {
  padding: 0.3rem 0.75rem;
  font-size: 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.item-hunt .ih-chip:hover,
.item-hunt .ih-chip:focus-visible {
  background: rgba(203, 57, 0, 0.18);
  border-color: var(--accent, #cb3900);
}

.item-hunt .ih-status {
  min-height: 1.4em;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

/* Result cards */
.item-hunt .ih-results {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.item-hunt .ih-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.9rem 1.1rem;
}

.item-hunt .ih-card > h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.item-hunt .ih-key {
  font-size: 0.72rem;
  opacity: 0.55;
  font-weight: 400;
}

.item-hunt .ih-source-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.item-hunt .ih-source-list li {
  font-size: 0.92rem;
  line-height: 1.45;
}

.item-hunt .ih-mons {
  opacity: 0.75;
}

.item-hunt .ih-detail {
  opacity: 0.6;
  font-size: 0.85em;
}

.item-hunt .ih-more-hint {
  opacity: 0.65;
  font-style: italic;
}

/* Source type badges */
.item-hunt .ih-badge {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: 0.08em;
  margin-right: 0.25rem;
}

.item-hunt .ih-badge--map    { background: rgba(64, 128, 96, 0.35);  color: #9fd8b4; }
.item-hunt .ih-badge--world  { background: rgba(50, 130, 130, 0.35); color: #9fd8d4; }
.item-hunt .ih-badge--daily  { background: rgba(124, 131, 144, 0.35); color: #e9c289; }
.item-hunt .ih-badge--boss   { background: rgba(159, 63, 39, 0.35);  color: #e3af7a; }
.item-hunt .ih-badge--golden { background: rgba(153, 161, 176, 0.35); color: #cfd6e3; }
.item-hunt .ih-badge--event  { background: rgba(64, 98, 172, 0.35);  color: #99bcf1; }
.item-hunt .ih-badge--box    { background: rgba(54, 105, 162, 0.35); color: #92c8f0; }
.item-hunt .ih-badge--system { background: rgba(70, 110, 140, 0.35); color: #a6cbe4; }
.item-hunt .ih-badge--quest  { background: rgba(112, 118, 129, 0.35); color: #e6c191; }
.item-hunt .ih-badge--shop   { background: rgba(110, 110, 110, 0.35); color: #d5d5d5; }

/* ---------------------------------------------------------------- Currencies */
.item-hunt .ih-cur-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.item-hunt .ih-cur-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.9rem 1.1rem;
  display: flex;
  flex-direction: column;
}

/* Each currency gets one accent so the three are tellable apart at a glance. */
.item-hunt .ih-cur-card--ruud  { border-top: 3px solid rgba(153, 161, 176, 0.85); }
.item-hunt .ih-cur-card--wcoin { border-top: 3px solid rgba(90, 140, 190, 0.85); }
.item-hunt .ih-cur-card--gp    { border-top: 3px solid rgba(90, 170, 110, 0.85); }

.item-hunt .ih-cur-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.item-hunt .ih-cur-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.item-hunt .ih-cur-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.6;
  white-space: nowrap;
}

.item-hunt .ih-cur-blurb {
  margin: 0 0 0.6rem;
  font-size: 0.88rem;
  line-height: 1.5;
  opacity: 0.85;
}

.item-hunt .ih-cur-h {
  margin: 0.7rem 0 0.35rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.65;
  font-weight: 700;
}

.item-hunt .ih-cur-stat {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  opacity: 0.75;
}

.item-hunt .ih-cur-none {
  font-size: 0.88rem;
  line-height: 1.5;
  opacity: 0.8;
  margin: 0.2rem 0 0;
}

.item-hunt .ih-card--currency {
  border-left: 3px solid rgba(153, 161, 176, 0.85);
}

.item-hunt .ih-card--currency h4 { font-size: 0.76rem; }

/* Events grid */
.item-hunt .ih-event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.9rem;
  margin-top: 0.75rem;
}

.item-hunt .ih-event-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.9rem 1rem;
}

.item-hunt .ih-event-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.item-hunt .ih-event-card h3 {
  margin: 0;
  font-size: 1rem;
}

.item-hunt .ih-event-card p {
  margin: 0.3rem 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.item-hunt .ih-ev-why { opacity: 0.85; }
.item-hunt .ih-ev-when strong,
.item-hunt .ih-ev-entry strong,
.item-hunt .ih-ev-loot strong { opacity: 0.7; font-weight: 600; }

.item-hunt .ih-tier {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.item-hunt .ih-tier--starter  { color: #9fd8b4; border-color: rgba(64, 128, 96, 0.7); }
.item-hunt .ih-tier--mid      { color: #cfd6e3; border-color: rgba(153, 161, 176, 0.7); }
.item-hunt .ih-tier--endgame  { color: #e3af7a; border-color: rgba(159, 63, 39, 0.7); }
.item-hunt .ih-tier--guild    { color: #99bcf1; border-color: rgba(64, 98, 172, 0.7); }

/* Popular hunts */
.item-hunt .ih-popular {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.item-hunt .ih-pop-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.item-hunt .ih-pop-item summary {
  cursor: pointer;
  padding: 0.65rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
}

.item-hunt .ih-pop-item summary::-webkit-details-marker { display: none; }

.item-hunt .ih-pop-item[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.item-hunt .ih-pop-name { font-weight: 600; }

.item-hunt .ih-pop-count {
  font-size: 0.78rem;
  opacity: 0.6;
  white-space: nowrap;
}

.item-hunt .ih-pop-item .ih-source-list {
  padding: 0.7rem 0.9rem;
}

@media (max-width: 560px) {
  .item-hunt .ih-event-grid { grid-template-columns: 1fr; }
}

/* ------------------------- Bags & Boxes pages ------------------------- */

.item-hunt .ih-bag-cols {
  columns: 3 16rem;
  column-gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.item-hunt .ih-bag-cols li {
  padding: 0.28rem 0;
  break-inside: avoid;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.08);
}

.item-hunt .ih-bag-cols li.ih-bag-dead a {
  opacity: 0.45;
}

.item-hunt .ih-bag-sec {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin: 0.6rem 0;
  background: rgba(0, 0, 0, 0.2);
}

.item-hunt .ih-bag-sec summary {
  cursor: pointer;
  padding: 0.6rem 0.9rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
}

.item-hunt .ih-bag-sec summary::-webkit-details-marker { display: none; }

.item-hunt .ih-bag-sec[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.item-hunt .ih-bag-blk {
  margin: 0.7rem 0.9rem 0.2rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

.item-hunt .ih-bag-tablewrap {
  overflow-x: auto;
  padding: 0.3rem 0.9rem 0.7rem;
}

.item-hunt .ih-bag-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.item-hunt .ih-bag-table th,
.item-hunt .ih-bag-table td {
  text-align: left;
  padding: 0.3rem 0.6rem 0.3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.item-hunt .ih-bag-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.6;
}

.item-hunt .ih-bag-table td:last-child,
.item-hunt .ih-bag-table th:last-child {
  text-align: right;
  white-space: nowrap;
}

.item-hunt .ih-bag-off {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: rgba(159, 63, 39, 0.3);
  color: #e3af7a;
  margin-left: 0.35rem;
}

/* ------------------------- Per-item pages (2026-09-08) ------------------------- */

/* Result headings, popular-hunt names and source names are links now; keep the
   text colour and mark them with a quiet underline so the cards stay readable. */
.item-hunt .ih-card > h3 a,
.item-hunt .ih-pop-name a,
.item-hunt .ih-source-list strong a,
.item-hunt .ih-bag-table td a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.35);
}

.item-hunt .ih-card > h3 a:hover,
.item-hunt .ih-pop-name a:hover,
.item-hunt .ih-source-list strong a:hover,
.item-hunt .ih-bag-table td a:hover {
  border-bottom-color: var(--accent, #cb3900);
}

.item-hunt a.ih-chip {
  text-decoration: none;
}

.item-hunt .ih-card-more {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
}

.item-hunt .ih-search-box--compact .ih-search-input {
  padding: 0.7rem 1rem;
  font-size: 1rem;
}

.item-hunt .ih-item-lede {
  font-size: 1.02rem;
  line-height: 1.55;
  margin: 0 0 0.75rem;
}

.item-hunt .ih-quick {
  list-style: none;
  margin: 0.5rem 0 0.6rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.item-hunt .ih-quick li {
  font-size: 0.95rem;
  line-height: 1.45;
}

.item-hunt .ih-item-links {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

.item-hunt .ih-more {
  margin-top: 0.5rem;
}

.item-hunt .ih-more > summary {
  cursor: pointer;
  font-size: 0.88rem;
  opacity: 0.75;
  padding: 0.35rem 0;
  list-style: none;
}

.item-hunt .ih-more > summary::-webkit-details-marker { display: none; }

.item-hunt .ih-more > summary::before {
  content: '+ ';
}

.item-hunt .ih-more[open] > summary::before {
  content: '− ';
}

.item-hunt .ih-more > .ih-source-list {
  margin-top: 0.35rem;
}
