/* ========================================================================
   TCGEM - MIXINS / FUNCTIONS LESS
   ------------------------------------------------------------------------
   Ce fichier contient les helpers techniques réutilisables.
   Les valeurs de design sont centralisées dans variable.less.
   ======================================================================== */
/* ========================================================================
   TCGEM - VARIABLES LESS
   ------------------------------------------------------------------------
   Source principale pour les fontes, couleurs et valeurs UI communes.
   Les variables "legacy" en bas de fichier sont conservées temporairement
   pour compatibilité avec les anciens fichiers LESS.
   ======================================================================== */
/* ------------------------------------------------------------------------
   1. HOST / PATHS
   ------------------------------------------------------------------------ */
/* ------------------------------------------------------------------------
   2. FONTES PRINCIPALES
   ------------------------------------------------------------------------ */
/* Helpers de taille - conservés ici car ils dépendent des variables ci-dessus */
/* ------------------------------------------------------------------------
   3. COULEURS DE MARQUE
   ------------------------------------------------------------------------ */
/* ------------------------------------------------------------------------
   4. COULEURS TEXTE / NEUTRES
   ------------------------------------------------------------------------ */
/* ------------------------------------------------------------------------
   5. THEME DARK / SURFACES
   ------------------------------------------------------------------------ */
/* ------------------------------------------------------------------------
   6. THEME LIGHT / SURFACES
   ------------------------------------------------------------------------ */
/* ------------------------------------------------------------------------
   7. EFFETS / FOCUS
   ------------------------------------------------------------------------ */
/* ------------------------------------------------------------------------
   7.b HEADER / THEME UI COMMUN
   ------------------------------------------------------------------------ */
:root {
  --theme-sidebar-width: 280px;
  --theme-sidebar-collapsed-width: 72px;
}
#main {
  --theme-primary: #6C4F7D;
  --theme-secondary: #e2d6c1;
  --theme-accent: #9b7ab1;
  --theme-warning: #f5b942;
  --theme-shadow-floating: 0 24px 70px rgba(0, 0, 0, 0.32);
}
#main.main-theme-dark,
#main:not(.main-theme-light) {
  --theme-main-bg: radial-gradient(circle at top, rgba(108, 79, 125, 0.2) 0, rgba(16, 16, 18, 0) 40%), linear-gradient(180deg, #15131a 0, #1b1920 100%);
  --theme-bg-solid: #111111;
  --theme-bg-soft: #171717;
  --theme-bg-glass: rgba(17, 17, 17, 0.88);
  --theme-sidebar-bg: #151515;
  --theme-surface: #202020;
  --theme-surface-hover: #2c2c2c;
  --theme-card-hover: rgba(255, 255, 255, 0.1);
  --theme-border: rgba(255, 255, 255, 0.12);
  --theme-text: #ffffff;
  --theme-text-soft: rgba(255, 255, 255, 0.78);
  --theme-text-muted: rgba(255, 255, 255, 0.5600000000000001);
  --theme-muted: rgba(255, 255, 255, 0.58);
  --theme-sidebar-shadow: 16px 0 40px rgba(0, 0, 0, 0.26);
}
#main.main-theme-light {
  --theme-main-bg: radial-gradient(circle at top, rgba(108, 79, 125, 0.1) 0, rgba(255, 255, 255, 0) 42%), linear-gradient(180deg, #ffffff 0, #f4f1ed 100%);
  --theme-bg-solid: #ffffff;
  --theme-bg-soft: #f4f1ed;
  --theme-bg-glass: rgba(255, 255, 255, 0.88);
  --theme-sidebar-bg: #ffffff;
  --theme-surface: #ffffff;
  --theme-surface-hover: #f0ece7;
  --theme-card-hover: rgba(75, 42, 94, 0.08);
  --theme-border: rgba(51, 51, 51, 0.12);
  --theme-text: #222222;
  --theme-text-soft: rgba(34, 34, 34, 0.76);
  --theme-text-muted: rgba(34, 34, 34, 0.55);
  --theme-muted: rgba(34, 34, 34, 0.58);
  --theme-shadow-floating: 0 24px 70px rgba(44, 30, 54, 0.18);
  --theme-sidebar-shadow: 12px 0 32px rgba(44, 30, 54, 0.08);
}
/* ------------------------------------------------------------------------
   8. COULEURS ETATS CARTES
   ------------------------------------------------------------------------ */
