/* ========================
   HEADER
======================== */
.quests-header {
  margin-bottom: 1.5rem;
}

.quests-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #e6edf3;
}

/* ========================
   TAB CONTAINERS
======================== */
.quest-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.quest-tabs.parent-tab {
  margin-bottom: 0.75rem;
}


/* ========================
   TAB BUTTONS
======================== */
.tab-buttons {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ccc;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* hover */
.tab-buttons:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* active */
.tab-buttons.active {
  background: linear-gradient(135deg, #6a5cff, #8b7bff);
  color: white;
  border-color: transparent;
  box-shadow: 0 0 10px rgba(106, 92, 255, 0.4);
}


/* ========================
   FILTER BAR
======================== */
.quest-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}


/* ========================
   CHECKBOX GROUP
======================== */
.filter-checks {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-check__item {
  font-size: 0.85rem;
  color: #bbb;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

/* checkbox styling */
.filter-check__item input {
  accent-color: #6a5cff;
  cursor: pointer;
}


/* ========================
   SELECT DROPDOWN
======================== */
.filter-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ddd;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-select:hover {
  background: rgba(255, 255, 255, 0.08);
}

.filter-select:focus {
  outline: none;
  border-color: #6a5cff;
  box-shadow: 0 0 6px rgba(106, 92, 255, 0.5);
}
.quest-tabs {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 0.5rem;
}


/* ========================
   FILTER PILLS
======================== */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #bbb;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* hover */
.filter-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* active */
.filter-pill.active {
  background: linear-gradient(135deg, #bfa04a, #a3873c);
  color: #111;
  border: 1px solid rgba(255, 215, 100, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.15),
    0 2px 6px rgba(0,0,0,0.4);
}
.filter-pill:hover {
  transform: translateY(-1px);
}


/* ========================
   QUEST GROUP
======================== */
.quest-group {
  margin-bottom: 1.5rem;
}

/* header */
.quest-group__header {
  padding: 0.6rem 1rem;

  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;

  margin-bottom: 0.5rem;

  display: inline-block;
}

.quest-group__header.complete {
  background: rgba(46, 160, 67, 0.15);
  color: #2ea043;
}

.quest-group__header.started {
  background: rgba(225, 187, 52, 0.15);
  color: #e1bb34;
}

.quest-group__header.not-started {
  background: rgba(120, 130, 150, 0.15);
  color: #8b949e;
}

.quest-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.quest-row {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0.6rem 0.85rem;

  border-radius: 8px;

  background: linear-gradient(180deg, #0f1a24, #0a1118);
  border: 1px solid rgba(255, 215, 120, 0.05);

  transition: all 0.2s ease;
}

/* hover */
.quest-row:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 215, 120, 0.2);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.quest-row.complete {
  border-left: 3px solid #2ea043;
}

.quest-row.started {
  border-left: 3px solid #e1bb34;
}

.quest-row.not-started {
  border-left: 3px solid #e13434;
}
.quest-row.ineligible {
  background: linear-gradient(180deg, #240f0f, #180a0a);
  opacity: 0.7;
}
.quest-row.quest-members .quest-pill.free {
  color: #bbb;
}
.quest-row.quest-members .quest-pill.diff {
  color: goldenrod;
}

.quest-row__name {
  font-size: 0.9rem;
  color: #e6edf3;
}

.quest-row__meta {
  display: flex;
  gap: 0.4rem;
}

.quest-pill {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;

  border-radius: 6px;

  background: rgba(255,255,255,0.05);
  color: #c9d1d9;

  border: 1px solid rgba(255,255,255,0.05);
}

/* quest points */
.quest-pill.qp {
  color: #e1bb34;
  border-color: rgba(225, 187, 52, 0.25);
}

/* difficulty */
.quest-pill.diff {
  color: #8b949e;
}

.quests-loading {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.loading-card {
  padding: 1rem;
  border-radius: 10px;
  background: #0a1118;
}

.loading-title {
  width: 200px;
  height: 16px;
  margin-bottom: 1rem;
}

.quest-row.shimmer {
  height: 36px;
  border-radius: 8px;
}
