/* 懸賞任務佈告欄專用樣式 */

:root {
  --rank-e: #b0c4de;
  --rank-d: #87ceeb;
  --rank-c: #32cd32;
  --rank-b: #1e90ff;
  --rank-a: #ffd700;
  --rank-s: #ff4500;
  --bg-board: #1a1a2e;
}

body {
  background-color: #0b0b10;
  color: #e0e0e0;
}

/* 頂部 Hero 區 */
.bounty-hero {
  background: linear-gradient(rgba(0,0,0,0.8), rgba(11,11,16,1)), url('../img/hero_banner.jpg');
  background-size: cover;
  background-position: center;
  padding: 100px 0 40px;
  border-bottom: 1px solid #333;
  text-align: center;
}

.bounty-title {
  font-family: 'Impact', sans-serif;
  font-size: 3.5rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  margin-bottom: 10px;
}

/* 篩選器 */
.filter-bar {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 15px;
  border-radius: 50px;
  display: inline-flex;
  gap: 10px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  justify-content: center;
}

.btn-filter {
  background: transparent;
  border: 1px solid transparent;
  color: #aaa;
  padding: 8px 20px;
  border-radius: 20px;
  transition: all 0.3s;
  font-weight: bold;
}

.btn-filter:hover, .btn-filter.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 247, 255, 0.2);
}

/* 任務卡片 Grid */
.bounty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

.bounty-card {
  background: #15151e;
  border: 1px solid #333;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bounty-card:hover {
  transform: translateY(-5px);
  z-index: 10;
}

/* 難度邊框與標籤 */
.bounty-card[data-rank="S"] { border-color: var(--rank-s); box-shadow: 0 0 5px rgba(255, 69, 0, 0.2); }
.bounty-card[data-rank="A"] { border-color: var(--rank-a); box-shadow: 0 0 5px rgba(255, 215, 0, 0.2); }
.bounty-card[data-rank="B"] { border-color: var(--rank-b); }
.bounty-card[data-rank="C"] { border-color: var(--rank-c); }

.rank-sticker {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.5rem;
  border: 2px solid;
  z-index: 2;
}

.bounty-card[data-rank="S"] .rank-sticker { color: var(--rank-s); border-color: var(--rank-s); box-shadow: 0 0 10px var(--rank-s); }
.bounty-card[data-rank="A"] .rank-sticker { color: var(--rank-a); border-color: var(--rank-a); }
.bounty-card[data-rank="B"] .rank-sticker { color: var(--rank-b); border-color: var(--rank-b); }
.bounty-card[data-rank="C"] .rank-sticker { color: var(--rank-c); border-color: var(--rank-c); }

.card-img-top {
  height: 160px;
  background-color: #222;
  position: relative;
  overflow: hidden;
}

.card-img-top i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  color: rgba(255,255,255,0.1);
}

.bounty-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.bounty-title-text {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 10px;
}

.bounty-desc {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 15px;
  flex-grow: 1;
}

.bounty-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: #666;
}

.reward-badge {
  background: rgba(255, 215, 0, 0.1);
  color: var(--rank-a);
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: bold;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.btn-accept {
  width: 100%;
  background: transparent;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 8px;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-accept:hover {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 247, 255, 0.4);
}

.btn-accept.accepted {
  background: #28a745;
  border-color: #28a745;
  color: #fff;
  cursor: default;
}

/* 倒數計時 */
.time-left {
  color: #ff4500;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
}
