:root{
  --topbar-h: 74px;
  --brand: #5c9fff;
  --panel: rgba(10,14,22,.98);
  --text: rgba(255,255,255,.92);
  --topbar-bg-color: #0b1220;
  --topbar-bg-img: url("/static/main/background.jpg");
  --brand-accent: #000000;
}


img {
/*
  margin-top: -15px;
  margin-bottom: -20px;
*/
  animation: bounce-in 1s ease infinite;
  animation-iteration-count: 1
}

@keyframes bounce-in {
  0% {
    opacity: 0;
    transform: scale(.5);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }

  70% {
    transform: scale(.95);
  }

  100% {
    transform: scale(1);
  }
}



.club-topbar{
  position: sticky;
  top: 0;
  z-index: 3000;
  height: var(--topbar-h);

  /* ✅ toto je farba fallback */
  background-color: var(--topbar-bg-color, #0b1220);

  /* ✅ obrázok je optional */
  background-image: var(--topbar-bg-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  margin-bottom: 44px;
  margin-top: 14px;
}

.club-topbar__inner{
  max-width: 1340px;
  width: 100%;
  height: var(--topbar-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0px 18px;
  margin-top: -15px;
  gap: 12px;
}

.club-brand{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
  min-width: 240px;
}

/* Avatar v hornom menu */
.nav-avatar{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  display: inline-block;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
}



.club-brand__logo{
  width: auto;
  height: 86px;
  /*
  object-fit: cover;
  border-radius: 999px !important;
  border: 0px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  */
  margin: 0 !important; /* fix tvoje global img margin */
}

.club-brand__text{
  color: var(--brand);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.45rem;
  white-space: nowrap;
}

.club-topbar__right{
  display:flex;
  align-items:center;
  gap: 10px;
}

.club-icon-btn{
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.10);
  border: 0px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.95);
  padding: 0;
}
.club-icon-btn:hover{ background: rgba(255,255,255,.16); }

.club-login-btn{
  margin: 0;
  padding: 8px 12px;
  border-radius: 14px !important;
  background: rgba(255,255,255,.10);
  border: 0px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
}
/* !important prebije globálne a:hover{color ... !important}, ktoré inak
   robilo text pri hoveri slabým/neviditeľným */
.club-login-btn:hover,
.club-login-btn:focus{
  background: var(--brand, #6d9bff);
  color: #071018 !important;
}

.club-burger{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 0px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  gap: 5px;
  padding: 0;
}
.club-burger span{
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: rgba(255,255,255,.92);
  display:block;
}

/* Dropdown */
.club-dd{
  background: rgba(10,14,22,.96);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  box-shadow: 0 22px 70px rgba(0,0,0,.55);
  overflow: hidden;
}
.club-dd .dropdown-item{
  color: rgba(255,255,255,.90);
  font-weight: 500;
  padding: 10px 14px;
}
.club-dd .dropdown-item:hover{
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.96);
}
.club-dd__email{ font-size:.78rem; opacity:.75; }

/* Offcanvas */
.club-offcanvas{
  background: var(--panel);
  color: var(--text);
  border-left: 1px solid rgba(255,255,255,.12);
  z-index: 4000;
}
@media (min-width: 992px){
  .club-offcanvas{ width: 420px !important; }
  .offcanvas-backdrop.show{ opacity: .55; }
}
@media (max-width: 991.98px){
  .club-offcanvas{ width: 100vw !important; }
}

.club-offcanvas__header{
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.club-offcanvas__brand{
  display:flex;
  align-items:center;
  gap: 12px;
}
.club-offcanvas__logo{
  width: 44px;
  height: 44px;
/*
  border-radius: 999px !important;
  border: 0px solid rgba(255,255,255,.18);
  object-fit: cover;
  margin: 0 !important;
*/

}
.club-offcanvas__name{
  font-weight: 1000;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.club-offcanvas__sub{
  font-size: .82rem;
  opacity: .70;
  margin-top: 2px;
}
.club-x{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.95);
  padding: 0;
}

.club-offcanvas__body{
  padding: 14px 14px 0;
  overflow-y:auto;
  -webkit-overflow-scrolling: touch;
}

.club-menu-list{ display:flex; flex-direction: column; gap: 10px; }
.club-menu-item{
  display:block;
  padding: 12px 12px;
  border-radius: 14px;
  text-decoration:none;
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  font-weight: 650;
}
.club-menu-item:hover{

  background: rgba(5, 5, 5, 0.96);
  color: var(--brand);
}
.club-menu-item.primary{
  background: rgba(92,159,255,.22);
  border-color: rgba(92,159,255,.40);
}
.club-menu-item.danger{
  background: rgba(255,59,48,.14);
  border-color: rgba(255,59,48,.25);
}
.club-sep{ border-color: rgba(255,255,255,.14); opacity: .6; }
.club-safe{ height: calc(10px + env(safe-area-inset-bottom)); }

/* ✅ FIX pre tvoje globálne css konflikty */
.club-topbar .dropdown{ transform: none !important; }
.club-topbar .dropdown-menu::before,
.club-topbar .dropdown-menu::after{ display:none !important; content:none !important; }



/* ============================
   Responsive sizing (mobile)
   ============================ */

/* Tablet / menšie desktop okno */
@media (max-width: 991.98px){
  :root{
    --topbar-h: 64px;
  }

  .club-topbar__inner{
    padding: 8px 22px 22px 12px;
    gap: 10px;
  }

  .club-brand{
    min-width: 0;
    gap: 10px;
  }

  .club-brand__logo{
    width: 58px;
    height: 58px;
  }

  .club-brand__text{
    font-size: .98rem;
    letter-spacing: .03em;
  }

  .club-icon-btn,
  .club-burger{
    width: 40px;
    height: 40px;
  }

  .club-burger{
    border-radius: 12px;
    gap: 4px;
  }

  .club-burger span{
    width: 16px;
    height: 2px;
  }

  .club-login-btn{
    padding: 7px 10px;
    font-size: .95rem;
  }
}

/* Mobile */
@media (max-width: 575.98px){
  :root{
    --topbar-h: 56px;
  }

  .club-topbar__inner{

    padding: 12px 12px 12px 12px;
    gap: 2px;
  }

  .club-brand{
    gap: 8px;
  }

  .club-brand__logo{
    width: 46px;
    height: 46px;
  }

  .club-brand__text{
    font-size: .90rem;
    letter-spacing: .02em;
    max-width: 52vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .club-topbar__right{
    gap: 8px;
  }

  .club-icon-btn,
  .club-burger{
    width: 36px;
    height: 36px;
  }

  .club-icon-btn{
    border-radius: 999px;
  }

  .club-burger{
    border-radius: 12px;
    gap: 4px;
  }

  .club-burger span{
    width: 15px;
    height: 2px;
  }

  /* FontAwesome ikona user menšia */
  .club-icon-btn .fa-solid{
    font-size: 0.95rem;
  }

  .club-login-btn{
    padding: 6px 9px;
    font-size: .9rem;
    border-radius: 12px !important;
  }
}

/* Extra small (staré mini mobily) */
@media (max-width: 360px){
  :root{
    --topbar-h: 52px;
  }

  .club-brand__logo{
    width: 42px;
    height: 42px;
  }

  .club-brand__text{
    font-size: .86rem;
    max-width: 48vw;
  }

  .club-icon-btn,
  .club-burger{
    width: 34px;
    height: 34px;
  }
}



/* ============================
   Topbar horizontal links (text-only)
   ============================ */

.club-topbar__links{
  display: none;            /* default: skryté */
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.club-topbar__links li{ margin: 0; padding: 0; }

.club-topbar__link{
  display: inline-flex;
  align-items: right;

  /* ✅ text-only */
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;

  height: auto;
  padding: 0;

  text-decoration: none;
  font-weight: 900;
  letter-spacing: .02em;
  color: rgba(255,255,255,.92);
  white-space: nowrap;
  
  position: relative;
  transition: opacity .15s ease, transform .15s ease, text-shadow .15s ease;
}

/* underline hover efekt */
.club-topbar__link::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;          /* vzdialenosť od textu */
  height: 2px;
  border-radius: 99px;
  background: rgba(255,255,255,.92);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease, opacity .18s ease;
  color: rgba(255,255,255,.72);
}

.club-topbar__link:hover{
  opacity: 1;
  transform: translateY(-1px);
  text-shadow: 0 0 12px rgba(255,255,255,.22);
  color: rgba(255,255,255,.96);
}

.club-topbar__link:hover::after{
  color: rgba(255,255,255,.96);
  transform: scaleX(1);
  opacity: .9;
}

/* Active link (ak si dáš class="active") */
.club-topbar__link.active{
  opacity: 1;
}
.club-topbar__link.active::after{
  transform: scaleX(1);
  opacity: .9;
}

/* zobraz iba na širšom desktope + limit počtu TOP-LEVEL položiek.
   POZOR: musí byť priamy potomok (>), inak selektor zasiahne aj <li>
   položky vo vnútri dropdownu (Mládež) a poskrýva družstvá. */
@media (min-width: 992px){
  .club-topbar__links{ display: flex; }
  .club-topbar__links > li:nth-child(n+5){ display:none; } /* ukáž max 4 */
}

@media (min-width: 1200px){
  .club-topbar__links > li:nth-child(n+5){ display:none; }
  .club-topbar__links > li:nth-child(5){ display:list-item; } /* povoľ 5. */
}




/* ===== Collapsible "Mládež" toggle (+ / -) ===== */

.club-menu-toggle{
  /* nech je to presne ako ostatný item */
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;  /* text vľavo, znak vpravo */
  gap: 5px;
}

.club-menu-toggle__label{
  display: inline-block;
}

/* default: + */
.club-menu-toggle__icon{
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  position: relative;
  opacity: .9;
}

/* vodorovná čiarka */
.club-menu-toggle__icon::before{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: rgba(255,255,255,.82);
  border-radius: 99px;
}

/* zvislá čiarka (len keď je zavreté => plus) */
.club-menu-toggle__icon::after{
  content:"";
  position:absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255,255,255,.82);
  border-radius: 99px;
}

/* keď je otvorené -> z plus sprav mínus (schovaj zvislú) */
.club-menu-toggle:not(.collapsed) .club-menu-toggle__icon::after{
  opacity: 0;
}

/* ===== Nested items (rovnaký štýl ako ostatné, len odsadené) ===== */

.club-menu-nested{
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px; /* rovnaké ako club-menu-list */
}

.club-menu-item--nested{
  margin-left: 14px;
  width: calc(100% - 14px);
}
