/* 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, #c33);
  box-shadow: 0 0 0 2px rgba(204, 51, 51, 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(204, 51, 51, 0.18);
  border-color: var(--accent, #c33);
}

.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--boss   { background: rgba(160, 60, 60, 0.35);  color: #f0a3a3; }
.item-hunt .ih-badge--golden { background: rgba(190, 150, 40, 0.35); color: #ecd28a; }
.item-hunt .ih-badge--event  { background: rgba(90, 90, 170, 0.35);  color: #b3b3ef; }
.item-hunt .ih-badge--box    { background: rgba(120, 85, 150, 0.35); color: #d0b3e8; }

/* 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: #ecd28a; border-color: rgba(190, 150, 40, 0.7); }
.item-hunt .ih-tier--endgame  { color: #f0a3a3; border-color: rgba(160, 60, 60, 0.7); }
.item-hunt .ih-tier--guild    { color: #b3b3ef; border-color: rgba(90, 90, 170, 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; }
}
