@font-face {
    font-family: 'Switzer';
    src: url(fonts/Switzer-Variable.woff2);
}

:root {
    --red: #ff3b3b;
    --darker-gray: #0a0a0a;
    --dark-gray: #111111;
    --midder-gray: #1d1d1d;
    --mid-gray: #333333;
    --light-gray: #888888;
    --font-primary: 'Switzer', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;

    --bg-color: #09090b;
    --text-color: white;
    --text-color-dark: black;
}

::selection {
    background-color: var(--red);
    color: white;
}

body {
  background: linear-gradient(to bottom, var(--dark-gray), var(--midder-gray));
  color: var(--text-color);
  font-family: var(--font-primary);
  margin: 0;
  padding: 0;
}

body::before {
  content: "";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

a {
    text-decoration: none;
    color: inherit;
}

.navbar {
    position: fixed;
    top: 20px; /* distance from top */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 22px;
    background-color: var(--darker-gray);
    border-radius: 999px;
    box-shadow: 0px 0px 24px rgba(27, 27, 27, 0.6);
    z-index: 9999;
    width: calc(100% - 80px); /* leave margins on both sides */
    max-width: 1000px;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
}

.logo .white {
    color: var(--text-color);
}

.logo .red {
    color: var(--red);
}

.nav-links {
    display: flex;
    position: relative;
    gap: 20px;
    margin-top: 5px;
    padding-left: 5px;
}

.nav-links a {
    text-decoration: none;
    color: var(--light-gray);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-color);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-left: 40px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-right: 10px;
}

.profile-avatar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background-color: var(--midder-gray);
  cursor: pointer;
  position: relative;
  color: white;
  transition: background 0.3s ease;
}

.profile-avatar:hover {
  background-color: var(--red);
}

.profile-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-username {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

.profile-avatar .material-symbols-outlined {
  font-size: 18px;
  color: #ccc;
}

/* Dropdown styles */
.dropdown-menu {
  position: absolute;
  top: 60px;
  right: 80px;
  background-color: #1e1e1e;
  border-radius: 10px;
  box-shadow: 0 12px 20px rgba(0,0,0,0.5);
  width: 180px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 1000;
}

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

.dropdown-menu ul {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.dropdown-menu li {
  border-bottom: 1px solid #333;
}

.dropdown-menu li a {
  display: block;
  padding: 12px 18px;
  text-decoration: none;
  color: #e0e0e0;
  font-size: 14px;
  transition: all 0.3s ease-in-out;
}

.dropdown-menu li a:hover {
  background-color: #333;
  color: #fff;
}