/* base.css - Base template styles for navigation and common elements */

/* ========== GENERAL RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========== BODY & BACKGROUND SETTINGS ========== */
body {
  font-family: Arial, sans-serif;
  background: url('/static/images/background.jpg') no-repeat center center fixed;
  background-size: cover;
  height: 100vh;
  width: 100vw;
  overflow-x: hidden; /* Prevent horizontal scrollbar */
}

/* ========== NAVIGATION BAR ========== */
.top-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  background: rgba(0, 0, 0, 0.4); /* Transparent with blur */
  backdrop-filter: blur(10px); /* Blur effect */
  z-index: 1000;
}

/* ========== LEFT SIDE: TITLE & LOGO ========== */
.menu-left {
  display: flex;
  align-items: center;
}

.menu-left .nav-logo {
  height: 40px; /* Adjust as needed */
  margin-right: 10px;
}

.menu-left .site-title {
  font-size: 18px;
  font-weight: bold;
  color: white;
}

/* ========== RIGHT SIDE: NAVIGATION ========== */
.menu-right {
  display: flex;
  align-items: center;
  gap: 15px;
  height: 100%;
}

.menu-right a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  padding: 0 10px;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  height: 100%;
}

.menu-right a:hover {
  color: #dcdcdc; /* Light gray hover effect */
}

/* ========== REUSABLE DROPDOWN SYSTEM ========== */
/* Generic dropdown container */
.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
}

/* Generic dropdown content - uses nav-dropdown styling as base */
.dropdown-content {
  display: none;
  position: absolute;
  right: -20px; /* Compensate for parent padding */
  top: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  min-width: 180px;
  z-index: 1001;
  margin-top: 0;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content,
.dropdown-content:hover {
  display: block;
}

/* Dropdown links */
.dropdown-content a {
  display: block;
  padding: 10px 15px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s ease, color 0.3s ease;
  white-space: nowrap;
  height: auto;
}

.dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #dcdcdc;
}

/* ========== PROFILE DROPDOWN (specific styling) ========== */
.profile-dropdown {
  /* Inherits from .dropdown */
}

.profile-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid white;
  transition: transform 0.2s ease;
}

.profile-img:hover {
  transform: scale(1.05);
}

/* ========== NAVIGATION DROPDOWN (specific styling) ========== */
.nav-dropdown {
  /* Inherits from .dropdown */
}

.nav-dropdown-link {
  color: white;
  text-decoration: none;
  font-size: 14px;
  padding: 0 10px;
  transition: color 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-dropdown-link:hover {
  color: #dcdcdc;
}
