/*!
 * Cassiopeia Extended — eSports (site-wide)
 * -----------------------------------------------------------------------------
 * Fichier GLOBAL :
 * - Variables (tokens)
 * - Styles généraux (cards, forms, liens)
 * - Menu "arena" sous le HERO (si classe module = gx-menu-under-hero)
 * -----------------------------------------------------------------------------
 */

/* =============================================================================
   1) VARIABLES (Design tokens)
   ========================================================================== */
:root{
  /* Polices (fallback si fonts.css n’injecte pas encore de variables) */
  --gx-font-head: "Rajdhani", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --gx-font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Couleurs / surfaces */
  --gx-surface: rgba(18, 18, 26, .78);
  --gx-surface-2: rgba(18, 18, 26, .92);
  --gx-border: rgba(255,255,255,.10);
  --gx-gold: rgba(245,197,66,1);
  --gx-gold-soft: rgba(245,197,66,.35);

  /* Texte */
  --gx-text: rgba(255,255,255,.92);
  --gx-muted: rgba(255,255,255,.65);

  /* UI */
  --gx-radius: 18px;
  --gx-shadow: 0 20px 45px rgba(0,0,0,.55);
}

/* =============================================================================
   2) BASE
   ========================================================================== */
body{
  color: var(--gx-text);
  font-family: var(--gx-font-body);
}

a{ text-decoration: none; }
a:hover{ text-decoration: none; }

h1,h2,h3,h4,h5,h6{
  font-family: var(--gx-font-head);
  letter-spacing: .02em;
}

/* =============================================================================
   3) HEADER (neutralisé pour ton design)
   - Tu as choisi d’afficher l’identité dans le HERO, pas dans le header.
   ========================================================================== */
header.header,
.header,
.container-header{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  min-height: 0 !important;
}

header.header::before,
header.header::after,
.container-header::before,
.container-header::after{
  content: none !important;
  display: none !important;
}

/* Cache brand/logo texte (le titre est dans le HERO) */
header.header .navbar-brand,
header.header .brand-logo,
header.header .site-title{
  display: none !important;
}

/* =============================================================================
   4) LAYOUT
   ========================================================================== */
.container-component{ padding-top: 1rem; }

/* =============================================================================
   5) BREADCRUMB (global)
   - La version "arena" spécifique home est dans esports-home.css
   ========================================================================== */
.mod-breadcrumbs__wrapper{ background: transparent !important; }

.mod-breadcrumbs{
  background: var(--gx-surface) !important;
  border: 1px solid var(--gx-border) !important;
  border-radius: var(--gx-radius) !important;
}

/* =============================================================================
   6) TITRES DE PAGE
   ========================================================================== */
.page-header h1,
.page-header .page-title,
.blog-featured > .page-header h1{
  color: rgba(255,255,255,.96) !important;
  text-shadow: 0 10px 30px rgba(0,0,0,.6);
}

/* Cache le H1 "Home" sur l’accueil (itemid-101) */
body.itemid-101 .page-header h1{ display:none !important; }

/* =============================================================================
   7) CARDS / MODULES
   ========================================================================== */
.card,
.moduletable,
.sidebar-right.card,
.container-sidebar-right .card,
.container-sidebar-left .card{
  background: var(--gx-surface) !important;
  border: 1px solid var(--gx-border) !important;
  border-radius: var(--gx-radius) !important;
  box-shadow: var(--gx-shadow);
  overflow: hidden;
}

.card-header{
  background: rgba(0,0,0,.35) !important;
  border-bottom: 1px solid var(--gx-border) !important;
  color: rgba(255,255,255,.95) !important;
  font-family: var(--gx-font-head);
  letter-spacing: .04em;
}

.card-body{ color: var(--gx-text) !important; }
.text-muted,.small{ color: var(--gx-muted) !important; }

/* =============================================================================
   8) FORMS / INPUTS
   ========================================================================== */
.form-control,
.input-group-text{
  background: rgba(0,0,0,.35) !important;
  border: 1px solid var(--gx-border) !important;
  color: rgba(255,255,255,.92) !important;
}
.form-control::placeholder{ color: rgba(255,255,255,.45); }

/* =============================================================================
   9) BOUTONS
   ========================================================================== */
.btn-secondary{
  background: rgba(255,255,255,.08) !important;
  border: 1px solid var(--gx-border) !important;
  color: rgba(255,255,255,.9) !important;
}
.btn-secondary:hover{ border-color: var(--gx-gold-soft) !important; }

.btn-primary{
  box-shadow: 0 14px 30px rgba(245,197,66,.18);
}
.btn-primary:hover{
  box-shadow: 0 18px 35px rgba(245,197,66,.24);
}

/* =============================================================================
   10) MENU "ARENA" SOUS LE HERO (IMPORTANT)
   --------------------------------------------------------------------------
   Le “Home” bleu à gauche que tu vois = ton module MENU qui n’est pas stylé.
   Pour activer ce style :
   - Dans le module Menu : Avancé -> Classe du module = gx-menu-under-hero
   ========================================================================== */
.gx-menu-under-hero{
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: .85rem 1rem;
  border-radius: 18px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}

