/* ════════════════════════════════════════
   CONTENT — styles partagés guides / classes / univers
════════════════════════════════════════ */

/* ── Page hero compact ── */
.page-hero { margin-top: 0; height: 360px; position: relative; overflow: hidden; padding-top: 62px; }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 35%; }
.page-hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,12,24,0.55) 0%, rgba(8,12,24,0.35) 40%, rgba(8,12,24,0.82) 100%);
}
.page-hero-body {
  position: relative; z-index: 2; height: 100%;
  max-width: 1440px; margin: 0 auto; padding: 0 56px;
  display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 32px;
}
.page-hero-eyebrow { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-lt); margin-bottom: 8px; }
.page-hero-title { font-family: 'Cinzel', serif; font-weight: 900; font-size: 2.8rem; color: #fff; line-height: 1; text-shadow: 0 2px 20px rgba(0,0,0,0.8); }

/* ── Wrapper ── */
.guides-wrap { max-width: 1380px; margin: 0 auto; padding: 44px 36px 64px; }

/* ── Filtres ── */
.cat-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 40px; }
.cat-tab {
  padding: 7px 18px; border-radius: 4px;
  border: 1px solid var(--border); background: var(--bg-card);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); cursor: pointer; transition: all 0.15s;
}
.cat-tab:hover { border-color: var(--accent); color: #c8d8f0; }
.cat-tab.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Section header ── */
.guides-section { margin-bottom: 52px; }
.section-hdr { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.section-hdr-icon { font-size: 1.4rem; opacity: 0.9; }
.section-hdr-title { font-family: 'Cinzel', serif; font-size: 1.05rem; font-weight: 700; color: #fff; letter-spacing: 0.08em; }
.section-hdr-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border) 0%, transparent 100%); }
.section-hdr-count { font-size: 0.65rem; color: var(--muted); font-weight: 600; letter-spacing: 0.08em; }

/* ── Grille de cartes ── */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ── Carte ── */
.guide-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 6px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
  cursor: pointer; text-decoration: none; color: inherit;
}
.guide-card:hover { border-color: rgba(58,139,186,0.55); transform: translateY(-3px); box-shadow: 0 10px 32px rgba(0,0,0,0.4); }

.card-thumb { height: 140px; position: relative; overflow: hidden; flex-shrink: 0; }
.card-thumb-bg { position: absolute; inset: 0; background-size: cover; background-position: center center; transition: transform 0.3s ease; }
.card-thumb-bg.bg-contain { background-size: contain; background-repeat: no-repeat; }
.guide-card:hover .card-thumb-bg { transform: scale(1.06); }
.card-thumb-ov { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.52) 100%); }
.card-thumb::before, .card-thumb::after {
  content: ''; position: absolute; z-index: 3; width: 10px; height: 10px;
  border-color: rgba(200,168,64,0.55); border-style: solid; pointer-events: none;
}
.card-thumb::before { top: 7px; left: 7px;  border-width: 1.5px 0 0 1.5px; }
.card-thumb::after  { top: 7px; right: 7px; border-width: 1.5px 1.5px 0 0; }

.card-cat-badge {
  position: absolute; bottom: 9px; left: 10px; z-index: 4;
  font-size: 0.55rem; font-weight: 700; letter-spacing: 0.1em;
  padding: 3px 8px; border-radius: 2px; text-transform: uppercase;
}

