/* =========================================
   RESET
========================================= */

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

body {
    font-family: Inter, Arial, sans-serif;
    background: #f9fafb;
    color: #111827;
}

html {
    scroll-behavior: smooth;
}

/* =========================================
   HEADER WRAPPER
========================================= */
.header {
    z-index: 10000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;

    display: flex;
    align-items: center;

    background: rgba(17, 24, 39, 0.96);
    backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    z-index: 999999; /* 🔥 highest priority */
}

/* =========================================
   LEFT: LOGO (FLUSH LEFT)
========================================= */

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;

    display: flex;
    align-items: center;

    padding-left: 12px;   /* only safe minimal padding */
}

.logo span {
    color: #f59e0b;
}

/* =========================================
   CENTER NAV (CATEGORIES)
========================================= */

.nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    gap: 10px;
}

.nav a {
    color: #e5e7eb;
    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    padding: 6px 10px;
    border-radius: 8px;

    transition: 0.2s ease;
    white-space: nowrap;
}

.nav a:hover {
    color: #f59e0b;
    background: rgba(255, 255, 255, 0.06);
}

/* =========================================
   RIGHT SIDE (ACCOUNT / AUTH)
========================================= */

.nav-actions {
    margin-left: auto;   /* pushes fully right */

    display: flex;
    align-items: center;
    gap: 10px;

    padding-right: 12px;
}

/* =========================================
   ACCOUNT BUTTON
========================================= */

.account-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;  /* ✅ ADD THIS */

    padding: 6px 10px;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 10px;

    color: #fff;
    cursor: pointer;
}

.account-avatar {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #f59e0b;

    font-weight: 700;
    color: #111;
}

/* =========================================
   DROPDOWN
========================================= */
.dropdown-menu {
    z-index: 10000;
    position: absolute;
    right: 12px;
    top: 60px;

    width: 220px;

    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);

    border-radius: 14px;

    padding: 8px;

    display: none;
    flex-direction: column;

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    /* safety */
    overflow: hidden;
}

.dropdown-menu.show {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.dropdown-menu a {
    padding: 10px 12px;
    font-size: 14px;
    color: #111;
    border-radius: 8px;
}

.dropdown-menu a:hover {
    background: #f3f4f6;
}
/* =========================================
   DROPDOWN LINKS + BUTTONS
========================================= */

.dropdown-menu{
    border:none !important;
    outline:none !important;
    box-shadow:0 20px 40px rgba(0,0,0,0.2); /* keep your design clean */
}

/* remove underline from all links inside dropdown */
.dropdown-menu a{
    text-decoration:none !important;
    border:none !important;
}

/* force hr clean reset */
.dropdown-menu hr{
    border:0 !important;
    border-top:1px solid #e5e7eb !important;
    margin:8px 0 !important;
    opacity:1;
}

/* remove weird focus/active lines */
.dropdown-menu a:focus,
.dropdown-menu button:focus{
    outline:none !important;
    box-shadow:none !important;
}
/* =========================================
   LOGOUT BUTTON - CLEAN UI
========================================= */

.logout-btn{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:flex-start;

    padding:10px 12px;

    font-size:14px;
    font-weight:600;

    color:#ef4444; /* red = logout danger */

    background:transparent;
    border:none;
    border-radius:8px;

    cursor:pointer;

    transition:0.2s ease;

    font-family:inherit;
}

/* hover effect */
.logout-btn:hover{
    background:#fef2f2;  /* light red background */
    color:#dc2626;
}

/* optional icon spacing if you add icon later */
.logout-btn::before{
    margin-right:8px;
    font-size:14px;
    opacity:0.8;
}
/* =========================================
   MOBILE MENU BUTTON
========================================= */

.menu-toggle {
    display: none;
    font-size: 26px;
    color: #fff;
    cursor: pointer;

    padding-right: 12px;
}

/* =========================================
   OVERLAY
========================================= */

.nav-overlay {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);

    opacity: 0;
    visibility: hidden;

    transition: 0.25s ease;
    z-index: 9998;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   MOBILE NAV (DOES NOT COVER HEADER)
========================================= */

@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }
/* =========================
   MOBILE NAV - GLASS SIDEBAR STYLE
========================= */

    .nav {
        position: fixed;
        top: 70px;              /* below header */
        left: 1%;            /* hidden like sidebar */

        width: 88%;             /* same as your sidebar */
        height: calc(100vh - 70px);

        padding: 18px;

        display: flex;
        flex-direction: column;
        gap: 10px;
        border-radius:20px;

        overflow-y: auto;

        /* GLASS EFFECT */
        background: rgba(255, 255, 255, 0.75);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);

        border-right: 1px solid rgba(255, 255, 255, 0.3);

        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.2);

        transition: 0.35s ease;

        z-index: 10000;
    }

    /* OPEN STATE */
    .nav.active {
        left: 0;
    }

    /* =========================
       NAV LINKS (CLEAN GLASS STYLE)
    ========================= */

    .nav a {
        width: 100%;
        padding: 12px 14px;

        border-radius: 12px;

        background: rgba(255, 255, 255, 0.6);
        border: 1px solid rgba(0, 0, 0, 0.05);

        color: #111827;
        font-size: 14px;
        font-weight: 500;

        text-decoration: none;

        transition: 0.25s ease;
    }

    .nav a:hover {
        background: rgba(245, 158, 11, 0.15);
        border-color: rgba(245, 158, 11, 0.3);
        transform: translateX(5px);
    }
    .nav-actions {
        padding-right: 10px;
    }
}

