/* ======================================================================
   ✅ Moon-Host Navbar (mh-navbar.css)
   v2.0 — Clean Premium Gameserver Header
   Row1: Logo center
   Row2: Left CTA | Center Menu absolute true center | Right Status + Icons + GameCP

   Irány:
   - ugyanaz az alap, mint a meglévő jó navbarod
   - egy nagy, egységes sötét navbar-sáv
   - nincs téglalap a téglalapban
   - nincs túlkeretezett admin-panel feeling
   - csak Kunden-Center és GameCP kap gomb karaktert
   - status link természetesen ül a sorban
   ====================================================================== */

:root{
  --mh-red:#ff4a4a;
  --mh-red-strong:#ff3030;
  --mh-red-dark:#9b1016;

  --mh-green:#2ee978;
  --mh-green-soft:rgba(46,233,120,.16);

  --mh-bg:#020308;
  --mh-bg-2:#05070d;

  --mh-text:rgba(255,255,255,.92);
  --mh-text-dim:rgba(255,255,255,.78);
  --mh-text-soft:rgba(255,255,255,.60);
  --mh-text-muted:rgba(255,255,255,.42);

  --mh-glass:rgba(0,0,0,.54);
  --mh-glass-strong:rgba(0,0,0,.72);

  --mh-stroke:rgba(255,255,255,.10);
  --mh-stroke-soft:rgba(255,255,255,.065);
  --mh-stroke-strong:rgba(255,255,255,.16);

  --mh-shadow:0 18px 46px rgba(0,0,0,.38);
  --mh-red-shadow:0 18px 44px rgba(255,74,74,.18);
}

/* ======================================================================
   BASE
   ====================================================================== */

html,
body{
  margin:0;
  padding:0;
}

body{
  font-family:'Poppins','Inter','Segoe UI',Arial,sans-serif;
}

.mh-navbar,
.mh-navbar *{
  box-sizing:border-box;
}

.mh-navbar a{
  text-decoration:none !important;
}

.mh-navbar ul,
.mh-navbar li{
  margin:0;
  padding:0;
  list-style:none;
}

.mh-navbar button{
  font-family:inherit;
}

/* ======================================================================
   FADE / SCROLL LOGIC
   ====================================================================== */

.navbar-fade{
  transition:
    opacity .35s ease,
    background-color .25s ease,
    box-shadow .25s ease,
    border-color .25s ease,
    padding .25s ease;
}

.navbar-transparent{
  opacity:1;
}

.navbar-opaque{
  opacity:1;
}

/* ======================================================================
   NAVBAR OUTER
   ====================================================================== */

.mh-navbar{
  position:relative;
  z-index:5000;

  width:100%;
  padding:12px 0;

  background:
    radial-gradient(860px 260px at 50% -170px, rgba(255,74,74,.09), transparent 72%),
    linear-gradient(180deg, rgba(2,3,8,.98), rgba(3,4,10,.96)) !important;

  border-bottom:1px solid rgba(255,255,255,.055);

  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);

  box-shadow:none;
}

.mh-navbar::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;

  height:1px;

  background:linear-gradient(90deg, transparent, rgba(255,74,74,.28), transparent);
  pointer-events:none;
}

.mh-navbar.is-scrolled{
  padding:8px 0;

  background:
    radial-gradient(700px 210px at 50% -160px, rgba(255,74,74,.07), transparent 74%),
    linear-gradient(180deg, rgba(0,0,0,.78), rgba(0,0,0,.70)) !important;

  border-bottom-color:rgba(255,255,255,.09);

  box-shadow:
    0 14px 34px rgba(0,0,0,.34);
}

/* ======================================================================
   NAVBAR WRAPPER
   ====================================================================== */

.mh-navwrap{
  position:relative;

  display:flex;
  align-items:center;

  width:100%;
  max-width:none;

  margin:0 auto;
  padding:0 28px !important;
}

/* ======================================================================
   BRAND / LOGO
   ====================================================================== */

.mh-brand{
  margin:0 !important;
  padding:0 !important;
}

