/* ==========================================================================
   Header - Pill Floating Component (Figma Design Match)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;600;800&display=swap');

.home-nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 89.55vw;
  height: 70px;
  z-index: 1030;

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 27px 0 22px;
  box-sizing: border-box;
  border-radius: 100px;

  /* 1. Gradient Background - Higher opacity floor for white background visibility */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.55) 100%
  );

  /* 2. Glassmorphism Blur & Saturation */
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);

  /* 3. Subtle Dark Border Edge for Light Background Contrast */
  border: 1px solid rgba(0, 0, 0, 0.06);

  /* 4. Multi-Layer Depth (Top inner highlight + Dual drop-shadow) */
  box-shadow: 
    inset 0px 1px 1px 0px rgba(255, 255, 255, 0.9),  /* Top highlight stroke */
    inset 0px -1px 1px 0px rgba(0, 0, 0, 0.03),     /* Bottom inner subtle shadow */
    0px 4px 12px rgba(0, 0, 0, 0.03),               /* Soft ambient blur */
    0px 12px 28px rgba(0, 0, 0, 0.06);              /* Key directional shadow */
}

/* Left Section: Logo + Nav Items */
.home-nav-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.home-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}

.home-brand .navbar-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
}

.home-wordmark {
    font-family: "Be Vietnam Pro", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 800;
    font-size: 24px;
    line-height: 28px;
    color: #171717;
    letter-spacing: -0.02em;
}

.home-wordmark .brand-highlight {
    color: #FF4500;
}

/* Navigation Links */
.home-nav-links {
    display: flex;
    align-items: center;
    gap: 27px;
    height: 70px;
}

.home-nav-links .nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 15px;
    line-height: 22px;
    color: #707070;
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-nav-links .nav-item:hover {
    color: #0F0F0F;
}

.home-nav-links .nav-item.active {
    font-weight: 600;
    color: #0F0F0F;
}

/* Figma Active Indicator Line (Rectangle 1) */
.home-nav-links .nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 17px;
    left: 0;
    right: 0;
    height: 2px;
    background: #FF4500;
    border-radius: 1px;
}

/* Right Section: Call to Actions */
.home-nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 20px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

/* Button Outline / Login */
.home-btn-outline {
    color: #FF4500;
    background: radial-gradient(44.6% 247.63% at 50% 50%, rgba(250, 83, 14, 0.05) 53.83%, rgba(253, 156, 62, 0.05) 100%), #FFFFFF;
    border: 1.5px solid #FF4500;
}

.home-btn-outline:hover {
    /* background: rgba(250, 83, 14, 0.08); */
    transform: translateY(-1px);
    box-shadow: 
        1.25px 0px 15px -0.75px rgba(255, 222, 190, 0.5), 
        -1.25px 0px 20px -0.75px rgba(255, 222, 190, 0.5), 
        0px 0px 15px 0.5px rgba(255, 222, 190, 0.5), 
        0px 3px 10px rgba(252, 209, 167, 0.5),
        inset 0px 10px 10px -40px #45271C, 
        inset 0px -10px 10px -40px #282828, 
        inset 0px 10px 30px -40px #E6E6E6;
}

/* Button Primary / Post Job */
.home-btn-primary {
    color: #FFFFFF;
    background: radial-gradient(44.6% 247.63% at 50% 50%, #FA530E 53.83%, #FD9C3E 100%);
    border: none;
    box-shadow: 0px 4px 12px rgba(250, 83, 14, 0.25);
}

.home-btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0px 6px 16px rgba(250, 83, 14, 0.35);
}

/* User Dropdown */
.user-dropdown-wrapper {
    position: relative;
}

.user-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid #FF4500;
    background: radial-gradient(44.6% 247.63% at 50% 50%, rgba(250, 83, 14, 0.05) 53.83%, rgba(253, 156, 62, 0.05) 100%), #FFFFFF;
    color: #FF4500;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.user-icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 
        1.25px 0px 15px -0.75px rgba(255, 222, 190, 0.5), 
        -1.25px 0px 20px -0.75px rgba(255, 222, 190, 0.5), 
        0px 0px 15px 0.5px rgba(255, 222, 190, 0.5), 
        0px 3px 10px rgba(252, 209, 167, 0.5);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #FAFAFA;
}

.dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF4500 0%, #FD9C3E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    flex-shrink: 0;
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dropdown-user-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #171717;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-user-email {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #707070;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-divider {
    height: 1px;
    background: #E5E5E5;
    margin: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #404040;
    text-decoration: none;
    transition: background 0.15s ease;
}

.dropdown-item:hover {
    background: #F5F5F5;
}

.dropdown-item svg {
    flex-shrink: 0;
    color: #707070;
}

.dropdown-item-logout {
    color: #DC2626;
}

.dropdown-item-logout svg {
    color: #DC2626;
}

.dropdown-item-logout:hover {
    background: #FEF2F2;
}

/* ── Unread Badges ────────────────────────────────────────────── */

/* Red dot on user icon button */
.user-icon-btn {
    position: relative;
}

.user-icon-dot {
    position: absolute;
    top: 2px;
    right: 0px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #DC2626;
    border: 1.5px solid #FFFFFF;
    pointer-events: none;
    z-index: 1;
}

/* Count badge on dropdown items */
.dropdown-badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #DC2626;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .home-nav-links {
        display: none;
    }
}

@media (max-width: 576px) {
    .home-nav {
        top: 12px;
        width: calc(100% - 24px);
        height: 60px;
        padding: 0 14px;
    }

    .home-brand .navbar-logo {
        width: 34px;
        height: 34px;
    }

    .home-wordmark {
        font-size: 18px;
        line-height: 22px;
    }

    .home-btn {
        height: 34px;
        padding: 0 8px;
        font-size: 11px;
        border-radius: 8px;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .user-icon-btn {
        width: 36px;
        height: 36px;
    }

    .user-dropdown {
        position: fixed;
        top: 80px;
        left: 12px;
        right: 12px;
        width: auto;
        min-width: 0;
        max-width: none;
        border-radius: 12px;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

    .dropdown-header {
        padding: 20px 16px;
    }

    .dropdown-item {
        padding: 14px 16px;
        font-size: 15px;
    }

    .dropdown-item svg {
        width: 20px;
        height: 20px;
    }
}