/* =========================================================
   BOUNTY PAGE — specific styles
   These extend style.css (loaded first).
   Edit content in bounty.js, not here.
========================================================= */

/* =========================================================
   HERO
========================================================= */
.bt-hero {
  position: relative;
  padding: 96px 24px 60px;
  text-align: center;
  overflow: hidden;
}

.bt-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 45% at 15% 15%, rgba(255, 107, 69, 0.12), transparent 65%),
    radial-gradient(55% 50% at 80% 20%, rgba(139, 92, 246, 0.18), transparent 70%);
}

.bt-hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.bt-hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 700;
  line-height: 1.08;
  color: var(--white);
  margin: 0;
}

.bt-hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--muted);
  max-width: 560px;
  line-height: 1.6;
  margin: 0;
}

/* =========================================================
   LAYOUT
========================================================= */
.bt-section {
  border-top: 1px solid var(--border);
  padding: 50px 0 110px;
}

.bt-container {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.bt-empty {
  text-align: center;
  color: var(--muted-2);
  padding: 60px 0;
  font-size: 15px;
}

/* =========================================================
   ONE BOUNTY CARD
========================================================= */
.bt-bounty {
  position: relative;
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.05), transparent 40%), var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.bt-bounty:hover {
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 20px 46px rgba(139, 92, 246, 0.12);
}

.bt-bounty-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #120c26;
  background: var(--orange);
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

/* banner */
.bt-banner {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--surface-2);
}

.bt-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bt-bounty-body {
  padding: 30px 32px 34px;
}

/* header row */
.bt-bounty-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.bt-bounty-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin: 0;
  flex: 1;
  min-width: 240px;
}

.bt-bounty-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bt-status {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}

.status-closed {
  background: rgba(163, 156, 147, 0.12);
  border: 1px solid rgba(163, 156, 147, 0.3);
  color: var(--muted);
}

.status-open {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #34d399;
}

.bt-prizepool {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--orange-light);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
}

/* description */
.bt-desc { margin-bottom: 22px; }

.bt-desc-p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 10px;
}

.bt-desc-p:first-child {
  color: var(--orange-light);
  font-family: var(--font-display);
  font-weight: 600;
}

/* topics + rules panels */
.bt-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 30px;
}

.bt-panel {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.bt-panel-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 12px;
}

.bt-topic-list,
.bt-rule-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bt-topic-list li,
.bt-rule-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

.bt-topic-list li::before,
.bt-rule-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* =========================================================
   WINNERS — the star of the page
========================================================= */
.bt-winners {
  margin-top: 8px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.bt-winners-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.bt-trophy { font-size: 26px; line-height: 1; }

.bt-winners-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.bt-winners-count {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--orange-light);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
}

.bt-no-winners {
  color: var(--muted);
  font-size: 14.5px;
  padding: 20px 0;
}

.bt-winners-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---- one winner row ---- */
.bt-winner {
  display: grid;
  grid-template-columns: 44px 64px 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.bt-winner:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 10px 26px rgba(139, 92, 246, 0.12);
}

/* top-3 winners get bigger emphasis + colored glow */
.bt-winner-top {
  padding: 20px;
  background: linear-gradient(135deg, rgba(139,92,246,0.06), transparent 60%), var(--surface);
}

.bt-winner-top.rank-gold {
  border-color: rgba(255, 196, 0, 0.5);
  box-shadow: 0 10px 40px rgba(255, 196, 0, 0.12);
}
.bt-winner-top.rank-silver {
  border-color: rgba(197, 205, 214, 0.45);
  box-shadow: 0 10px 34px rgba(197, 205, 214, 0.1);
}
.bt-winner-top.rank-bronze {
  border-color: rgba(205, 127, 50, 0.5);
  box-shadow: 0 10px 34px rgba(205, 127, 50, 0.1);
}

/* rank badge column */
.bt-winner-rank {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bt-rank-medal { font-size: 30px; line-height: 1; }

.bt-rank-num {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--muted-2);
}

/* pfp (circle) */
.bt-winner-pfp-link {
  position: relative;
  display: block;
  width: 64px;
  height: 64px;
}

.bt-winner-pfp {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  border: 2px solid var(--border);
  transition: transform 0.2s ease;
}

.bt-winner-pfp-link:hover .bt-winner-pfp { transform: scale(1.06); }

/* glowing ring around top-3 pfps */
.bt-winner-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  pointer-events: none;
}

.rank-gold .bt-winner-pfp   { border-color: #ffc400; }
.rank-silver .bt-winner-pfp { border-color: #c5cdd6; }
.rank-bronze .bt-winner-pfp { border-color: #cd7f32; }

.rank-gold .bt-winner-ring   { box-shadow: 0 0 0 2px rgba(255,196,0,0.4), 0 0 18px rgba(255,196,0,0.5); }
.rank-silver .bt-winner-ring { box-shadow: 0 0 0 2px rgba(197,205,214,0.4), 0 0 16px rgba(197,205,214,0.4); }
.rank-bronze .bt-winner-ring { box-shadow: 0 0 0 2px rgba(205,127,50,0.4), 0 0 16px rgba(205,127,50,0.4); }

/* winner info (name + handle) */
.bt-winner-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.bt-rank-label {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
}

.bt-rank-label.rank-gold   { color: #ffc400; }
.bt-rank-label.rank-silver { color: #c5cdd6; }
.bt-rank-label.rank-bronze { color: #cd7f32; }

.bt-winner-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bt-winner-top .bt-winner-name { font-size: 18px; }

.bt-winner-handle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
  width: fit-content;
  transition: color 0.15s ease;
}

.bt-winner-handle svg { width: 12px; height: 12px; }

.bt-winner-handle:hover { color: var(--orange-light); }

/* prize + date */
.bt-winner-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.bt-winner-prize {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--orange-light);
  line-height: 1;
}

.bt-winner-top .bt-winner-prize { font-size: 22px; }

.bt-winner-date {
  font-size: 11.5px;
  color: var(--muted-2);
}

/* "Tingnan ang Entry" button */
.bt-winner-entry {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--orange-light);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.bt-winner-entry svg { width: 13px; height: 13px; }

.bt-winner-entry:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #120c26;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 760px) {
  .bt-panels { grid-template-columns: 1fr; }

  /* stack the winner row into a friendlier mobile layout */
  .bt-winner {
    grid-template-columns: 40px 56px 1fr;
    grid-template-areas:
      "rank pfp info"
      "meta meta meta"
      "entry entry entry";
    gap: 12px 14px;
  }
  .bt-winner-rank  { grid-area: rank; }
  .bt-winner-pfp-link { grid-area: pfp; width: 56px; height: 56px; }
  .bt-winner-pfp   { width: 56px; height: 56px; }
  .bt-winner-info  { grid-area: info; }
  .bt-winner-meta  {
    grid-area: meta;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }
  .bt-winner-entry { grid-area: entry; justify-content: center; }
}

@media (max-width: 600px) {
  .bt-hero { padding: 70px 20px 50px; }
  .bt-bounty-body { padding: 24px 20px 28px; }
}