/* Top navigation — guest CTA layout, narrower search, icon submit, sizing */

body .navbar .navbar-brand {
  padding-left: 16px;
}

@media (min-width: 992px) {
  body .navbar .navbar-brand {
    padding-left: 24px;
  }
}

body .navbar .nav-right-zone,
body .navbar .nav-auth-zone {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

body .navbar .nav-auth-zone {
  flex-direction: row;
}

body .navbar .nav-search-form {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

body .navbar .xp-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 166, 35, 0.15);
  border: 1px solid rgba(245, 166, 35, 0.3);
  color: #ffd37a;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

body .navbar .nav-link.xp-chip {
  padding: 4px 10px !important;
  line-height: 1.25;
}

body .navbar .notif-bell {
  position: relative;
  flex-shrink: 0;
}

body .navbar .nav-search-input {
  max-width: 160px !important;
  min-width: 0 !important;
}

@media (max-width: 1100px) {
  body .navbar .nav-search-input {
    max-width: 120px !important;
  }
}

@media (max-width: 992px) {
  body .navbar .nav-search-input {
    display: none !important;
  }

  body .navbar .nav-search-submit {
    display: none !important;
  }

  body .navbar #navbarNav .nav-search-form {
    display: none !important;
  }

  body .navbar .nav-search-mobile-fallback {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    opacity: 0.95;
    text-decoration: none !important;
  }

  body .navbar .nav-search-mobile-fallback .fa-search {
    font-size: 1rem;
  }
}

body .navbar .nav-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  flex-shrink: 0;
  line-height: 1;
}

body .navbar .nav-search-submit:hover {
  filter: brightness(1.08);
}

body .navbar .nav-search-submit .fa-search {
  font-size: 14px;
}

body .navbar .nav-search-mobile-fallback {
  display: none;
}

@media (min-width: 992px) {
  body .navbar.navbar {
    font-size: 13.5px;
    min-height: 52px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  body .navbar .navbar-brand img,
  body .navbar .navbar-brand svg {
    height: 32px !important;
  }

  body .navbar .nav-link {
    font-size: 13.5px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

.btn-nav-login {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn-nav-login:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}

.btn-nav-register {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 999px;
  background: #3d6df2;
  border: none;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: filter 0.15s;
  white-space: nowrap;
}

.btn-nav-register:hover {
  filter: brightness(1.12);
  color: #fff !important;
}

.nav-guest-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Mobile drawer — guest full-width CTAs */
.drawer-guest-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 10px 16px 8px;
}

.drawer-auth-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 6px 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
  transition: background 0.15s, filter 0.15s;
}

.drawer-auth-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: rgba(255, 255, 255, 0.9) !important;
}

.drawer-auth-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}

.drawer-auth-btn--primary {
  border: none;
  background: #3d6df2;
  color: #fff !important;
}

.drawer-auth-btn--primary:hover {
  filter: brightness(1.1);
  color: #fff !important;
}

/* P2-F7 PRO Club avatar frame (locked 2026-05-14).
   Applied via th:classappend on .profile-avatar (profil.html) and on the desktop +
   mobile drawer avatar <img> elements (topnav.html) when the user is PRO.
   Uses outline + box-shadow (not border) so the gold ring layers around any
   existing border without clobbering it — see the mobile drawer avatar which
   has an inline 2px white-translucent border. Single static rule; no
   animation (prefers-reduced-motion is therefore a no-op concern). The PRO
   palette #fad776 matches the existing "Získaj PRO" button + "👑 PRO" badge.
   Class is utility-style (no element coupling) so it works on any avatar
   shape — circle or rounded square. */
.pro-frame {
  outline: 2px solid #fad776;
  outline-offset: 1px;
  box-shadow: 0 0 0 4px rgba(250, 215, 118, 0.3);
}

