/* navigation-styles.css - Shared navigation styles for Nova Chess website */

/* Navigation - Fixed */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 6vw;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Ensure all navigation elements use Inter font */
.navbar * {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Add padding to body to account for fixed nav */
body {
  padding-top: 80px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo-medium {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 24px;
  font-weight: 500;
  user-select: none;
  text-decoration: none;
}

.board {
  width: 42px;
  height: 42px;
  position: relative;
  flex-shrink: 0;
  transform: perspective(180px) rotateX(20deg) rotateY(-18deg);
  margin-right: 3px;
}

.board::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: #fff;
  background-image: 
    linear-gradient(45deg, rgb(124,58,237) 25%, transparent 25%),
    linear-gradient(-45deg, rgb(124,58,237) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgb(124,58,237) 75%),
    linear-gradient(-45deg, transparent 75%, rgb(124,58,237) 75%);
  background-size: 10.5px 10.5px;
  background-position: 0 0, 0 5.25px, 5.25px -5.25px, -5.25px 0px;
  border-radius: 5px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.16), 0 0 14px rgba(124,58,237,0.13);
}

.text {
  font-size: 25px;
  letter-spacing: -0.5px;
  text-shadow: 0 0 10px rgba(99,102,241,0.10);
}

.nova {
  color: #6366f1;
  font-weight: 600;
}

.chess {
  color: rgb(124,58,237);
  font-weight: 400;
}

/* Navigation links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: #232340;
  text-decoration: none;
  font-size: 1em;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  padding: 7px 10px;
  border-radius: 5px;
  transition: background 0.14s, color 0.14s;
  position: relative;
  cursor: pointer;
}

.nav-link:hover, .nav-link:focus {
  background: #f3f3fd;
  color: #7c3aed;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link.app {
  background: #7c3aed;
  color: #fff;
  font-weight: 600;
  padding: 8px 20px;
  box-shadow: 0 3px 10px rgba(124,58,237,0.13);
  transition: background 0.14s, transform 0.14s;
}

.nav-link.app:hover, .nav-link.app:focus {
  background: #6366f1;
  transform: translateY(-1px);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 32px;
  left: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(124,58,237,0.12);
  padding: 10px 0;
  min-width: 220px;
  z-index: 100;
}

.dropdown:hover .dropdown-content, .dropdown:focus-within .dropdown-content {
  display: block;
}

.dropdown-link {
  display: block;
  padding: 10px 22px;
  color: #232340;
  text-decoration: none;
  font-size: 1em;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  transition: background 0.13s, color 0.13s;
  cursor: pointer;
}

.dropdown-link:hover {
  background: #f3f3fd;
  color: #7c3aed;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .nav-left {
    gap: 20px;
  }
  
  .nav-links {
    display: none;
  }
  
  /* Adjust body padding for mobile */
  body {
    padding-top: 60px; /* Reduced padding for mobile navbar */
  }
  
  /* Make navbar slightly smaller on mobile */
  .navbar {
    padding: 16px 4vw;
  }
  
  /* Hide Launch App button on mobile */
  .nav-link.app {
    display: none;
  }
}