/* ============================================
   NAVBAR - MODERN GLASSMORPHISM STYLE
   ============================================ */

body {
  margin: 0;
  padding: 0;
  /* padding-top: 110px; */
  background-color: #000;
}

nav.stroke {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 98%;
  max-width: 1600px;
  height: 75px;
  z-index: 10000;

  /* Glassmorphism Effect */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  /* Rounded Border */
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);

  /* Subtle Shadow */
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.navbar-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 75px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 35px;
}

/* ============================================
   USER AVATAR
   ============================================ */

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* ============================================
   PROFILE WRAPPER & TRIGGER
   ============================================ */

.profile-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  height: 75px;
  cursor: pointer;
  z-index: 10001;
  padding: 0 18px;
  border-radius: 30px;
  transition: all 0.3s ease;
}

/* Invisible bridge to dropdown */
.profile-wrapper::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 20px;
  background: transparent;
}

.user-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 75px;
  padding: 0 14px;
  cursor: pointer;
}

.welcome-user {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  font-weight: 500;
}

.caret-down {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
  opacity: 0.8;
}

.profile-wrapper:hover .caret-down {
  transform: rotate(180deg);
}

/* ============================================
   DROPDOWN MENU - BEAUTIFUL VERSION
   ============================================ */

.dropdown {
  position: absolute;
  top: 80px;
  left: 0;
  min-width: 260px;
  /* Glassmorphism */
  background: rgba(20, 20, 30, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);

  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  padding: 8px;
  z-index: 10002;

  /* Animation */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-wrapper:hover .dropdown,
.dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* ============================================
   DROPDOWN USER INFO SECTION
   ============================================ */

.dropdown-user-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
}

.dropdown-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.dropdown-user-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-username {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
}

.dropdown-email {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  direction: ltr;
  text-align: right;
}

/* ============================================
   DROPDOWN DIVIDER
   ============================================ */

.dropdown-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  margin: 8px 10px;
}

/* ============================================
   DROPDOWN MENU ITEMS
   ============================================ */

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
  margin: 2px 0;
}

.dropdown-item svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.dropdown-item:hover {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.2),
    rgba(118, 75, 162, 0.2)
  );
  color: #fff;
  transform: translateX(-5px);
}

.dropdown-item:hover svg {
  stroke: #a78bfa;
}

/* ============================================
   DROPDOWN LOGOUT BUTTON
   ============================================ */

.dropdown-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  margin-top: 4px;

  /* Softer red gradient */
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.2),
    rgba(220, 38, 38, 0.2)
  );
  border: 1px solid rgba(239, 68, 68, 0.3);

  color: #fca5a5;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dropdown-logout svg {
  width: 18px;
  height: 18px;
  stroke: #fca5a5;
  transition: all 0.2s ease;
}

.dropdown-logout:hover {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.4),
    rgba(220, 38, 38, 0.4)
  );
  border-color: rgba(239, 68, 68, 0.5);
  color: #fecaca;
  transform: scale(1.02);
}

.dropdown-logout:hover svg {
  stroke: #fecaca;
  transform: translateX(3px);
}

/* ============================================
   MAIN NAVIGATION LINKS
   ============================================ */

.main_nav {
  display: flex;
  list-style: none;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  height: 75px;
  gap: 8px;
}

.main_nav li {
  height: 50px;
  display: flex;
  align-items: center;
}

.main_nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 14px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.main_nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Remove old underline effect */
nav.stroke ul li a:after {
  display: none;
}

/* ============================================
   LOGIN/SIGNUP BUTTONS
   ============================================ */

.nav-left {
  display: flex;
  gap: 14px;
  align-items: center;
  height: 75px;
}

.btn-login {
  padding: 12px 28px;
  /* border-radius: 25px; */
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.btn-signup {
  padding: 12px 28px;
  /* border-radius: 25px; */
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: #fff;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-signup:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

/* ============================================
   FONT FACES
   ============================================ */

@font-face {
  font-family: "candara";
  src: url("/fonts/candara.ttf");
}

@font-face {
  font-family: "Emkan";
  src: url("/assets/fonts/Candara.ttf");
  src: url("/assets/fonts/EmkanBlackR.woff");
  src: url("/assets/fonts/EmkanBoldR.woff");
  src: url("/assets/fonts/EmkanRegularR.woff");
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
  nav.stroke {
    width: 95%;
    height: 65px;
    top: 10px;
    border-radius: 35px;
  }

  .navbar-container {
    height: 65px;
    padding: 0 15px;
  }

  .profile-wrapper,
  .user-dropdown-trigger,
  .main_nav,
  .nav-left {
    height: 65px;
  }

  .user-avatar {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .main_nav a {
    padding: 10px 15px;
    font-size: 0.95rem;
  }

  .btn-login,
  .btn-signup {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .dropdown {
    top: 70px;
    min-width: 240px;
    left: 0px;
  }
}

@media (max-width: 600px) {
  nav.stroke {
    width: 92%;
    height: 60px;
    border-radius: 30px;
  }

  .navbar-container {
    height: 60px;
    padding: 0 12px;
  }

  .welcome-user {
    display: none;
  }

  .user-dropdown-trigger {
    gap: 8px;
  }

  .main_nav a {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .dropdown {
    min-width: 220px;
    left: 0px;
  }
}

@media (min-width: 1400px) {
  nav.stroke {
    max-width: 1700px;
  }

  .main_nav a {
    padding: 14px 30px;
    font-size: 1.15rem;
  }

  .btn-login,
  .btn-signup {
    padding: 14px 32px;
    font-size: 1.05rem;
  }
}
