/* Header
------------------------------------------------------ */
:root {
  --header-height: 70px;
  --header-height-sticky: 60px;
  --header-bg-color: rgba(18, 18, 18, 0.9);
  --header-bg-color-sticky: rgba(18, 18, 18, 0.7);
  --color-primary: #e91e63;
  --color-secondary: #9c27b0;
  --transition-default: all 0.3s ease;
  --container-max-width: 1200px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: #181818;
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: var(--transition-default);
}

.header--sticky {
  background-color: var(--header-bg-color-sticky);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  height: var(--header-height-sticky);
}

.header--hidden {
  transform: translateY(-100%);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  height: var(--header-height);
  transition: height var(--transition-time) ease;
}

.logo {
  display: flex;
  align-items: center;
  z-index: 1001;
  transition: var(--transition-default);
  margin-right: 1rem;
}

.logo-image {
  display: block;
  transition: var(--transition-default);
  max-height: 45px;
  width: auto !important;
}

.header--sticky .logo-image {
  max-height: 40px;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  z-index: 1010;
  cursor: pointer;
  padding: 0;
  background: transparent;
  border: none;
  transition: transform 0.3s ease;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6), 
              opacity 0.3s ease,
              background-color 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background-color: var(--color-primary);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  background-color: var(--color-primary);
}

.nav__list {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, rgba(24, 24, 24, 0.97) 0%, rgba(36, 36, 36, 0.97) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 0.3s ease;
  padding: 2rem 1.5rem;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  gap: 1.5rem;
  transform: translateX(100%);
  opacity: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  visibility: hidden;
}

.nav__list.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.nav__item {
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: calc(var(--item-index, 0) * 0.07s);
  width: 100%;
  text-align: center;
  max-width: 280px;
}

.nav__list.active .nav__item {
  opacity: 1;
  transform: translateY(0);
}

.nav__link {
  font-size: 1.25rem;
  font-weight: 500;
  color: #fff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  min-height: 40px;
  border-radius: 8px;
  transition: all 0.3s ease;
  width: 100%;
  text-decoration: none;
}

.nav__link:hover, .nav__link:focus {
  color: var(--color-primary);
  background-color: rgba(156, 39, 176, 0.08);
  outline: none;
}

.nav__item--button .btn {
  width: 100%;
  max-width: 220px;
  margin: 0.5rem auto;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  transition: var(--transition-default);
  cursor: pointer;
  text-decoration: none;
}

.btn--login {
  background-color: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--login:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--color-primary);
}

.btn--primary {
  background: linear-gradient(45deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn--primary:hover {
  box-shadow: 0 0 15px rgba(233, 30, 99, 0.5);
  transform: translateY(-2px);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.no-scroll {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
  height: 100%;
  touch-action: none;
  -webkit-overflow-scrolling: none;
}

/* Media Queries */
@media (min-width: 768px) {
  .header__inner {
    padding: 0;
  }
  
  .nav__link {
    font-size: 1rem;
  }
}

@media (min-width: 992px) {
  body {
    margin-top: var(--header-height);
  }
  
  .header__inner {
    padding: 0;
  }
  
  .logo {
    height: 50px;
    margin-right: 2rem;
  }
  
  .logo img {
    height: 100%;
  }
  
  .nav-toggle {
    display: none;
  }
  
  .overlay {
    display: none;
  }
  
  .nav__list {
    position: static;
    height: auto;
    background: none;
    flex-direction: row;
    padding: 0;
    width: auto;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    gap: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    align-items: center;
    justify-content: flex-end;
  }
  
  .nav__item {
    width: auto;
    text-align: left;
    opacity: 1;
    transform: none;
    max-width: none;
    display: flex;
    align-items: center;
    margin: 0 0.8rem;
  }
  
  .nav__item--button {
    margin-left: 0.5rem;
  }
  
  .nav__link {
    font-size: 0.95rem;
    min-height: 0;
    padding: 0.4rem;
    white-space: nowrap;
  }
  
  .nav__item--button .btn {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0.5rem 1.2rem;
    min-height: 35px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
  }
  
  .btn--login {
    border-radius: 40px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    margin-right: 0.5rem;
  }
  
  .btn--primary {
    border-radius: 40px;
    background: var(--color-primary);
    color: #fff;
  }
  
  .nav__item:last-child {
    margin-right: 0;
  }
  
  .header__casino-chip {
    display: block;
    animation: float 3s ease-in-out infinite;
  }
  
  @keyframes float {
    0% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-8px);
    }
    100% {
      transform: translateY(0px);
    }
  }
}

@media (min-width: 1200px) {
  .header__inner {
    padding: 0;
  }
  
  .nav__item {
    margin: 0 0.75rem;
  }
  
  .nav__link {
    font-size: 0.95rem;
    padding: 0.4rem 0.5rem;
  }
}

/* Mobile-specific styles */
@media (max-width: 576px) {
  :root {
    --header-height: 60px;
    --header-height-sticky: 55px;
  }
  
  .header__inner {
    padding: 0 1rem;
  }
  
  .logo-image {
    max-height: 38px;
  }
  
  .header--sticky .logo-image {
    max-height: 35px;
  }
  
  .nav-toggle {
    width: 24px;
    height: 18px;
  }
  
  .nav__link {
    font-size: 1.1rem;
  }
  
  .nav__item--button .btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
}

.header.sticky .header__inner {
  height: var(--header-height-sticky);
}

.header.sticky .logo {
  height: 45px;
}

.header__casino-chip {
  position: absolute;
  width: 40px;
  height: 40px;
  background-color: var(--color-primary);
  border-radius: 50%;
  top: -20px;
  right: 15%;
  z-index: -1;
  box-shadow: 0 0 15px rgba(255, 165, 0, 0.5);
  display: none;
} 