/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  margin: 0;
}

/* ===== HEADER FULL WIDTH ===== */
.site-header {
  width: 100%;
  background: #1a1a1a;
  border-bottom: 2px solid orange;

  position: relative;
  z-index: 9999;
}

/* ===== NAV ===== */
.main-nav {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 50px;
  height: 70px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== LOGO ===== */
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-box {
  background: orange;
  color: #000;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
}

.logo-text {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
}

.logo-text span {
  color: orange;
}

/* ===== MENU ===== */
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-menu a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: orange;
}

/* ===== RIGHT ===== */
.nav-right {
  display: flex;
  align-items: center;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  font-size: 26px;
  color: orange;
  cursor: pointer;
}

/* ===== SEARCH CONTAINER ===== */
.search-container {
  margin-right: 10px;
  position: relative;
  width: 100%;
  max-width: 180px;
  /* 380 → 260 */
}


/* ===== INPUT ===== */
#gameSearch {
  width: 100%;
  height: 38px;
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 0 40px 0 14px;
  font-size: 13px;
  color: #fff;
  outline: none;
  transition: 0.25s;
}

/* ===== HOVER + FOCUS ===== */
#gameSearch:focus {
  border-color: orange;
  box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.15);
}

/* ===== ICON ===== */
.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #aaa;
  pointer-events: none;
}

/* ===== PLACEHOLDER ===== */
#gameSearch::placeholder {
  color: #777;
}

/* ===== SUGGESTIONS ===== */
.suggestions-box {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background: #161616;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: none;
  z-index: 9999;
}

/* ===== SUGGESTION ITEM ===== */
.suggestions-box div {
  padding: 10px 14px;
  font-size: 13px;
  color: #ddd;
  cursor: pointer;
  transition: 0.2s;
}

.suggestions-box div:hover {
  background: rgba(255, 165, 0, 0.12);
  color: orange;
}

/* TG LOGO KONTROL */
.tg-item img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  display: block;
}

.tg-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transform: translateY(-3px);
  /* yukarı alır */
}

.tg-link img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  display: block;
}


/* ===== MOBILE ===== */
@media (max-width: 992px) {

  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #121212;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    display: none;
    z-index: 10000;
  }

  .nav-menu.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  /* ===== SEARCH CONTAINER MOBILE ===== */
  .search-container {
    margin-right: 0;
    max-width: 100%;
    margin-bottom: 10px;
  }
  
  .auth-area {
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    width: 90%;
  }
}

/* ===== AUTH AREA (GLOBAL) ===== */
.auth-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== BUTTON BASE ===== */
.btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}

/* ===== LOGIN ===== */
.login-btn {
  background: transparent;
  color: #fff;
  border: 1px solid #333;
}

.login-btn:hover {
  border-color: orange;
  color: orange;
}

/* ===== REGISTER ===== */
.register-btn {
  background: orange;
  color: #000;
}

.register-btn:hover {
  opacity: 0.85;
}

/* ===== PROFILE ===== */
.profile-btn {
  background: linear-gradient(45deg, #ff9f00, #ff5e00);
  color: #000;
  border: none;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(255, 165, 0, 0.4);
}

.profile-btn:hover {
  box-shadow: 0 0 15px rgba(255, 165, 0, 0.7);
  transform: scale(1.03);
}

/* ===== LOGOUT ===== */
.logout-btn {
  background: #2a2a2a;
  color: #fff;
}

.logout-btn:hover {
  background: #3a3a3a;
}

/* ===== COIN BOX ===== */
.coin-box {
  background: #121212;
  border: 1px solid #2a2a2a;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: orange;
  font-weight: bold;
}

/* ===== MODAL CSS ===== */
.auth-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  align-items: flex-start;
  justify-content: center;
  z-index: 100000;
  overflow-y: auto;
  padding-top: 5vh;
  padding-bottom: 5vh;
}

.auth-modal-content {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  position: relative;
  border: 1px solid #333;
  text-align: center;
}

.close-btn {
  position: absolute;
  top: 10px; right: 15px;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.close-btn:hover {
  color: orange;
}

.auth-input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  background: #2a2a2a;
  border: 1px solid #444;
  color: white;
  border-radius: 8px;
  outline: none;
}

.auth-input:focus {
  border-color: orange;
}

/* ===== GLOBAL ANNOUNCEMENT BANNER ===== */
#global-announcement {
  width: 100%;
  background: linear-gradient(90deg, #ffb400, #ff6a00);
  color: #000;
  text-align: center;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 800;
  display: none; /* app.js tarafından kontrol edilir */
  z-index: 9998;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#global-announcement span {
  display: inline-block;
  animation: slideInBanner 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideInBanner {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}