/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, sans-serif;
  user-select: none;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #161616f7, #131317);
  color: #fff;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ================= HEADER ================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;

  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(16px);

  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  height: 70px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 30px;
  position: relative;
}

.header-left {
  display: flex;
  align-items: center;
}

/* LOGO */
.logo {
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;

  display: flex;
  align-items: center;
  gap: 8px;

  background: linear-gradient(135deg, #5865f2, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* NAV */
.desktop-nav {
  display: flex;
  gap: 18px;
  margin-left: 40px;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: #fff;
  opacity: 0.7;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;

  transition: all 0.25s ease;
}

.nav-link:hover {
  opacity: 1;
  color: #5865f2;
  background: rgba(255,255,255,0.05);
}

/* underline anim */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);

  width: 70%;
  height: 2px;
  background: #5865f2;
  border-radius: 10px;

  transition: 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link.highlight {
  background: rgba(88,101,242,0.15);
  color: #5865f2;
}

/* ================= RIGHT SIDE ================= */

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  margin-left: auto;
}

/* LOGIN */
.login-btn {
  padding: 10px 18px;
  border-radius: 12px;

  background: linear-gradient(135deg, #5865f2, #4752c4);
  color: #fff;
  text-decoration: none;
  font-weight: 600;

  display: flex;
  align-items: center;
  gap: 8px;

  transition: 0.25s;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(88,101,242,0.4);
}

/* USER BOX */
.user-box {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 6px 10px;
  border-radius: 14px;

  background: rgba(255,255,255,0.05);
  transition: 0.25s;
  cursor: pointer;
  position: relative;
}

.user-box:hover {
  background: rgba(255,255,255,0.08);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.username {
  font-weight: 600;
}

.user-status {
  font-size: 11px;
  opacity: 0.6;
}

/* DROPDOWN */
.dropdown {
  position: absolute;
  top: 55px;
  right: -20px;
  min-width: 260px;
  padding: 14px;
  background: rgba(19, 19, 19, 0.142);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(-10px) scale(0.96);
  pointer-events: none;

  transition: all 0.3s ease;
}

.dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px;
  margin-bottom: 8px;

  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;

  background: rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.dropdown-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.logout-link {
  background: rgba(231, 76, 60, 0.15);
}

.logout-link:hover {
  background: rgba(231, 76, 60, 0.3);
}

.user-box .dropdown {
  position: absolute;
  top: 55px;
  right: 0;
  min-width: 220px;
}

/* ================= SIDE MENU (MOBILE TOUCH ETMEDİK) ================= */

.menu-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 24px;
}

.side-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;

  padding: 80px 20px 20px;

  background: rgba(6, 6, 6, 0.6);
  backdrop-filter: blur(14px);

  transition: right 0.35s ease;
}

.side-menu.open {
  right: 0;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 12px 14px;
  border-radius: 12px;

  color: #fff;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.85;

  transition: 0.2s;
}

.side-link:hover {
  background: rgba(255,255,255,0.08);
  opacity: 1;
}

.side-link.active {
  background: rgba(255,255,255,0.08);
  opacity: 1;
}

.side-link.highlight {
  color: #5865f2;
}

/* ================= RESPONSIVE ================= */

.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

.side-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  padding: 80px 20px 20px;

  background: rgba(6, 6, 6, 0.514);
  backdrop-filter: blur(14px);
  box-shadow: -20px 0 60px rgba(0,0,0,0.6);

  transition: right 0.35s ease;
  z-index: 9999;
}

.side-menu.open {
  right: 0;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 12px 14px;
  border-radius: 12px;

  color: #fff;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.85;

  transition: background 0.2s ease, opacity 0.2s ease;
}

.side-link:hover {
  background: rgba(255,255,255,0.08);
  opacity: 1;
}

.side-link.active {
  background-color: rgba(255,255,255,0.08);
  opacity: 1;
}

.side-link.highlight {
  color: #5865f2;
}

.side-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 20px 0;
}

.side-login {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 14px;
  border-radius: 14px;

  background: #5865f2;
  color: #fff;
  font-weight: 700;
  text-decoration: none;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.side-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(88,101,242,0.4);
}

.side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.side-user-dropdown {
  margin-top: 12px;
  display: none;
}

.side-user-dropdown.open {
  display: block;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9000;
}

.menu-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.side-menu {
  z-index: 10000;
}

@media (max-width: 900px) {
  .desktop-nav,
  .desktop-only,
  .user-box,
  .login-btn {
    display: none !important;
  }

  .mobile-only {
    display: block;
  }
}
