/* ============================================================
   GAMEHUB — Components: Navbar, Buttons, Cards, Toast, Footer
   ============================================================ */

/* ── Custom Cursor ── */
#cursor {
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed; z-index: 99999;
  pointer-events: none;
  transition: transform 0.1s, background 0.2s;
  box-shadow: 0 0 14px var(--accent);
  mix-blend-mode: screen;
}
#cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(79,110,247,0.5);
  border-radius: 50%;
  position: fixed; z-index: 99998;
  pointer-events: none;
  transition: width 0.2s, height 0.2s;
}

/* ── Navbar ── */
nav#mainNav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; gap: 24px;
  padding: 0 48px;
  height: var(--nav-height);
  background: rgba(8,12,26,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-img {
  height: 38px; width: auto;
  object-fit: contain;
  /* invert the black logo so it reads on the dark navbar */
  filter: invert(1) brightness(1.1);
  transition: opacity 0.2s;
}
.nav-logo:hover .nav-logo-img { opacity: 0.80; }

/* Footer logo variant — slightly smaller */
.footer-logo-img {
  height: 30px; width: auto;
  object-fit: contain;
  filter: invert(1) brightness(0.75);
}

.nav-links { display: flex; gap: 4px; margin-left: 12px; }

.nav-link {
  color: var(--text-muted); font-size: 15px; font-weight: 600;
  padding: 6px 16px; border-radius: 8px;
  letter-spacing: 0.5px;
  transition: all 0.25s;
  border: none; background: none;
  font-family: 'Rajdhani', sans-serif;
}
.nav-link:hover, .nav-link.active {
  color: var(--text); background: rgba(79,110,247,0.12);
}
.nav-link.active { color: var(--accent); }

.nav-search {
  margin-left: auto;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border2);
  border-radius: 10px; padding: 7px 16px;
  transition: all 0.25s;
}
.nav-search:focus-within {
  border-color: var(--accent);
  background: rgba(79,110,247,0.08);
  box-shadow: var(--glow);
}
.nav-search input {
  background: none; border: none; outline: none;
  color: var(--text); font-family: 'Rajdhani', sans-serif;
  font-size: 14px; width: 180px;
}
.nav-search input::placeholder { color: var(--text-muted); }

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none;
  padding: 6px; margin-left: auto;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--nav-height); left: 0; right: 0;
  background: rgba(8,12,26,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 28px;
  z-index: 999;
  gap: 6px;
}
.nav-drawer.open { display: flex; }
.nav-drawer .nav-link { width: 100%; text-align: left; font-size: 17px; padding: 10px 14px; }
.nav-drawer .nav-search { margin: 10px 0 0; width: 100%; }
.nav-drawer .nav-search input { width: 100%; }
.nav-drawer .nav-btns { display: flex; gap: 10px; margin-top: 10px; }
.nav-drawer .nav-btns button { flex: 1; }

/* ── Language toggle ── */
.btn-lang {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 13px; border-radius: 8px;
  border: 1.5px solid rgba(79,110,247,0.28);
  background: transparent; color: var(--text-muted);
  font-size: 13px; font-weight: 700;
  transition: all 0.25s; cursor: pointer;
  letter-spacing: 0.5px; white-space: nowrap;
  text-decoration: none; flex-shrink: 0;
}
.btn-lang:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(79,110,247,0.08);
}

/* ── Nav Auth Area ── */
.nav-btns { display: flex; align-items: center; gap: 10px; }
.nav-user {
  display: flex; align-items: center; gap: 10px;
}
.nav-username {
  font-size: 14px; font-weight: 600; color: var(--text-muted);
}
.nav-logout-btn {
  padding: 8px 18px; border-radius: 9px;
  border: 1.5px solid rgba(255,79,139,0.3);
  background: transparent; color: var(--accent3);
  font-weight: 600; font-size: 14px;
  transition: all 0.25s;
}
.nav-logout-btn:hover { border-color: var(--accent3); background: rgba(255,79,139,0.1); }

/* ── Buttons ── */
.btn-outline {
  padding: 8px 20px; border-radius: 9px;
  border: 1.5px solid var(--border);
  background: transparent; color: var(--text);
  font-weight: 600; font-size: 14px;
  transition: all 0.25s; letter-spacing: 0.4px;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-primary {
  padding: 8px 22px; border-radius: 9px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-weight: 700; font-size: 14px;
  transition: all 0.25s; letter-spacing: 0.4px;
  box-shadow: 0 4px 20px rgba(79,110,247,0.4);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 30px rgba(79,110,247,0.5); }

/* Subscribe — accent gradient, same weight as btn-primary */
.btn-subscribe {
  padding: 8px 22px; border-radius: 9px; border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-weight: 700; font-size: 14px;
  letter-spacing: 0.4px; transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(79,110,247,0.4);
}
.btn-subscribe:hover { transform: translateY(-1px); box-shadow: 0 6px 30px rgba(79,110,247,0.5); }

/* Unsubscribe — red/pink outline to signal destructive action */
.btn-unsubscribe {
  padding: 8px 22px; border-radius: 9px;
  border: 1.5px solid rgba(255,79,139,0.45);
  background: transparent; color: var(--accent3);
  font-weight: 700; font-size: 14px;
  letter-spacing: 0.4px; transition: all 0.25s;
}
.btn-unsubscribe:hover { border-color: var(--accent3); background: rgba(255,79,139,0.10); }

.btn-see-all {
  padding: 8px 20px; border-radius: 9px;
  border: 1.5px solid var(--border);
  background: transparent; color: var(--text-muted);
  font-weight: 600; font-size: 14px;
  transition: all 0.25s;
}
.btn-see-all:hover { border-color: var(--accent); color: var(--accent); }

/* ── Section shared ── */
.section { padding: 80px; position: relative; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 36px;
}
.section-title {
  font-family: 'Orbitron', monospace;
  font-size: 22px; font-weight: 700; letter-spacing: 0.5px;
}

/* ── Badges ── */
.badge-hot {
  background: linear-gradient(135deg, #ff4f8b, #ff6b35);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 4px;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.badge-new {
  background: linear-gradient(135deg, var(--neon2), #00d4aa);
  color: #000; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 4px;
  letter-spacing: 0.5px; text-transform: uppercase;
}

/* ── Toast ── */
.toast {
  position: fixed; bottom: 30px; right: 30px; z-index: 9999;
  background: var(--bg-card);
  border: 1px solid rgba(79,110,247,0.3);
  border-radius: 12px; padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--glow), 0 20px 40px rgba(0,0,0,0.4);
  transform: translateY(100px); opacity: 0;
  transition: all 0.4s cubic-bezier(.34,1.56,.64,1);
  font-size: 14px; font-weight: 600;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { font-size: 20px; }

/* ── Footer ── */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border2);
  padding: 50px 80px 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 40px;
}
.footer-logo {
  display: flex; align-items: center; margin-bottom: 14px;
}
.footer-desc {
  font-size: 13px; color: var(--text-muted);
  line-height: 1.7; max-width: 260px;
}
.footer-col-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 14px; font-weight: 700;
  margin-bottom: 16px; letter-spacing: 0.5px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  font-size: 13px; color: var(--text-muted);
  transition: color 0.2s;
}
.footer-link:hover { color: var(--accent); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--border2);
}
.footer-copy { font-size: 12px; color: var(--text-dim); }
.footer-socials { display: flex; gap: 10px; }
.footer-social {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; transition: all 0.2s;
}
.footer-social:hover {
  background: rgba(79,110,247,0.15);
  border-color: var(--accent); transform: translateY(-2px);
}