/* ------------------------------------------------------------------------
   9. FONTE ELFIQUE
   ------------------------------------------------------------------------ */
@font-face {
  font-family: 'AlcarinTengwar';
  src: url('https://www.tcgem.app/resource/fonts/alcarin-tengwar/AlcarinTengwar-Regular.woff2') format('woff2'), url('https://www.tcgem.app/resource/fonts/alcarin-tengwar/AlcarinTengwar-Regular.woff') format('woff'), url('https://www.tcgem.app/resource/fonts/alcarin-tengwar/AlcarinTengwar-Regular.ttf') format('truetype'), url('https://www.tcgem.app/resource/fonts/alcarin-tengwar/AlcarinTengwar-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'AlcarinTengwar';
  src: url('https://www.tcgem.app/resource/fonts/alcarin-tengwar/AlcarinTengwar-Bold.woff2') format('woff2'), url('https://www.tcgem.app/resource/fonts/alcarin-tengwar/AlcarinTengwar-Bold.woff') format('woff'), url('https://www.tcgem.app/resource/fonts/alcarin-tengwar/AlcarinTengwar-Bold.ttf') format('truetype'), url('https://www.tcgem.app/resource/fonts/alcarin-tengwar/AlcarinTengwar-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
.card-elvish-text {
  font-family: 'AlcarinTengwar', monospace !important;
  font-weight: 400;
}
.card-elvish-text strong,
.card-elvish-text b {
  font-weight: 700;
}
/* ========================================================================
   10. ALIAS LEGACY - A REMPLACER PUIS SUPPRIMER PLUS TARD
   ------------------------------------------------------------------------
   Ces anciennes variables reprennent les valeurs principales ci-dessus.
   Elles permettent aux anciens fichiers LESS de compiler sans modification
   immédiate. A terme, remplace-les par les variables en kebab-case.
   ======================================================================== */
.explore-page {
  --explore-surface: var(--theme-bg-glass);
  --explore-surface-strong: var(--theme-surface);
  --explore-surface-soft: var(--theme-surface-hover);
  --explore-border: var(--theme-border);
  --explore-text: var(--theme-text);
  --explore-text-soft: var(--theme-text-soft);
  --explore-text-muted: var(--theme-text-muted);
  --explore-shadow: var(--theme-shadow-floating);
  --explore-accent: var(--theme-primary);
  --explore-accent-soft: rgba(108, 79, 125, 0.18);
  --explore-accent-strong: #e2d6c1;
  padding: 28px clamp(14px, 3.6vw, 42px) 52px;
  color: var(--explore-text);
}
#main.main-theme-dark .explore-page,
#main:not(.main-theme-light) .explore-page {
  --explore-surface: rgba(17, 17, 17, 0.72);
  --explore-surface-strong: rgba(32, 32, 32, 0.86);
  --explore-surface-soft: rgba(255, 255, 255, 0.06);
  --explore-border: rgba(255, 255, 255, 0.11);
  --explore-text: #fff;
  --explore-text-soft: rgba(255, 255, 255, 0.78);
  --explore-text-muted: rgba(255, 255, 255, 0.58);
  --explore-shadow: 0 24px 62px rgba(0, 0, 0, 0.28);
  --explore-accent-soft: rgba(226, 214, 193, 0.14);
  --explore-accent-strong: #e2d6c1;
}
#main.main-theme-light .explore-page {
  --explore-surface: rgba(255, 255, 255, 0.66);
  --explore-surface-strong: rgba(255, 255, 255, 0.88);
  --explore-surface-soft: rgba(75, 42, 94, 0.06);
  --explore-border: rgba(44, 30, 54, 0.12);
  --explore-text: #222;
  --explore-text-soft: rgba(34, 34, 34, 0.76);
  --explore-text-muted: rgba(34, 34, 34, 0.58);
  --explore-shadow: 0 18px 46px rgba(44, 30, 54, 0.12);
  --explore-accent-soft: rgba(108, 79, 125, 0.1);
  --explore-accent-strong: #4b2a5e;
}
.explore-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 30px;
}
.explore-hero-copy,
.explore-hero-panel,
.explore-card,
.explore-empty {
  border: 1px solid var(--explore-border);
  background: var(--explore-surface);
  box-shadow: var(--explore-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.explore-hero-copy {
  padding: clamp(22px, 4vw, 40px);
  border-radius: 8px;
}
.explore-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  color: var(--explore-accent-strong);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}
#main.main-theme-light .explore-kicker {
  color: var(--explore-accent-strong);
}
.explore-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5.4vw, 4rem);
  font-weight: 950;
  line-height: 0.98;
}
.explore-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--explore-text-soft);
  font-size: 1.03rem;
  line-height: 1.68;
}
.explore-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.explore-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  font-weight: 800;
}
.explore-actions .btn-outline-light {
  border-color: var(--explore-border);
  background: var(--explore-surface-soft);
  color: var(--explore-text);
}
.explore-actions .btn-outline-light:hover,
.explore-actions .btn-outline-light:focus {
  border-color: rgba(108, 79, 125, 0.36);
  background: var(--explore-accent-soft);
  color: var(--explore-text);
}
.explore-hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 250px;
  padding: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--explore-accent-soft), transparent 62%), var(--explore-surface-strong);
}
.explore-hero-panel > i {
  margin-bottom: auto;
  font-size: 3rem;
  color: var(--explore-accent-strong);
}
.explore-hero-panel strong {
  font-size: 1.22rem;
}
.explore-hero-panel span,
.explore-section-head a,
.explore-card p,
.explore-empty p {
  color: var(--explore-text-muted);
}
.explore-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}
.explore-section-head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2.05rem);
  font-weight: 900;
}
.explore-section-head a {
  font-weight: 850;
  text-decoration: none;
}
.explore-section-head a:hover,
.explore-card a:hover {
  color: var(--explore-accent-strong);
}
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.explore-card {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 36px;
  gap: 13px;
  align-items: center;
  min-height: 128px;
  padding: 16px;
  border-radius: 8px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.explore-card:hover {
  border-color: rgba(108, 79, 125, 0.34);
  background: linear-gradient(135deg, var(--explore-accent-soft), transparent 72%), var(--explore-surface-strong);
  transform: translateY(-2px);
}
.explore-card-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: var(--explore-accent-soft);
  color: var(--explore-accent-strong);
  font-size: 1.3rem;
}
.explore-card h3 {
  margin: 0 0 6px;
  color: var(--explore-text);
  font-size: 1.02rem;
  font-weight: 850;
  line-height: 1.26;
}
.explore-card p {
  margin: 0 0 10px;
  font-size: 0.9rem;
}
.explore-card a {
  text-decoration: none;
}
.explore-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.explore-tags span {
  display: inline-flex;
  padding: 5px 8px;
  border: 1px solid var(--explore-border);
  border-radius: 999px;
  background: var(--explore-surface-soft);
  color: var(--explore-text-soft);
  font-size: 0.73rem;
  font-weight: 800;
}
.explore-card-link {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--explore-surface-soft);
  color: var(--explore-accent-strong);
}
.explore-empty {
  grid-column: 1 / -1;
  padding: 34px;
  border-radius: 8px;
  text-align: center;
}
.explore-empty i {
  font-size: 2.5rem;
  color: var(--explore-accent-strong);
}
.explore-empty h3 {
  margin-top: 10px;
  color: var(--explore-text);
}
@media (max-width: 991.98px) {
  .explore-page {
    padding: 18px 12px 42px;
  }
  .explore-hero,
  .explore-grid {
    grid-template-columns: 1fr;
  }
  .explore-hero-panel {
    min-height: 180px;
  }
  .explore-section-head {
    align-items: start;
    flex-direction: column;
  }
}
@media (max-width: 575.98px) {
  .explore-page {
    padding-left: 10px;
    padding-right: 10px;
  }
  .explore-hero-copy {
    padding: 22px 18px;
  }
  .explore-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .explore-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .explore-card-icon {
    width: 44px;
    height: 44px;
  }
  .explore-card-link {
    grid-column: 1 / -1;
    width: 100%;
    border-radius: 8px;
  }
}
