/* ssg-builds-hub.css — /builds/ hub, style premium Tytoon Mist */

/* ── Hero ─────────────────────────────────────────────────────────────── */
.builds-hub__hero {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1rem 1.5rem;
  position: relative;
}

.builds-hub__title {
  font-family: 'Tytoon Mist', 'Orbitron', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #f8e5bf;
  margin: 0 0 0.5rem;
  line-height: 1.15;
  text-shadow: 0 2px 24px rgba(212, 177, 113, 0.3);
}

.builds-hub__intro {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(0.88rem, 1.6vw, 0.98rem);
  color: rgba(210, 200, 180, 0.75);
  max-width: 680px;
  margin: 0.75rem auto 0;
  line-height: 1.65;
}

.builds-hub__intro strong {
  color: rgba(248, 229, 191, 0.9);
  font-weight: 600;
}

.builds-hub__subtitle {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: rgba(220, 200, 160, 0.65);
  margin: 0;
  letter-spacing: 0.02em;
}

/* ── Role filter ─────────────────────────────────────────────────────── */
.builds-hub__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 1.5rem 1rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.builds-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: 99px;
  border: 1px solid rgba(212, 177, 113, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(220, 200, 160, 0.7);
  font-family: 'Barlow', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  white-space: nowrap;
}

.builds-filter__btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.7;
  flex-shrink: 0;
}

.builds-filter__btn:hover {
  border-color: rgba(212, 177, 113, 0.5);
  background: rgba(212, 177, 113, 0.08);
  color: #f8e5bf;
}

.builds-filter__btn.active {
  background: rgba(212, 177, 113, 0.18);
  border-color: rgba(212, 177, 113, 0.6);
  color: #f8e5bf;
}

.builds-filter__btn.active img {
  opacity: 1;
}

/* ── Sections ────────────────────────────────────────────────────────── */
.builds-hub__section {
  max-width: 1160px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.builds-hub__section[hidden] {
  display: none;
}

.builds-hub__section-title {
  font-family: 'Tytoon Mist', 'Orbitron', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 400;
  color: #f8e5bf;
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.02em;
}

.builds-hub__section-title::after {
  content: '';
  display: block;
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 177, 113, 0.35) 0%, transparent 70%);
  margin-left: 0.5rem;
}

.builds-hub__section-title img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.85;
  flex-shrink: 0;
}

/* ── Champion grid ───────────────────────────────────────────────────── */
.builds-hub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

/* ── Champion card ───────────────────────────────────────────────────── */
.build-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: inherit;
  transition: background 0.18s, border-color 0.18s, transform 0.15s;
}

.build-card:hover {
  background: rgba(212, 177, 113, 0.07);
  border-color: rgba(212, 177, 113, 0.28);
  transform: translateY(-2px);
}

