/* Navbar container */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background: #000;
  }
  
  /* “RYC” text logo */
  .logo-text {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
  }

  .logo-img {
    max-height: 60px;
    width: auto;
    display: block;
  }
  
/* Navbar layout sections */
.navbar-section {
    flex: 1;
    display: flex;
    align-items: center;
}

.navbar-section.left {
    justify-content: flex-start;
}

.navbar-section.center {
    justify-content: center;
    left: 50%;
}

.navbar-section.right {
    justify-content: flex-end;
    gap: 15px;
}
  
  .nav-btn {
    color: #ffffff;
    font-size: 17px;
    font-weight: 500;
  }

  /* Rent Yours pill */
  .nav-btn-rent {
    background: #fff;
    color: #000;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
  }
  
  /* Login/Register plain link */
  .nav-link-login {
    color: #fff;
    font-size: 17px;
    text-decoration: none;
    padding: 4px 0;
  }
  
  .nav-link-login:hover {
    text-decoration: underline;
  }
  
  .lang-switch {
    display: flex;
    gap: 6px;
    align-items: center;
  }

  .lang-flag {
    width: 24px;
    height: 16px;
    cursor: pointer;
  }
  
/* User menu styles */
.user-menu-container {
  position: relative;
}

.avatar-btn {
  width: clamp(48px, 5vw, 56px);
  height: clamp(48px, 5vw, 56px);
  border-radius: 50%;
  overflow: hidden;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

.avatar-img {
  width: 60%;
  height: 75%;
  filter: brightness(0) invert(1);
}

.user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: clamp(280px, 90vw, 320px);
  padding: clamp(16px, 4vw, 20px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 3vw, 16px);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(50,50,50,0.4));
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.25);
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
  transition: opacity 180ms cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 180ms cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: 100;
}

.user-menu.open {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 14px);
  padding: 0 clamp(16px, 4vw, 20px);
  height: clamp(52px, 9vw, 56px);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 200ms ease, box-shadow 200ms ease, transform 50ms ease;
}

.menu-item:hover,
.menu-item:focus {
  background: rgba(255,255,255,0.22);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  outline: none;
}

.menu-item:active {
  transform: scale(0.98);
}

hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin: 8px 0;
}

.item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
}

.item-icon img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.item-label {
  flex: 1;
}

/* Responsive layout */
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .navbar-section {
    justify-content: center;
  }
  .navbar-section.right {
    order: 3;
  }
  .navbar-section.center {
    order: 2;
  }
  .navbar-section.left {
    order: 1;
  }
}

@media (max-width: 600px) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }

  .navbar-section.center {
    display: none; /* κρύβεται το κέντρο στο κινητό */
  }

  .navbar-section.left,
  .navbar-section.right {
    flex: initial;
  }
}
