/* TapPlaza Frontend Navigation — tapplaza.com */

/* ── Nav header ──────────────────────────────────────────────────────── */
.tap-nav-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 20px;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 9000;
    box-shadow: 0 2px 12px rgba(108,63,197,.08);
    flex-wrap: nowrap;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

/* Brand */
.tap-nav-brand a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #2d3748;
    white-space: nowrap;
}
.tap-nav-logo {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, #6c3fc5, #5530a3);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px; flex-shrink: 0;
}
.tap-nav-site { font-size: 15px; font-weight: 800; color: #2d3748; }

/* Scrollable nav links */
.tap-nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 8px;
}
.tap-nav-menu::-webkit-scrollbar { display: none; }

.tap-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #718096;
    font-size: 10px;
    white-space: nowrap;
    transition: all .15s;
    flex-shrink: 0;
    min-width: 54px;
}
.tap-nav-link:hover {
    background: #f0ebfa;
    color: #6c3fc5;
    text-decoration: none;
}
.tap-nav-link.active {
    background: #f0ebfa;
    color: #6c3fc5;
    font-weight: 700;
}
.tap-nav-icon  { font-size: 18px; line-height: 1; }
.tap-nav-label { font-size: 10px; font-weight: 500; }

/* User section */
.tap-nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 8px;
    border-left: 1px solid #e2e8f0;
}
.tap-nav-avatar {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, #6c3fc5, #5530a3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 13px; font-weight: 700;
    flex-shrink: 0;
}
.tap-nav-user-info {
    display: flex; flex-direction: column; gap: 1px;
    line-height: 1.2;
}
.tap-nav-user-info strong { font-size: 12px; color: #2d3748; white-space: nowrap; max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
.tap-nav-badge {
    font-size: 10px;
    background: #f0ebfa;
    color: #6c3fc5;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 600;
    width: fit-content;
}
.tap-nav-logout {
    color: #e53e3e;
    font-size: 18px;
    text-decoration: none;
    padding: 4px;
    border-radius: 6px;
    transition: background .15s;
    flex-shrink: 0;
    line-height: 1;
}
.tap-nav-logout:hover { background: #fff5f5; text-decoration: none; }

/* Hamburger (hidden on desktop) */
.tap-nav-toggle { display: none; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .tap-nav-header { padding: 0 14px; position: relative; flex-wrap: wrap; height: auto; min-height: 56px; }

    .tap-nav-brand  { flex: 1; }

    .tap-nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        border-radius: 6px;
        order: 2;
        flex-shrink: 0;
    }
    .tap-nav-toggle span {
        display: block;
        width: 20px; height: 2px;
        background: #4a5568;
        border-radius: 2px;
        transition: .2s;
    }

    .tap-nav-menu {
        order: 4;
        width: 100%;
        flex: none;
        gap: 4px;
        padding: 8px 0 12px;
        display: none;
        border-top: 1px solid #f0f0f0;
        margin-top: 4px;
        overflow-x: auto;
    }
    .tap-nav-menu.open { display: flex; }

    .tap-nav-user {
        order: 3;
        border-left: none;
        padding-left: 0;
        margin-left: 0;
    }
    .tap-nav-user-info { display: none; }

    /* Bigger tap targets on mobile */
    .tap-nav-link {
        min-width: 62px;
        padding: 8px 10px;
    }
    .tap-nav-icon  { font-size: 20px; }
    .tap-nav-label { font-size: 10px; }
}

@media (max-width: 380px) {
    .tap-nav-link { min-width: 52px; padding: 6px 8px; }
}
