/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  margin: 0;
}

/* Base Body Adjustment for Sidebar */
body {
    padding-left: 260px; /* Space for the fixed left sidebar */
    padding-top: 70px;  /* Space for top header */
    background-color: #060611;
    color: #e8e8f0;
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
}

/* ================= ANIMATED BG ================= */
.bg-ambient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-ambient .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    animation: orbFloat 20s ease-in-out infinite alternate;
}

.bg-ambient .orb:nth-child(1) {
    width: 600px;
    height: 600px;
    background: #8b5cf6;
    top: -10%;
    left: -10%;
}

.bg-ambient .orb:nth-child(2) {
    width: 500px;
    height: 500px;
    background: #f97316;
    bottom: -15%;
    right: -10%;
    animation-delay: -7s;
}

.bg-ambient .orb:nth-child(3) {
    width: 400px;
    height: 400px;
    background: #06b6d4;
    top: 40%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(80px, -60px) scale(1.2); }
    100% { transform: translate(-40px, 40px) scale(0.9); }
}

/* ===== SIDEBAR OVERLAY ===== */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===== SIDEBAR NAV ===== */
.sidebar-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: rgba(10, 10, 18, 0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.sidebar-header {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
}

.close-sidebar {
  display: none;
  font-size: 28px;
  color: #8b8b9e;
  cursor: pointer;
  transition: color 0.2s;
}

.close-sidebar:hover {
  color: #fff;
}

/* ===== LOGO ===== */
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-box {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
  letter-spacing: -0.5px;
}

.logo-text {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-text span {
  background: linear-gradient(135deg, #f97316, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== MENU ===== */
.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 10px 15px;
  gap: 8px;
}

.nav-menu a {
  text-decoration: none;
  color: #a0a0b8;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  padding: 12px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-menu a:hover {
  color: #fff;
  background: rgba(249, 115, 22, 0.1);
  transform: translateX(4px);
}

.nav-menu a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), transparent);
  border-left: 3px solid #f97316;
  font-weight: 700;
}

/* ===== TOP HEADER ===== */
.top-header {
  position: fixed;
  top: 0;
  left: 260px;
  right: 0;
  height: 70px;
  background: rgba(6, 6, 17, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 30px;
  transition: left 0.3s ease;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* ===== HEADER APP DOWNLOAD BUTTON ===== */
.header-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(79, 172, 254, 0.25));
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: #00f2fe;
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.15);
  white-space: nowrap;
}

.header-app-btn:hover {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.3), rgba(79, 172, 254, 0.45));
  border-color: #00f2fe;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.3);
  color: #fff;
}

@media (max-width: 600px) {
  .header-app-btn .app-text {
    display: none;
  }
  .header-app-btn {
    padding: 8px 10px;
  }
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  font-size: 26px;
  color: #f97316;
  cursor: pointer;
  margin-right: auto;
}

/* ===== SEARCH CONTAINER ===== */
.search-container {
  position: relative;
  width: 240px;
}

#gameSearch {
  width: 100%;
  height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0 40px 0 16px;
  font-size: 14px;
  color: #e8e8f0;
  outline: none;
  transition: all 0.3s ease;
  font-family: 'Outfit', sans-serif;
}

#gameSearch:focus {
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
  background: rgba(255, 255, 255, 0.08);
  width: 280px;
}

.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #6b6b80;
  pointer-events: none;
}

/* ===== SUGGESTIONS ===== */
.suggestions-box {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: rgba(14, 14, 26, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: none;
  z-index: 9999;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.suggestions-box div {
  padding: 12px 16px;
  font-size: 14px;
  color: #b0b0c8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.suggestions-box div:hover {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}

/* ===== AUTH AREA ===== */
.auth-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  height: 40px;
  padding: 0 20px;
  border-radius: 12px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'Outfit', sans-serif;
  white-space: nowrap;
}

.login-btn {
  background: transparent;
  color: #b0b0c8;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-btn:hover {
  border-color: rgba(249, 115, 22, 0.5);
  color: #f97316;
  background: rgba(249, 115, 22, 0.05);
}

.register-btn {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.profile-btn {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  border: none;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logout-btn {
  background: rgba(255, 255, 255, 0.05);
  color: #8b8b9e;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ===== MODALS (Reused exactly) ===== */
.auth-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  align-items: flex-start;
  justify-content: center;
  z-index: 100000;
  overflow-y: auto;
  padding-top: 5vh;
  padding-bottom: 5vh;
}

.auth-modal-content {
  background: linear-gradient(180deg, #0e0e1a, #070711);
  padding: 35px;
  border-radius: 20px;
  width: 90%;
  max-width: 420px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.close-btn {
  position: absolute;
  top: 14px; right: 18px;
  color: #6b6b80;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.auth-input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e8e8f0;
  border-radius: 12px;
  outline: none;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.auth-input:focus {
  border-color: rgba(249, 115, 22, 0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  body {
    padding-left: 0;
  }
  
  .sidebar-nav {
    transform: translateX(-100%);
  }

  .sidebar-nav.active {
    transform: translateX(0);
    box-shadow: 20px 0 50px rgba(0,0,0,0.5);
  }

  .close-sidebar {
    display: block;
  }

  .top-header {
    left: 0;
    justify-content: flex-end;
  }

  .hamburger {
    display: block;
  }

  .header-right {
    flex: 1;
    justify-content: flex-end;
  }
}

@media (max-width: 600px) {
  #gameSearch {
    width: 140px;
  }
  #gameSearch:focus {
    width: 180px;
  }
  .top-header {
    padding: 0 15px;
  }
  .btn {
    padding: 0 12px;
  }
}

/* ===== 1DK CASINO LOGO ===== */
.navbar-logo-img {
  height: 52px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(249, 115, 22, 0.25));
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), filter 0.25s ease;
}

.navbar-logo-img:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 4px 16px rgba(249, 115, 22, 0.5));
}

/* ================= GLOBAL SITE FOOTER ================= */
.site-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 45px 20px 35px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 50px;
  background: transparent;
  width: 100%;
  clear: both;
}

.footer-brand {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.footer-brand .f-highlight {
  background: linear-gradient(135deg, #f97316, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-text {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

.footer-copyright {
  font-size: 12px;
  color: #64748b;
  margin-top: 10px;
  font-weight: 500;
}