.build-card__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.build-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.build-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.build-card__name {
  font-family: 'Barlow', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #e2d9c8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.build-card__badges {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

/* ── Tier badge ──────────────────────────────────────────────────────── */
.tier-badge {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.tier-badge--sp { background: rgba(255, 215, 80, 0.2); color: #ffd750; border: 1px solid rgba(255, 215, 80, 0.4); }
.tier-badge--s  { background: rgba(250, 138, 52, 0.2); color: #fa8a34; border: 1px solid rgba(250, 138, 52, 0.4); }
.tier-badge--a  { background: rgba(140, 200, 80, 0.2); color: #8cc850; border: 1px solid rgba(140, 200, 80, 0.4); }
.tier-badge--b  { background: rgba(100, 160, 230, 0.2); color: #64a0e6; border: 1px solid rgba(100, 160, 230, 0.4); }

/* ── Damage type tag ─────────────────────────────────────────────────── */
.damage-tag {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-family: 'Barlow', sans-serif;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.damage-tag--ap    { background: rgba(160, 100, 230, 0.2); color: #b87ee6; border: 1px solid rgba(160, 100, 230, 0.3); }
.damage-tag--ad    { background: rgba(230, 160, 60, 0.2);  color: #e6a03c; border: 1px solid rgba(230, 160, 60, 0.3); }
.damage-tag--mixed { background: rgba(80, 200, 180, 0.2);  color: #50c8b4; border: 1px solid rgba(80, 200, 180, 0.3); }

/* ── Build items row ─────────────────────────────────────────────────── */
.build-card__items {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  flex-wrap: wrap;
}

.build-card__items img {
  width: 32px;
  height: 32px;
  border-radius: 5px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
}

/* ── Role tag (inside featured cards) ───────────────────────────────── */
.build-card__role-tag {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(200, 210, 230, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Barlow', sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* ── Top picks section ───────────────────────────────────────────────── */
.builds-hub__top-picks {
  max-width: 1160px;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
}

.builds-hub__top-picks-head {
  margin-bottom: 1rem;
}

.builds-hub__top-picks-title {
  font-family: 'Tytoon Mist', 'Orbitron', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 400;
  color: #f8e5bf;
  margin: 0 0 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.02em;
}

.builds-hub__top-picks-title::before {
  content: '◆';
  font-size: 0.65em;
  color: rgba(212, 177, 113, 0.6);
}

.builds-hub__top-picks-title::after {
  content: '';
  display: block;
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 177, 113, 0.35) 0%, transparent 70%);
  margin-left: 0.5rem;
}

.builds-hub__top-picks-sub {
  font-size: 0.82rem;
  color: rgba(200, 190, 170, 0.55);
  margin: 0;
  font-family: 'Barlow', sans-serif;
}

.builds-hub__grid--featured {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.build-card--featured {
  border-color: rgba(212, 177, 113, 0.18);
  background: rgba(212, 177, 113, 0.04);
}

.build-card--featured:hover {
  border-color: rgba(212, 177, 113, 0.4);
  background: rgba(212, 177, 113, 0.1);
}

/* ── Role intro ──────────────────────────────────────────────────────── */
.builds-hub__role-intro {
  font-family: 'Barlow', sans-serif;
  font-size: 0.88rem;
  color: rgba(200, 190, 170, 0.6);
  margin: -0.5rem 0 1rem;
  line-height: 1.6;
  max-width: 780px;
}

/* ── FAQ section ─────────────────────────────────────────────────────── */
.builds-hub__faq {
  max-width: 800px;
  margin: 1rem auto 3rem;
  padding: 0 1rem;
}

.builds-hub__faq-title {
  font-family: 'Tytoon Mist', 'Orbitron', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  color: #f8e5bf;
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.02em;
}

.builds-hub__faq-title::before {
  content: '◆';
  font-size: 0.6em;
  color: rgba(212, 177, 113, 0.55);
}

.builds-hub__faq-title::after {
  content: '';
  display: block;
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 177, 113, 0.3) 0%, transparent 70%);
  margin-left: 0.5rem;
}

.builds-hub__faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.builds-hub__faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem 0;
}

.builds-hub__faq-item:last-child {
  border-bottom: none;
}

.builds-hub__faq-q {
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e2d9c8;
  margin: 0 0 0.5rem;
  cursor: default;
}

.builds-hub__faq-a {
  font-family: 'Barlow', sans-serif;
  font-size: 0.88rem;
  color: rgba(200, 190, 170, 0.7);
  line-height: 1.65;
  margin: 0;
}

.builds-hub__faq-a strong {
  color: rgba(248, 229, 191, 0.9);
  font-weight: 600;
}

/* ── Mobile ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .builds-hub__grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .builds-hub__section-title {
    font-size: 1.15rem;
  }

  .build-card__icon {
    width: 44px;
    height: 44px;
  }
}

/* ── Build Recommender section ─────────────────────────────────────── */
.builds-hub__recommender {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.builds-hub__recommender-head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.builds-hub__recommender-title {
  font-family: 'Tytoon Mist', 'Orbitron', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  color: #f8e5bf;
  margin: 0 0 0.4rem;
}

.builds-hub__recommender-sub {
  font-size: 0.9rem;
  color: rgba(200, 190, 170, 0.65);
  margin: 0;
}