.mh-brand-logo{
  height:100px;
  width:auto;

  display:block;
  object-fit:contain;

  opacity:.98;

  filter:
    drop-shadow(0 10px 18px rgba(0,0,0,.50));
}

/* ======================================================================
   DESKTOP — 2 SOROS GRID
   Row1: logo center
   Row2: left | true center menu | right
   ====================================================================== */

@media (min-width:992px){

  .mh-navwrap{
    display:grid !important;
    grid-template-columns:auto 1fr auto;
    grid-template-rows:76px 56px;

    align-items:center;

    column-gap:18px;
    row-gap:8px;

    padding-left:34px !important;
    padding-right:34px !important;
  }

  .mh-brand-center{
    grid-column:2;
    grid-row:1;

    justify-self:center;
    align-self:center;

    position:relative;
    top:0 !important;
    z-index:5;

    margin:0 !important;
    padding:4px 0 6px !important;

    transform:none !important;
  }

  .mh-brand-center::before,
  .mh-brand-center::after{
    display:none !important;
    content:none !important;
  }

  .mh-brand-logo{
    height:92px;
  }

  .navbar-toggler{
    display:none !important;
  }

  #navbarSupportedContent,
  .mh-collapse{
    grid-column:1 / -1;
    grid-row:2;

    position:relative;

    display:grid !important;
    grid-template-columns:auto 1fr auto;
    align-items:center;

    column-gap:18px;

    min-height:56px;

    margin:0 !important;
    padding:0 !important;

    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
  }

  .mh-col-left{
    justify-self:start;

    display:flex;
    align-items:center;

    z-index:2;
  }

  .mh-col-center{
    position:absolute;
    left:50%;
    top:50%;

    transform:translate(-50%, -50%);

    display:flex;
    align-items:center;
    justify-content:center;

    width:max-content;

    z-index:5001;
  }

  .mh-col-right{
    justify-self:end;

    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:14px;

    z-index:2;
  }

  .navbar-brand{
    margin-right:0 !important;
  }
}

/* ======================================================================
   MENU
   ====================================================================== */

.menu,
.mh-menu{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:46px;

  margin:0;
  padding:0;

  background:transparent;
}

.menu li,
.mh-menu li{
  position:relative;

  display:flex;
  align-items:center;
}

.menu li a,
.mh-menu li a{
  position:relative;

  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  padding:10px 10px;

  color:rgba(255,255,255,.86);
  text-decoration:none;

  font-size:13px;
  font-weight:760;
  letter-spacing:.16px;
  line-height:1;

  white-space:nowrap;

  border-radius:12px;

  transition:
    color .15s ease,
    background-color .15s ease,
    transform .15s ease,
    opacity .15s ease;
}

.menu li a:hover,
.mh-menu li a:hover,
.menu li a.is-active,
.mh-menu li a.is-active,
.menu li.is-active > a,
.mh-menu li.is-active > a{
  color:#fff;
  background-color:rgba(255,255,255,.055);

  transform:translateY(-1px);
}

.menu li a::after,
.mh-menu li a::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:3px;

  width:4px;
  height:4px;

  transform:translateX(-50%) scale(0);

  background:var(--mh-red);

  border-radius:999px;

  opacity:0;

  transition:
    opacity .15s ease,
    transform .15s ease;
}

.menu li a:hover::after,
.mh-menu li a:hover::after,
.menu li a.is-active::after,
.mh-menu li a.is-active::after,
.menu li.is-active > a::after,
.mh-menu li.is-active > a::after{
  opacity:.85;
  transform:translateX(-50%) scale(1);
}

.mh-caret{
  font-size:11px;
  opacity:.78;

  transform:translateY(-1px);
}

/* ======================================================================
   DROPDOWN — GAMESERVER CLEAN DARK
   ====================================================================== */

.dropdown,
.mh-dd{
  position:relative;
}