/* =========================================
   SMALL DEVICES
========================================= */

@media (max-width: 480px) {

    .logo {
        font-size: 20px;
    }

    .account-name {
        display: none;
    }

    .account-btn {
        padding: 6px 8px;
        position: relative; /* REQUIRED for absolute dropdown positioning */
    }
}

/* =========================================
   ANIMATION
========================================= */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* =========================================
   MOBILE FIX (ONLY MOBILE STYLES)
========================================= */

@media (max-width: 768px) {

    /* HEADER SAFETY */
    .header {
        z-index: 10000;
        position: fixed;
        top: 0;
        left: 0;
        height: 70px;

    }

    /* LOGO LEFT (NO SHIFT) */
    .logo {
        position: relative;
        z-index: 10002;
        padding-left: 12px;
    }

    /* RIGHT SIDE FIX */
    .nav-actions {
        position: relative;
        z-index: 10002;
        padding-right: 12px;
    }

    /* =========================
       CENTER MENU TOGGLE (FIXED)
    ========================= */

    .menu-toggle {
        display: block;
        position: absolute;
        left: 50%;
        top: 50%;
        right:50%;
        transform: translate(-50%, -50%);
        font-size: 28px;
        color: #fff;
        z-index: 10003;
    }

    /* =========================
       OVERLAY
    ========================= */

    .nav-overlay {
        z-index: 9998;
    }

    /* =========================
       MOBILE NAV PANEL
    ========================= */

    .nav {
        position: fixed;
        top: 70px; /* ALWAYS BELOW HEADER */
        left: 0;

        width: 50%;
        height: calc(50vh - 40px);

        background: rgba(17, 24, 39, 0.98);
        backdrop-filter: blur(14px);

        display: flex;
        flex-direction: column;   /* 🔥 COLUMN LAYOUT */
        align-items: flex-start;   /* LEFT ALIGNED */
        justify-content: flex-start;

        padding: 18px 16px;
        gap: 10px;

        overflow-y: auto;
        overflow-x: visible;   /* ✅ ADD THIS */


        /* hidden state */
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;

        transition: 0.25s ease;

        z-index: 10000;
    }

    /* OPEN STATE */
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;

    }

    /* =========================
       CATEGORY ITEMS (PILL STYLE LIST)
    ========================= */

    .nav a {
        width: 100%;
        text-align: left;

        padding: 12px 14px;
        border-radius: 12px;

        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.08);

        color: #fff;
        font-size: 14px;
        font-weight: 500;

        transition: 0.2s ease;
    }

    .nav a:hover {
        background: rgba(245, 158, 11, 0.12);
        border-color: rgba(245, 158, 11, 0.4);
        transform: translateX(4px);
    }

    /* hide desktop spacing issues */
    .nav-actions {
        z-index: 10002;
    }
}

/* =========================================
   SMALL MOBILE FIX
========================================= */

@media (max-width: 480px) {

    .logo {
        font-size: 20px;
    }

    .account-btn {
        padding: 6px 8px;
    }

    .account-name {
        display: none;
    }

    .menu-toggle {
        font-size: 26px;
    }

}

/* =========================================
   EXTRA SMALL DEVICES
========================================= */

@media (max-width: 360px) {

    .nav a {
        font-size: 13px;
        padding: 10px 12px;
    }
}


/* =========================================
   AUTH BUTTONS WRAPPER
========================================= */

.auth-buttons{
    display:flex;
    align-items:center;
    gap:12px;
}

/* =========================================
   COMMON BUTTON STYLE
========================================= */

.auth-buttons a{
    text-decoration:none;

    padding:10px 18px;

    border-radius:12px;

    font-size:14px;
    font-weight:600;

    transition:0.25s ease;

    display:flex;
    align-items:center;
    justify-content:center;
}

/* =========================================
   LOGIN BUTTON
========================================= */

.login-btn{
    color:#ffffff;

    border:1px solid rgba(255,255,255,0.15);

    background:rgba(255,255,255,0.06);
    backdrop-filter:blur(10px);
}

.login-btn:hover{
    background:rgba(255,255,255,0.12);
    transform:translateY(-2px);
}

/* =========================================
   SIGNUP BUTTON
========================================= */

.signup-btn{
    background:#f59e0b;
    color:#111827;

    border:1px solid transparent;

    box-shadow:
        0 10px 25px rgba(245,158,11,0.25);
}

.signup-btn:hover{
    background:#ffb11f;
    transform:translateY(-2px);

    box-shadow:
        0 14px 30px rgba(245,158,11,0.35);
}

/* =========================================
   MOBILE
========================================= */

@media(max-width:768px){

    .auth-buttons{
        gap:8px;
    }

    .auth-buttons a{
        padding:8px 14px;
        font-size:13px;
        border-radius:10px;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media(max-width:480px){

    .auth-buttons{
        gap:6px;
    }

    .auth-buttons a{
        padding:7px 12px;
        font-size:12px;
    }
}