/* UL Cassiopeia : <ul class="mod-menu mod-list nav"> */
.gx-menu-under-hero ul.mod-menu{
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: .55rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Items */
.gx-menu-under-hero ul.mod-menu > li{
  margin: 0 !important;
  padding: 0 !important;
}

/* Liens : gros, centrés, cohérents avec la charte */
.gx-menu-under-hero ul.mod-menu > li > a{
  display: inline-block !important;
  padding: .75rem 1.15rem !important;
  border-radius: 999px !important;
  font-family: var(--gx-font-head) !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: .10em !important;
  font-size: 1rem !important;

  color: rgba(255,255,255,.92) !important;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}

.gx-menu-under-hero ul.mod-menu > li > a:hover{
  background: rgba(245,197,66,.10);
  border-color: rgba(245,197,66,.45);
  box-shadow: 0 0 18px rgba(245,197,66,.18);
  color: #fff !important;
}

.gx-menu-under-hero ul.mod-menu > li.active > a,
.gx-menu-under-hero ul.mod-menu > li > a[aria-current="page"]{
  background: rgba(245,197,66,.18);
  border-color: rgba(245,197,66,.55);
  box-shadow: 0 0 22px rgba(245,197,66,.22);
  color: #fff !important;
}

@media (max-width: 768px){
  .gx-menu-under-hero{ padding: .65rem .75rem; }
  .gx-menu-under-hero ul.mod-menu > li > a{
    font-size: .92rem !important;
    padding: .62rem .9rem !important;
    letter-spacing: .07em !important;
  }
}

/* =============================================================================
   11) FOOTER
   ========================================================================== */
footer.footer{
  background: var(--footerbg) !important;
  color: var(--footercolor) !important;
  border-top: 1px solid var(--gx-border);
}
/* =============================================================================
   MENU ARENA TABS (launcher style)
   Active quand le module Menu a la classe : gx-menu-under-hero
   ========================================================================== */

/* Barre */
.gx-menu-under-hero{
  padding: .95rem 1.1rem;
  border-radius: 18px;
  background:
    radial-gradient(900px 120px at 50% 0%, rgba(245,197,66,.12), transparent 60%),
    rgba(0,0,0,.40);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  box-shadow:
    0 18px 40px rgba(0,0,0,.45),
    inset 0 0 0 1px rgba(255,255,255,.04);
  position: relative;
}

/* Fine ligne "scan" au-dessus */
.gx-menu-under-hero::before{
  content:"";
  position:absolute;
  left: 12px;
  right: 12px;
  top: 8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(245,197,66,.55), transparent);
  opacity: .55;
}

/* UL centrée */
.gx-menu-under-hero ul.mod-menu{
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: .55rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Liens = onglets */
.gx-menu-under-hero ul.mod-menu > li > a{
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  padding: .78rem 1.15rem !important;
  border-radius: 14px !important;

  font-family: var(--gx-font-head) !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: .10em !important;
  font-size: 1rem !important;

  color: rgba(255,255,255,.90) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(0,0,0,.20));
  border: 1px solid rgba(255,255,255,.12);

  box-shadow:
    0 10px 22px rgba(0,0,0,.38),
    inset 0 0 0 1px rgba(255,255,255,.04);

  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease,
    color .16s ease;
}

/* Petit liseré bas type "tab" */
.gx-menu-under-hero ul.mod-menu > li > a::after{
  content:"";
  position:absolute;
  left: 14%;
  right: 14%;
  bottom: -2px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(245,197,66,.0), transparent);
  transition: .16s ease;
}

/* Hover = néon + léger lift */
.gx-menu-under-hero ul.mod-menu > li > a:hover{
  transform: translateY(-1px);
  color: #fff !important;
  border-color: rgba(245,197,66,.50);
  background:
    linear-gradient(180deg, rgba(245,197,66,.14), rgba(0,0,0,.22));
  box-shadow:
    0 0 24px rgba(245,197,66,.18),
    0 12px 26px rgba(0,0,0,.45),
    inset 0 0 0 1px rgba(245,197,66,.16);
}
.gx-menu-under-hero ul.mod-menu > li > a:hover::after{
  background: linear-gradient(90deg, transparent, rgba(245,197,66,.75), transparent);
  box-shadow: 0 0 18px rgba(245,197,66,.35);
}

/* Actif = plaque + glow plus fort */
.gx-menu-under-hero ul.mod-menu > li.active > a,
.gx-menu-under-hero ul.mod-menu > li > a[aria-current="page"]{
  color: #fff !important;
  border-color: rgba(245,197,66,.65);
  background:
    radial-gradient(160px 60px at 50% 0%, rgba(245,197,66,.18), transparent 70%),
    linear-gradient(180deg, rgba(245,197,66,.16), rgba(0,0,0,.25));
  box-shadow:
    0 0 34px rgba(245,197,66,.22),
    0 16px 34px rgba(0,0,0,.55),
    inset 0 0 0 1px rgba(245,197,66,.20);
}
.gx-menu-under-hero ul.mod-menu > li.active > a::after,
.gx-menu-under-hero ul.mod-menu > li > a[aria-current="page"]::after{
  background: linear-gradient(90deg, transparent, rgba(245,197,66,.95), transparent);
  box-shadow: 0 0 22px rgba(245,197,66,.45);
}

/* Mobile : onglets plus compacts */
@media (max-width: 768px){
  .gx-menu-under-hero{ padding: .75rem .8rem; }
  .gx-menu-under-hero ul.mod-menu > li > a{
    font-size: .92rem !important;
    padding: .62rem .85rem !important;
    border-radius: 12px !important;
    letter-spacing: .07em !important;
  }
}