.dropdown-content,
.mh-dd-menu{
  visibility:hidden;
  opacity:0;

  position:absolute;
  top:calc(100% + 12px);
  left:50%;

  min-width:260px;
  padding:10px;

  background:
    linear-gradient(180deg, rgba(12,14,20,.98), rgba(5,6,10,.99));

  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;

  box-shadow:
    0 22px 54px rgba(0,0,0,.58),
    inset 0 1px 0 rgba(255,255,255,.045);

  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);

  z-index:7000;

  transform:translate(-50%, 8px);

  transition:
    opacity .18s ease,
    transform .18s ease,
    visibility .18s ease;
}

/* kis felső nyíl, piros nélkül */
.dropdown-content::before,
.mh-dd-menu::before{
  content:"";
  position:absolute;
  top:-7px;
  left:50%;

  width:12px;
  height:12px;

  transform:translateX(-50%) rotate(45deg);

  background:rgba(12,14,20,.98);

  border-left:1px solid rgba(255,255,255,.10);
  border-top:1px solid rgba(255,255,255,.10);
}

@media (hover:hover) and (pointer:fine){
  .dropdown:hover > .dropdown-content,
  .mh-dd:hover > .mh-dd-menu,
  .mh-dd:hover > .dropdown-content{
    visibility:visible;
    opacity:1;

    transform:translate(-50%, 0);
  }
}

.dropdown.is-open > .dropdown-content,
.mh-dd.is-open > .mh-dd-menu,
.mh-dd.is-open > .dropdown-content{
  visibility:visible;
  opacity:1;

  transform:translate(-50%, 0);
}

.dropdown-content a,
.mh-dd-menu a{
  display:flex;
  align-items:center;
  justify-content:center;

  width:100%;
  min-height:44px;

  padding:0 16px;

  color:rgba(255,255,255,.82);

  font-size:13px;
  font-weight:780;
  letter-spacing:.10px;

  border-radius:12px;

  background:transparent;

  transition:
    background-color .15s ease,
    color .15s ease,
    transform .15s ease;
}

.dropdown-content a::after,
.mh-dd-menu a::after{
  display:none;
}

.dropdown-content a:hover,
.mh-dd-menu a:hover{
  color:#fff;

  background:rgba(255,255,255,.07);

  transform:translateY(-1px);
}

/* Alle Gameserver — piros mentes, prémium kiemelés */
.dropdown-content .mh-dd-all,
.mh-dd-menu .mh-dd-all{
  margin-top:8px;

  color:#fff;

  background:
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));

  border:1px solid rgba(255,255,255,.075);
}

.dropdown-content .mh-dd-all:hover,
.mh-dd-menu .mh-dd-all:hover{
  background:
    linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.055));

  border-color:rgba(255,255,255,.13);
}

/* ======================================================================
   STATUS LINK — Alle Systeme online
   Nem külön doboz, hanem természetes nav elem
   ====================================================================== */

.mh-status-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  min-height:38px;

  color:rgba(255,255,255,.72) !important;

  font-size:12px;
  font-weight:780;
  letter-spacing:.14px;
  line-height:1;

  white-space:nowrap;

  background:transparent;
  border:0;
  box-shadow:none;

  transition:
    color .15s ease,
    transform .15s ease,
    opacity .15s ease;
}

.mh-status-link:hover{
  color:#fff !important;

  transform:translateY(-1px);
}

.mh-status-dot{
  width:8px;
  height:8px;

  display:inline-block;

  border-radius:999px;

  background:var(--mh-green);

  box-shadow:
    0 0 0 4px var(--mh-green-soft),
    0 0 13px rgba(46,233,120,.36);
}

/* ======================================================================
   JOBB OLDAL — SOCIAL ICONS
   ====================================================================== */

.mh-social{
  display:flex;
  align-items:center;
  gap:10px;
}

.mh-iconlink{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  width:38px;
  height:38px;

  border-radius:14px;

  background:rgba(255,255,255,.052);

  border:1px solid rgba(255,255,255,.09);

  box-shadow:none;

  transition:
    transform .15s ease,
    background-color .15s ease,
    border-color .15s ease,
    opacity .15s ease;
}