/* Center-nav main dropdowns (Súťaže, Hraj) — dark panel, centered positioning preserved */
body .navbar .nav-item.dropdown > .nav-link {
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

body .navbar .nav-item.dropdown:hover > .nav-link,
body .navbar .nav-item.dropdown.show > .nav-link {
  background: rgba(255, 255, 255, 0.06);
}

body .navbar .nav-main-dropdown {
  min-width: 240px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #1b174f;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  padding: 8px;
  overflow: hidden;
}

body .navbar .nav-main-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: 0;
  padding: 11px 14px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.25;
  white-space: normal;
  background-color: transparent;
}

body .navbar .nav-main-dropdown .dropdown-item i {
  width: 18px;
  margin-right: 0 !important;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.78;
  color: rgba(255, 255, 255, 0.58) !important;
}

body .navbar .nav-main-dropdown .dropdown-item.active,
body .navbar .nav-main-dropdown .dropdown-item:active,
body .navbar .nav-main-dropdown .dropdown-item:hover,
body .navbar .nav-main-dropdown .dropdown-item:focus {
  background-color: rgba(255, 255, 255, 0.07) !important;
  color: #fff !important;
}

body .navbar .nav-main-dropdown .dropdown-item.active i,
body .navbar .nav-main-dropdown .dropdown-item:active i,
body .navbar .nav-main-dropdown .dropdown-item:hover i,
body .navbar .nav-main-dropdown .dropdown-item:focus i {
  color: rgba(255, 255, 255, 0.82) !important;
}

body .navbar .nav-main-dropdown .dropdown-divider {
  margin: 10px 0;
  border-color: rgba(255, 255, 255, 0.08);
}

/* Navbar profile avatar + dropdown */
body .navbar .nav-profile-dropdown-wrap {
  position: relative;
}

body .navbar .nav-profile-trigger {
  padding: 4px !important;
  border-radius: 999px;
}

body .navbar .nav-profile-trigger::after {
  margin-left: 2px;
}

body .navbar .nav-profile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3d6df2, #7b2fbe);
  color: #fff;
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(61, 109, 242, 0.28);
  flex-shrink: 0;
}

body .navbar .nav-profile-avatar.is-pro {
  background: linear-gradient(135deg, #7b2fbe, #fad776);
  box-shadow:
    0 0 0 2px #1b174f,
    0 0 0 4px #fad776,
    0 4px 14px rgba(255, 215, 0, 0.2);
}

body .navbar .nav-profile-dropdown {
  margin-top: 12px;
  margin-right: 0;
  min-width: 240px;
  max-width: min(280px, calc(100vw - 32px));
  right: 0;
  left: auto !important;
  transform: none !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #1b174f;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  padding: 8px;
  overflow: hidden;
}

body .navbar .nav-profile-dropdown-head {
  padding: 10px 14px 12px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  border-radius: 10px;
  margin-bottom: 0;
}

body .navbar .nav-profile-dropdown-head small {
  color: inherit;
  font-size: inherit;
}

body .navbar .nav-profile-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: 0;
  padding: 11px 14px;
  font-size: 15px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.88);
  border-radius: 10px;
  white-space: normal;
  background-color: transparent;
}

body .navbar .nav-profile-dropdown .dropdown-item i {
  width: 18px;
  margin-right: 0 !important;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.85;
  color: rgba(255, 255, 255, 0.45);
}

body .navbar .nav-profile-dropdown .dropdown-item.active,
body .navbar .nav-profile-dropdown .dropdown-item:active,
body .navbar .nav-profile-dropdown .dropdown-item:hover,
body .navbar .nav-profile-dropdown .dropdown-item:focus {
  background-color: rgba(255, 255, 255, 0.07) !important;
  color: #fff !important;
}

body .navbar .nav-profile-dropdown .dropdown-item.active i,
body .navbar .nav-profile-dropdown .dropdown-item:active i,
body .navbar .nav-profile-dropdown .dropdown-item:hover i,
body .navbar .nav-profile-dropdown .dropdown-item:focus i {
  color: rgba(255, 255, 255, 0.65) !important;
}

body .navbar .nav-profile-dropdown .dropdown-item.text-danger {
  color: #ff8a8a !important;
}

body .navbar .nav-profile-dropdown .dropdown-item.text-danger:hover,
body .navbar .nav-profile-dropdown .dropdown-item.text-danger:focus {
  background: rgba(255, 80, 80, 0.12);
  color: #ffb4b4 !important;
}

