/* ssg-adventure.css — Adventure section (AAA ARAM, Arena, modes spéciaux) */
/* Utilise les variables et fonts du système SSG (ssg-pages.css requis) */

/* ── Page wrapper ──────────────────────────────────────────────────────── */
.adventure-page {
  max-width: var(--maxw, 1180px);
  margin: 0 auto;
  padding: 0 16px 64px;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.adventure-hero {
  padding: 40px 0 32px;
  text-align: center;
}

.adventure-hero__title {
  font-family: 'Tytoon Mist', 'Orbitron', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #f8e5bf;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.adventure-hero__answer {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: rgba(210, 200, 180, 0.75);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Sections ──────────────────────────────────────────────────────────── */
.adventure-section {
  margin-top: 48px;
}

.adventure-section__title {
  font-family: 'Tytoon Mist', 'Orbitron', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #f8e5bf;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201, 166, 94, 0.2);
  position: relative;
  isolation: isolate;
  width: fit-content;
}

.adventure-section__title::before {
  content: '';
  position: absolute;
  inset: -5px -14px;
  z-index: -1;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 74' preserveAspectRatio='none'%3E%3Cpath fill='%23d4b171' fill-opacity='0.14' d='M5 31C3 21 6 12 16 9C55 3 130 8 210 6C290 4 370 9 445 6C482 5 518 6 544 10C568 13 585 18 592 24C598 29 598 35 596 40C598 45 596 52 588 56C568 62 532 61 492 64C415 68 330 63 248 65C168 67 94 63 50 66C30 67 12 64 5 57C1 52 2 43 5 38Z'/%3E%3Cpath fill='%23d4b171' fill-opacity='0.07' d='M0 35C1 23 9 13 22 9C65 1 148 6 232 4C316 2 400 7 476 4C512 3 546 4 568 8C586 11 597 16 600 23C602 29 600 36 598 42C600 48 598 56 589 61C562 69 520 67 470 70C386 74 298 69 212 71C135 73 62 69 28 67C10 65 -1 58 0 50Z'/%3E%3C/svg%3E");
}

.adventure-section__intro {
  font-family: 'Barlow', sans-serif;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 24px;
}

.adventure-section__mindset {
  font-family: 'Barlow', sans-serif;
  color: var(--text-base);
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 14px 18px;
  background: rgba(16, 19, 36, 0.9);
  border-left: 3px solid var(--accent-gold, #d4b171);
  border-radius: 0 14px 14px 0;
  margin-top: 16px;
}

/* ── Differences list ──────────────────────────────────────────────────── */
.adventure-differences {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.adventure-differences li {
  position: relative;
  padding-left: 20px;
  font-family: 'Barlow', sans-serif;
  color: var(--text-base);
  font-size: 0.9rem;
  line-height: 1.55;
}

.adventure-differences li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent-gold, #d4b171);
  font-weight: 700;
}

/* ── Mode cards ────────────────────────────────────────────────────────── */
.adventure-mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.adventure-mode-card {
  background: linear-gradient(180deg, rgba(16, 19, 36, 0.94), rgba(8, 10, 20, 0.96));
  border: 1px solid rgba(212, 177, 113, 0.18);
  border-radius: var(--radius-md, 14px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.adventure-mode-card:not(.adventure-mode-card--soon):hover {
  border-color: rgba(212, 177, 113, 0.5);
  box-shadow: var(--shadow-soft);
}

.adventure-mode-card--soon {
  opacity: 0.5;
}

.adventure-mode-card__title {
  font-family: 'Tytoon Mist', 'Orbitron', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8e5bf;
  margin: 0;
}

.adventure-mode-card__desc {
  font-family: 'Barlow', sans-serif;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.adventure-mode-card__cta {
  display: inline-block;
  margin-top: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-gold, #d4b171);
  text-decoration: none;
}

.adventure-mode-card__cta:hover {
  color: #f8e5bf;
}

/* ── Badge ─────────────────────────────────────────────────────────────── */
.adventure-badge {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.adventure-badge--active {
  background: rgba(72, 200, 100, 0.12);
  color: #66d39e;
  border: 1px solid rgba(72, 200, 100, 0.25);
}

.adventure-badge--soon {
  background: rgba(242, 179, 93, 0.12);
  color: var(--warn, #f2b35d);
  border: 1px solid rgba(242, 179, 93, 0.25);
}

/* ── Item grid ─────────────────────────────────────────────────────────── */
.adventure-grid--items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.adventure-item-card {
  background: linear-gradient(180deg, rgba(16, 19, 36, 0.94), rgba(8, 10, 20, 0.96));
  border: 1px solid rgba(212, 177, 113, 0.18);
  border-radius: var(--radius-md, 14px);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.adventure-item-card:hover {
  border-color: rgba(212, 177, 113, 0.5);
  box-shadow: var(--shadow-soft);
}

.adventure-item-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.adventure-item-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-2, #11152a);
}

.adventure-item-card__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.adventure-item-card__name {
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adventure-item-card__cost {
  font-family: 'Barlow', sans-serif;
  font-size: 0.78rem;
  color: var(--accent-gold, #d4b171);
  font-weight: 600;
}

.adventure-item-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.adventure-item-card__stat {
  display: flex;
  gap: 4px;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 5px;
  padding: 2px 7px;
  font-family: 'Barlow', sans-serif;
}

.adventure-item-card__stat-label {
  color: var(--text-muted);
}

.adventure-item-card__stat-val {
  color: var(--text-strong);
  font-weight: 700;
}

.adventure-item-card__short {
  font-family: 'Barlow', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(248, 229, 191, 0.9);
  margin: 0;
}

.adventure-item-card__desc {
  font-family: 'Barlow', sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  white-space: pre-line;
}

/* ── Profile cards ─────────────────────────────────────────────────────── */
.adventure-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.adventure-profile-card {
  background: linear-gradient(180deg, rgba(16, 19, 36, 0.94), rgba(8, 10, 20, 0.96));
  border: 1px solid rgba(212, 177, 113, 0.18);
  border-radius: var(--radius-md, 14px);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.18s;
}

.adventure-profile-card:hover {
  border-color: rgba(212, 177, 113, 0.4);
}

.adventure-profile-card__name {
  font-family: 'Tytoon Mist', 'Orbitron', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8e5bf;
  margin: 0;
  letter-spacing: 0.01em;
}

.adventure-profile-card__playstyle {
  font-family: 'Barlow', sans-serif;
  font-size: 0.82rem;
  color: var(--text-base);
  line-height: 1.6;
  margin: 0;
}

.adventure-profile-card__advantage {
  font-family: 'Barlow', sans-serif;
  font-size: 0.82rem;
  color: var(--text-base);
  line-height: 1.55;
  margin: 0;
  padding: 8px 12px;
  background: rgba(212, 177, 113, 0.07);
  border-radius: 8px;
}

.adventure-profile-card__advantage strong {
  color: var(--accent-gold, #d4b171);
  font-weight: 700;
}

.adventure-profile-card__mistakes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.adventure-profile-card__mistakes li {
  font-family: 'Barlow', sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.45;
}

.adventure-profile-card__mistakes li::before {
  content: '×';
  position: absolute;
  left: 0;
  color: var(--danger, #ff7878);
  font-weight: 700;
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.adventure-faq {
  margin-top: 56px;
}

.adventure-faq__list {
  display: flex;
  flex-direction: column;
}

.adventure-faq__item {
  border-bottom: 1px solid rgba(201, 166, 94, 0.15);
  padding: 16px 0;
}

.adventure-faq__q {
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0 0 8px;
}

.adventure-faq__a {
  font-family: 'Barlow', sans-serif;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ── Methodology ───────────────────────────────────────────────────────── */
.adventure-section--methodology p {
  font-family: 'Barlow', sans-serif;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 720px;
}

.adventure-section--methodology em {
  color: var(--text-base);
  font-style: normal;
}

/* ── Items groups spacing ──────────────────────────────────────────────── */
.adventure-section--items-intro {
  margin-bottom: -24px;
}

.adventure-items-group {
  margin-top: 32px;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .adventure-hero { padding: 24px 0 16px; }
  .adventure-grid--items { grid-template-columns: 1fr; }
  .adventure-profile-grid { grid-template-columns: 1fr; }
  .adventure-mode-grid { grid-template-columns: 1fr; }
  .adventure-item-card__desc { display: none; }
}