/* ── Badges catégorie guides ── */
.cat-debutant { background: rgba(16,185,129,0.28); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.4); }
.cat-classes  { background: rgba(139,92,246,0.28); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.4); }
.cat-meca     { background: rgba(245,158,11,0.28); color: #fcd34d; border: 1px solid rgba(245,158,11,0.4); }
.cat-leveling { background: rgba(239,68,68,0.28);  color: #fca5a5; border: 1px solid rgba(239,68,68,0.4); }

/* ── Badges rôle classes ── */
.role-dps     { background: rgba(239,68,68,0.28);  color: #fca5a5; border: 1px solid rgba(239,68,68,0.4); }
.role-tank    { background: rgba(59,130,246,0.28); color: #93c5fd; border: 1px solid rgba(59,130,246,0.4); }
.role-heal    { background: rgba(16,185,129,0.28); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.4); }
.role-support { background: rgba(245,158,11,0.28); color: #fcd34d; border: 1px solid rgba(245,158,11,0.4); }

/* ── Badges faction ── */
.faction-badge {
  position: absolute; top: 9px; right: 10px; z-index: 4;
  font-size: 0.5rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 2px 7px; border-radius: 2px; text-transform: uppercase;
}
.faction-elyos     { background: rgba(255,220,80,0.25); color: #fde68a; border: 1px solid rgba(255,220,80,0.3); }
.faction-asmodians { background: rgba(139,92,246,0.25); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.3); }
.faction-both      { display: none; }

/* ── Badges lore ── */
.lore-histoire  { background: rgba(245,158,11,0.28); color: #fcd34d; border: 1px solid rgba(245,158,11,0.4); }
.lore-regions   { background: rgba(16,185,129,0.28); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.4); }
.lore-factions  { background: rgba(139,92,246,0.28); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.4); }
.lore-creatures { background: rgba(239,68,68,0.28);  color: #fca5a5; border: 1px solid rgba(239,68,68,0.4); }

/* ── Badges difficulté ── */
.diff-badge { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 2px; text-transform: uppercase; }
.diff-easy   { background: rgba(16,185,129,0.15); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.3); }
.diff-medium { background: rgba(245,158,11,0.15);  color: #fcd34d; border: 1px solid rgba(245,158,11,0.3); }
.diff-hard   { background: rgba(239,68,68,0.15);   color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }

/* ── Corps de la carte ── */
.card-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card-title { font-family: 'Cinzel', serif; font-size: 0.82rem; font-weight: 700; color: #e8f0ff; line-height: 1.35; }
.card-desc { font-size: 0.73rem; color: rgba(220,232,248,0.55); line-height: 1.6; flex: 1; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.card-meta { display: flex; align-items: center; gap: 10px; }
.card-time { font-size: 0.62rem; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.card-time svg { opacity: 0.6; }
.card-link { font-size: 0.62rem; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.15s; white-space: nowrap; }
.guide-card:hover .card-link { color: var(--accent-h); }

/* ── Contenu riche (guide / build) ── */
.guide-content {
  line-height: 1.8;
  font-size: 0.93rem;
  color: var(--text);
}
.guide-content img {
  max-width: 100%;
  max-height: 480px;
  width: auto;
  height: auto;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
/* Neutralise les inline styles du Quill editor (couleurs noires sur fond sombre) */
.guide-content span[style] { color: inherit !important; background-color: transparent !important; }
.guide-content p[style]    { background-color: transparent !important; }
.guide-content .ql-align-justify { text-align: justify; }
.guide-content .ql-align-center  { text-align: center; }
.guide-content .ql-align-right   { text-align: right; }
.guide-content h1,
.guide-content h2,
.guide-content h3,
.guide-content h4 {
  font-family: 'Cinzel', serif;
  color: #e8f0ff;
  margin: 2em 0 0.6em;
  line-height: 1.2;
}
.guide-content h1 { font-size: 1.7rem; }
.guide-content h2 { font-size: 1.3rem; border-bottom: 1px solid rgba(74,120,224,0.2); padding-bottom: 0.4em; }
.guide-content h3 { font-size: 1.05rem; }
.guide-content h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.guide-content p  { margin: 0 0 1em; }
.guide-content ul,
.guide-content ol { margin: 0 0 1em 1.4em; }
.guide-content li { margin-bottom: 0.3em; }
.guide-content a  { color: var(--accent); text-decoration: none; }
.guide-content a:hover { text-decoration: underline; }
.guide-content strong { color: #e8f0ff; font-weight: 600; }
.guide-content em { color: rgba(220,232,248,0.75); }
.guide-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.2em 0;
  padding: 0.6em 1.2em;
  background: rgba(58,139,186,0.07);
  border-radius: 0 6px 6px 0;
  color: rgba(220,232,248,0.8);
}
.guide-content code {
  font-family: 'Courier New', monospace;
  background: rgba(255,255,255,0.07);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-size: 0.85em;
}
.guide-content pre {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1em 1.2em;
  overflow-x: auto;
  margin: 1em 0;
}
.guide-content pre code { background: none; padding: 0; }
.guide-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 0.5em 0;
}
.guide-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.85rem;
}
.guide-content th {
  background: rgba(58,139,186,0.12);
  color: var(--accent);
  font-weight: 600;
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(74,120,224,0.25);
}
.guide-content td {
  padding: 7px 12px;
  border-bottom: 1px solid rgba(74,120,224,0.1);
}
.guide-content tr:last-child td { border-bottom: none; }
.guide-content hr {
  border: none;
  border-top: 1px solid rgba(74,120,224,0.2);
  margin: 2em 0;
}
.guide-content kbd {
  display: inline-block;
  padding: 1px 7px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  font-size: 0.82em;
  font-family: 'Courier New', monospace;
  color: #e8f0ff;
}
.guide-figure {
  margin: 1.4em 0;
  text-align: center;
}
.guide-figure img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(74,120,224,0.2);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

/* ── Responsive ── */
@media (max-width: 1024px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr; }
  .page-hero-title { font-size: 2rem; }
  .page-hero-body { padding: 0 24px 24px; }
  .guides-wrap { padding: 28px 18px 48px; }
}
