/* =========================================
   HEADER CORE
   ========================================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 70;
  background: linear-gradient(180deg, rgba(0,0,0,.85), rgba(0,0,0,.25));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
}

/* BRAND */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 56px;
  filter: drop-shadow(0 0 12px var(--green-glow));
}

/* =========================================
   NAV ISLAND
   ========================================= */
.nav-island-wrap {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-island {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 4px;
  backdrop-filter: blur(18px);
  transform: skewX(-10deg);
}

/* SEGMENTS */
.seg {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transform: skewX(10deg);
  transition: all .2s ease;
}

.seg:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,.5);
}

/* ACCENT (GAMES + REGISTER) */
.seg-accent {
  background: var(--green);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(0,255,160,.7),
    0 0 16px var(--green-glow);
}

.seg-accent:hover {
  box-shadow:
    0 0 0 1px rgba(0,255,160,1),
    0 0 26px var(--green-glow);
}

/* =========================================
   AUTH BUTTONS (OUTSIDE ISLAND)
   ========================================= */
.auth-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 4px;
}

.auth-wrap .seg {
  transform: skewX(10deg);
  padding: 8px 16px;
}

.auth-btn {
  font-size: 12px;
}

/* ICON BUTTONS */
.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px;
  cursor: pointer;
  transition: .2s;
}

.icon-btn:hover {
  background: var(--green);
  border-color: var(--green);
}

/* MOBILE */
#mobileMenuBtn {
  display: none;
}

@media (max-width: 768px) {
  .nav-island-wrap { display: none; }
  .auth-wrap { display: none; }
  #mobileMenuBtn { display: grid; margin-left: auto; }
}

/* =========================================
   MOBILE SIDEBAR
   ========================================= */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -100%; /* Hidden off-screen by default */
  width: 260px;
  height: 100vh;
  background: rgba(15, 17, 21, 0.95);
  backdrop-filter: blur(16px);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transition: right 0.3s ease-in-out;
  box-shadow: -4px 0 20px rgba(0,0,0,0.5);
}

/* Class toggled by JavaScript */
.mobile-sidebar.active {
  right: 0;
}

.close-btn {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  margin-bottom: 30px;
  transition: transform 0.2s ease;
}

.close-btn:hover {
  transform: scale(1.1);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-link:hover {
  color: #fff;
  padding-left: 8px;
}

.mobile-accent {
  color: var(--green, #22c55e); 
  margin-top: 10px;
}

.mobile-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  background: #14171c;
  padding: 60px 5%;
  color: #e5e7eb;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Container */
footer > div {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;       
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* Logo + text block */
footer .flex.gap-3 {
  display: flex;
  align-items: center;
  gap: 12px;
}

footer img {
  width: 46px;
  height: auto;
}

footer .text-sm {
  font-weight: 600;
  color: #ffffff;
}

footer .text-xs {
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.3;
}

/* Links block */
footer .flex.items-center.gap-4 {
  display: flex;
  align-items: center;
  gap: 12px;
}

footer a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.25s ease;
}

footer a:hover {
  color: #ffffff;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  footer > div {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  footer .flex.items-center.gap-4 {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
}
