/* ============================================================
   SharpLync Navigation Stylesheet
   File: public/css/sharplync-nav.css
   Version: 1.0 (Split Nav + Search + Polish Enhancements)
   Author: Max (ChatGPT)
   ============================================================ */

/* Jannie Added Styles for Sharplync Navigation Bar */
body {
  font-family: 'Poppins', sans-serif;
  color: #0A2A4D;
  background: linear-gradient(135deg, rgba(10, 42, 77, 0.85) 0%, rgba(16, 73, 118, 0.65) 40%, rgba(44, 191, 174, 0.45) 100%);
  overflow-x: hidden;
  scroll-behavior: smooth;
}



/* ===========================
   MAIN HEADER
   =========================== */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 90px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(
        135deg,
        rgba(10, 42, 77, 0.85) 0%,
        rgba(16, 73, 118, 0.65) 40%,
        rgba(44, 191, 174, 0.45) 100%
    );
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25); /* NEW */
}


/* ===========================
   NAV GROUPS
   =========================== */
.nav-left,
.nav-center,
.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Increased spacing (Logo → Home) */
.nav-left {
    gap: 2.6rem; /* NEW */
}


/* ===========================
   NAV LINKS - BASE STYLES
   =========================== */
.nav-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s ease;
    
    /* Fade-in animation */
    opacity: 0; 
    animation: fadeInNav .6s ease forwards; 
}

/* Base styles for RIGHT-SIDE links (Less specific) */
.nav-right .nav-link {
    color: rgba(230,240,255,0.85); /* Right-side links' base color */
}

/* ===========================
   NAV LINKS - INTERACTIVE STATES
   =========================== */

/* Hover state for ALL links (Moderately specific) */
.nav-link:hover {
    color: #2CBFAE;
}

/* Hover state for RIGHT-SIDE links (More specific, ensures it overrides the base color) */
.nav-right .nav-link:hover {
    color: #2CBFAE; 
}

/* Active state for ALL links */
.nav-active {
    color: #2CBFAE !important;
}

/* ===========================
   NAV LINKS - ANIMATION
   =========================== */

/* Staggered animations */
.nav-left .nav-link:nth-child(2) { animation-delay: .1s; }
.nav-left .nav-link:nth-child(3) { animation-delay: .15s; }

.nav-right .nav-link:nth-child(1) { animation-delay: .2s; }
.nav-right .nav-link:nth-child(2) { animation-delay: .25s; }
.nav-right .nav-link:nth-child(3) { animation-delay: .3s; }
.nav-right .nav-link:nth-child(4) { animation-delay: .35s; }

@keyframes fadeInNav {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   LOGO
   =========================== */
.logo img {
    height: 42px;
}


/* ===========================
   SEARCH BAR
   =========================== */
.nav-search {
    position: relative;
    width: 360px;
    max-width: 100%;
}

.nav-search input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border-radius: 14px;
    border: none;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 15px;
    outline: none;
    transition: box-shadow 0.25s ease;
}

/* Glow on hover */
.nav-search:hover input {
    box-shadow: 0 0 10px rgba(44,191,174,0.8); /* NEW */
}

/* Focus glow */
.nav-search input:focus {
    box-shadow: 0 0 9px #2CBFAE;
}

/* Make magnifying glass visible */
.nav-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px !important; /* bigger */
    opacity: .9 !important; /* brighter */
    color: #ffffff !important; /* white */
    filter: drop-shadow(0 0 2px rgba(44,191,174,0.6)); /* teal glow */
}


/* ===========================
   HAMBURGER (MOBILE)
   =========================== */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 980px) {
    .nav-left .nav-link,
    .nav-right .nav-link,
    .nav-center {
        display: none;
    }

    .hamburger {
        display: block;
    }
}


/* ===========================
   MOBILE NAV MENU
   =========================== */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: rgba(10,42,77,0.92);
    backdrop-filter: blur(10px);
    overflow-x: hidden;
    transition: width 0.3s ease;
    z-index: 5000;
    padding-top: 60px;
}

.mobile-nav.show {
    width: 260px;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav a {
    display: block;
    padding: 16px 26px;
    font-size: 1.3rem;
    color: white;
    text-decoration: none;
}

.mobile-nav a:hover {
    color: #2CBFAE;
}

.close-mobile-nav {
    position: absolute;
    top: 10px;
    right: 22px;
    font-size: 38px;
    background: none;
    border: none;
    color: #2CBFAE;
    cursor: pointer;
}
