/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

/* ============== Nav Bar ======================= */

/* NAVBAR */
.navbar {

    background:#ffffff;

    border-bottom:1px solid #eee;

    padding:10px 20px;

    position:sticky;

    top:0;

    z-index:9999;

    box-shadow:
        0 2px 10px rgba(0,0,0,0.05);

}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* LOGO */
.logo {
    font-size: 22px;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
}

/* MENU */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* CENTER MENU */
.nav-center {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    list-style: none;
    gap: 20px;
}

.nav-center a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.nav-center a:hover {
    color: #007bff;
}

/* RIGHT MENU */
.nav-right {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    gap: 15px;
    align-items: center;
}

.nav-right a {
    text-decoration: none;
    color: #333;
}


/* LEFT MENU */

.nav-left {
   flex: 1;
}

/* POST BUTTON */
.btn-post {
    background: #ff5a5f;
    color: #fff !important;
    padding: 8px 15px;
    border-radius: 5px;
}

.btn-post:hover {
    background: #e0484d;
}

/* DROPDOWN */

.dropdown-content a {
    display: block;
    padding: 10px;
    color: #333;
}

.dropdown-content a:hover {
    background: #f5f5f5;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* MOBILE */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* RESPONSIVE */
/* RESPONSIVE */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
        font-size: 24px;
        cursor: pointer;
    }

    .nav-menu {
        display: none;
        flex-direction: column;

	transition: all 0.25s ease;
	transform:  translateY(-10px);

	opacity: 0;

        width: calc(100% - 20px);   /* 🔥 keep spacing without overflow */
        left: 10px;
        top: 65px;

        background: white;
        position: absolute;

        padding: 18px;
        border-radius: 12px;
        border-top: 1px solid #eee;

        z-index: 1001;

        box-shadow: 0 6px 20px rgba(0,0,0,0.15);  /* ✅ fixed */
    }

    .nav-menu.active {
        display: flex;
	transform: translateY(0);
	opacity: 1;
    }

    /* CENTER FIX */
    .nav-center {
        position: static;
        transform: none;
        width: 100%;
    }

    /* STACK MENUS */
    .nav-center,
    .nav-right {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    /* FULL WIDTH ITEMS */
    .nav-center li,
    .nav-right li {
        width: 100%;
    }

    .nav-center a,
    .nav-right a {
	padding: 10px 0;
	font-size: 15px;
	color: #333;
        transition: all 0.2s ease;	
	display: block;
        width: 100%;
        padding: 8px 0;
    }

    .nav-center a:hover,
    .nav-right a:hover {
    color: #007bff;
    padding-left: 5px;   /* 🔥 subtle movement */
   }

    /* DIVIDER */
    .nav-right {
        border-top: 1px solid #eee;
        padding-top: 10px;
        margin-top: 10px;
    }

    /* BUTTON */
    .btn-post {
	background: #ff5a5f;
	border-radius: 8px;
        width: 100%;
        text-align: center;
        font-weight: 600;
	font-size: 15px;
    }

    body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.2);
    z-index: 999;
    }

    /* DROPDOWN FIX */
    .dropdown-content {
        position: static;
        box-shadow: none;
    }
}


/* ================= USER MENU ================= */

.user-menu {

    position: relative;

    display: flex;

    align-items: center;

    height: 100%;

}


.user-trigger {

    display: flex;

    align-items: center;

    gap: 8px;

    cursor: pointer;

    font-weight: 500;

    padding: 10px 14px;

}


.user-dropdown {

    position: absolute;

    top: 100%;

    right: 0;

    min-width: 220px;

    background: #ffffff;

    border-radius: 14px;

    box-shadow: 0 10px 35px rgba(0,0,0,0.08);

    padding: 10px 0;

    opacity: 0;

    visibility: hidden;

    transform: translateY(10px);

    transition: all 0.2s ease;

    z-index: 999;

}


.user-menu:hover .user-dropdown {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

}


.user-dropdown a {

    display: block;

    padding: 14px 18px;

    text-decoration: none;

    color: #111827;

    font-size: 15px;

    transition: background 0.2s ease;

}


.user-dropdown a:hover {

    background: #f3f4f6;

}

/* ================= USER DROPDOWN ================= */

.user-dropdown-wrapper {

    position: relative;

    list-style: none;

    display: flex;

    align-items: center;

}


.user-dropdown-trigger {

    display: flex;

    align-items: center;

    gap: 8px;

    cursor: pointer;

    padding: 12px 16px;

    font-weight: 500;

    color: #111827;

}


/* DROPDOWN MENU */

.user-dropdown-menu {

    position: absolute;

    top: calc(100% - 2px);

    right: 0;

    min-width: 220px;

    background: #ffffff;

    border-radius: 16px;

    box-shadow: 0 10px 35px rgba(0,0,0,0.08);

    padding: 10px 0;

    opacity: 0;

    visibility: hidden;

    transform: translateY(10px);

    transition: all 0.2s ease;

    z-index: 999;

}


/* HOVER BUFFER */

.user-dropdown-wrapper::after {

    content: "";

    position: absolute;

    top: 100%;

    left: 0;

    width: 100%;

    height: 16px;

}


/* SHOW MENU */

.user-dropdown-wrapper:hover .user-dropdown-menu {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

}


/* LINKS */

.user-dropdown-menu a {

    display: block;

    padding: 14px 18px;

    text-decoration: none;

    color: #111827;

    font-size: 15px;

    transition: background 0.2s ease;

}


.user-dropdown-menu a:hover {

    background: #f3f4f6;

}

.notification-link {

    position: relative;

    font-size: 24px;

    text-decoration: none;

    margin-right: 18px;

}


.notification-badge {

    position: absolute;

    top: -8px;

    right: -10px;

    background: #ff5a5f;

    color: white;

    min-width: 20px;

    height: 20px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 12px;

    font-weight: 700;

    padding: 2px;

}