body .navbar .nav-profile-dropdown .dropdown-divider {
  margin: 10px 0;
  border-color: rgba(255, 255, 255, 0.08);
}

@media (min-width: 992px) {
  body .navbar .nav-profile-dropdown-wrap {
    margin-right: 30px;
    padding-right: 8px;
  }
}

@media (max-width: 576px) {
  body .navbar .nav-profile-dropdown-wrap {
    margin-right: 8px;
  }

  body .navbar .nav-profile-trigger {
    margin-right: 0;
  }

  body .navbar .nav-profile-dropdown {
    position: fixed !important;
    top: 64px !important;
    right: 8px !important;
    left: auto !important;
    width: auto !important;
    max-width: calc(100vw - 16px);
  }
}

/* Mobile drawer — dark menu language aligned with desktop dropdowns */
body .navbar .nav-mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1049;
}

body .navbar #mobileDrawer.nav-mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  max-width: calc(100vw - 48px);
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 1050;
  background: #17134a;
  color: rgba(255, 255, 255, 0.88);
  transition: right 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -4px 0 32px rgba(0, 0, 0, 0.35);
}

body .navbar .nav-mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 16px;
  height: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

body .navbar .nav-mobile-drawer-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

body .navbar .nav-mobile-drawer-close:hover,
body .navbar .nav-mobile-drawer-close:focus {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

body .navbar .nav-mobile-profile {
  margin: 12px 12px 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

body .navbar .nav-mobile-profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

body .navbar .nav-profile-avatar--mobile {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 16px;
}

body .navbar .nav-mobile-profile-name {
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.25;
}

body .navbar .nav-mobile-profile-stats {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  margin-top: 2px;
}

body .navbar .nav-mobile-profile-xp {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

body .navbar .nav-mobile-profile-xp-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f5a623, #ffd978);
}

body .navbar .nav-mobile-profile-pro {
  margin-top: 10px;
}

body .navbar .nav-mobile-pro-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: filter 0.15s ease;
}

body .navbar .nav-mobile-pro-badge--active {
  background: #7b2fbe;
  color: #fff !important;
}

body .navbar .nav-mobile-pro-badge--cta {
  background: #fad776;
  color: #1a1a1a !important;
}

body .navbar .nav-mobile-pro-badge--cta:hover {
  filter: brightness(1.06);
}

body .navbar .nav-mobile-drawer-nav {
  padding: 8px 12px 16px;
}

body .navbar .nav-mobile-drawer-section {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  padding: 14px 14px 6px;
  margin: 0;
}

body .navbar .nav-mobile-drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: 0;
  padding: 11px 14px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.9rem;
  line-height: 1.25;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

body .navbar .nav-mobile-drawer-item i,
body .navbar .nav-mobile-drawer-item .fa {
  width: 18px;
  margin-right: 0 !important;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.78;
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 0.88rem;
}

body .navbar .nav-mobile-drawer-item:hover,
body .navbar .nav-mobile-drawer-item:focus,
body .navbar .nav-mobile-drawer-item.active {
  background: rgba(255, 255, 255, 0.07);
  color: #fff !important;
}

body .navbar .nav-mobile-drawer-item:hover i,
body .navbar .nav-mobile-drawer-item:focus i,
body .navbar .nav-mobile-drawer-item.active i {
  color: rgba(255, 255, 255, 0.82) !important;
}

body .navbar .nav-mobile-drawer-item--danger {
  color: #ff8a8a !important;
}

body .navbar .nav-mobile-drawer-item--danger i {
  color: rgba(255, 138, 138, 0.85) !important;
}

body .navbar .nav-mobile-drawer-item--danger:hover,
body .navbar .nav-mobile-drawer-item--danger:focus {
  background: rgba(255, 80, 80, 0.12);
  color: #ffb4b4 !important;
}

body .navbar .nav-mobile-drawer-nav .drawer-guest-divider,
body .navbar .nav-mobile-drawer-nav hr.drawer-guest-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 10px 14px;
}