.mh-iconlink:hover{
  transform:translateY(-1px);

  background:rgba(255,74,74,.13);

  border-color:rgba(255,74,74,.32);
}

.mh-iconlink img{
  width:18px;
  height:18px;

  object-fit:contain;
  display:block;
}

/* ======================================================================
   CTA — KUNDEN-CENTER + GAMECP
   Ugyanaz a stílus.
   Nem külön nagy doboz, csak tiszta piros outline.
   ====================================================================== */

.mh-navbar .btn-outline-primary,
.mh-navbar .mh-cta,
.mh-navbar .mh-gamecp{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;

  min-height:39px;

  padding:9px 19px !important;

  color:rgba(255,74,74,.96) !important;

  font-size:13px;
  font-weight:850;
  letter-spacing:.34px;
  line-height:1;
  text-transform:uppercase;

  white-space:nowrap;

  background:transparent !important;

  border:1px solid rgba(255,74,74,.55) !important;
  border-radius:14px !important;

  box-shadow:
    0 10px 24px rgba(0,0,0,.18),
    0 0 0 1px rgba(255,74,74,.12),
    0 14px 34px rgba(255,74,74,.12);

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

.mh-navbar .btn-outline-primary:hover,
.mh-navbar .mh-cta:hover,
.mh-navbar .mh-gamecp:hover{
  transform:translateY(-1px);

  color:rgba(255,255,255,.98) !important;

  background:rgba(255,74,74,1) !important;

  border-color:rgba(255,74,74,.82) !important;

  box-shadow:
    0 14px 28px rgba(0,0,0,.24),
    0 0 0 1px rgba(255,74,74,.22),
    0 18px 44px rgba(255,74,74,.20);
}

.mh-navbar .btn-outline-primary:active,
.mh-navbar .mh-cta:active,
.mh-navbar .mh-gamecp:active{
  transform:translateY(0);
}

/* Kunden-Center picit erősebb, de nem túlzás */
.mh-navbar .btn-outline-primary,
.mh-navbar .mh-cta{
  box-shadow:
    0 10px 24px rgba(0,0,0,.18),
    0 0 0 1px rgba(255,74,74,.18),
    0 16px 42px rgba(255,74,74,.17);
}

/* ======================================================================
   FOCUS FIX
   ====================================================================== */

.mh-navbar a:focus,
.mh-navbar button:focus,
.mh-navbar .btn:focus{
  outline:none !important;

  box-shadow:
    0 0 0 3px rgba(255,74,74,.16) !important;
}

/* ======================================================================
   SCROLL COMPACT
   ====================================================================== */

@media (min-width:992px){

  .mh-navbar.is-scrolled .mh-navwrap{
    grid-template-rows:58px 52px;
    row-gap:4px;
  }

  .mh-navbar.is-scrolled .mh-brand-logo{
    height:70px;
  }

  .mh-navbar.is-scrolled #navbarSupportedContent,
  .mh-navbar.is-scrolled .mh-collapse{
    min-height:52px;
  }
}

/* ======================================================================
   RESPONSIVE — MID DESKTOP
   ====================================================================== */

@media (max-width:1320px) and (min-width:992px){

  .mh-navwrap{
    padding-left:24px !important;
    padding-right:24px !important;
  }

  .menu,
  .mh-menu{
    gap:12px;
  }

  .menu li a,
  .mh-menu li a{
    padding-left:8px;
    padding-right:8px;

    font-size:12.5px;
  }

  .mh-col-right{
    gap:10px;
  }

  .mh-status-link span:last-child{
    display:none;
  }

  .mh-iconlink{
    width:36px;
    height:36px;
  }

  .mh-navbar .btn-outline-primary,
  .mh-navbar .mh-cta,
  .mh-navbar .mh-gamecp{
    padding-left:16px !important;
    padding-right:16px !important;

    font-size:12.5px;
  }
}

/* ======================================================================
   MOBILE
   ====================================================================== */

@media (max-width:991px){

  .mh-navbar{
    padding:10px 0;

    background:
      radial-gradient(600px 180px at 0% -80px, rgba(255,74,74,.08), transparent 70%),
      linear-gradient(180deg, rgba(2,3,8,.98), rgba(3,4,10,.96)) !important;
  }

  .mh-navbar::after{
    display:none;
  }

  .mh-navwrap{
    width:100%;
    max-width:100%;

    padding-left:16px !important;
    padding-right:16px !important;

    display:flex;
    flex-direction:column;
    align-items:stretch;
  }

  .mh-brand-center{
    position:static !important;

    align-self:flex-start;

    height:auto;

    margin:0 !important;
    padding:0 !important;

    transform:none !important;
    top:0 !important;
  }

  .mh-brand-logo{
    height:72px;
  }

  .mh-toggler{
    position:absolute;
    right:16px;
    top:17px;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    min-width:44px;
    height:42px;

    border:1px solid rgba(255,74,74,.44) !important;
    border-radius:14px !important;

    background:rgba(255,255,255,.045) !important;

    box-shadow:none !important;
  }

  .mh-toggler:focus{
    outline:none !important;

    box-shadow:
      0 0 0 3px rgba(255,74,74,.16) !important;
  }

  #navbarSupportedContent,
  .mh-collapse{
    width:100%;

    margin-top:12px;
    padding:14px !important;

    background:rgba(0,0,0,.36) !important;

    border:1px solid rgba(255,255,255,.075) !important;
    border-radius:18px;

    box-shadow:
      0 16px 34px rgba(0,0,0,.28);

    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
  }

  .mh-col-left,
  .mh-col-center,
  .mh-col-right{
    width:100%;

    display:flex;
    align-items:stretch;
    justify-content:stretch;
  }

  .mh-col-center{
    margin-top:12px;
  }

  .mh-col-right{
    margin-top:12px;

    flex-direction:column;
    gap:12px;
  }

  .mh-navbar .btn-outline-primary,
  .mh-navbar .mh-cta,
  .mh-navbar .mh-gamecp{
    width:100%;
    min-height:44px;

    border-radius:14px !important;
  }

  .menu,
  .mh-menu{
    width:100%;

    flex-direction:column;
    align-items:stretch;
    gap:6px;

    padding:0;
  }

  .menu li,
  .mh-menu li{
    width:100%;
  }

  .menu li a,
  .mh-menu li a{
    width:100%;

    justify-content:space-between;

    padding:12px 12px;

    border-radius:12px;
  }

  .menu li a::after,
  .mh-menu li a::after{
    display:none;
  }

  .dropdown-content,
  .mh-dd-menu{
    position:static;

    min-width:100%;
    width:100%;

    margin-top:6px;

    display:none;

    visibility:visible;
    opacity:1;

    transform:none;

    box-shadow:none;

    border-radius:14px;

    background:rgba(255,255,255,.035);

    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }

  .dropdown.is-open > .dropdown-content,
  .mh-dd.is-open > .mh-dd-menu,
  .mh-dd.is-open > .dropdown-content{
    display:block;
  }

  .mh-status-link{
    width:100%;
    min-height:42px;

    justify-content:center;

    background:rgba(255,255,255,.035);

    border:1px solid rgba(255,255,255,.075);
    border-radius:14px;
  }

  .mh-status-link span:last-child{
    display:inline;
  }

  .mh-social{
    justify-content:center;
    flex-wrap:wrap;
  }

  .mh-iconlink{
    width:44px;
    height:44px;
  }
}

/* ======================================================================
   SMALL MOBILE
   ====================================================================== */

@media (max-width:420px){

  .mh-navwrap{
    padding-left:10px !important;
    padding-right:10px !important;
  }

  .mh-brand-logo{
    height:64px;
  }

  .mh-toggler{
    right:10px;
    top:13px;
  }

  #navbarSupportedContent,
  .mh-collapse{
    padding:12px !important;
  }

  .mh-iconlink{
    width:42px;
    height:42px;
  }
}