/* =========================
   Global Reset
   ========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* =========================
   PHONE HEADER
========================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: var(--nav-header-bg);
    display: flex;
    align-items: center;      /* vertically center logo and icons */
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 1000;
    border-bottom: 2px solid var(--nav-divider);
}

/* Logo */
.site-header .logo {
    display: flex;
    align-items: center;      /* vertically center image */
}
.site-header .logo img {
    height: 24px;             /* mobile-optimized logo size */
    width: auto;
    display: block;
}

/* Hide hamburger on tablet */
.nav-toggle {
    display: none;
}

/* =========================
   ACCOUNT NAV (RIGHT)
   ========================= */
.account-nav ul {
    list-style: none;
}

.account-nav li {
    position: relative;
}

.account-nav > ul > li > a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--nav-account-text);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
}

.account-nav img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.account-nav li ul {
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--nav-account-bg);
    min-width: 180px;
    list-style: none;
    display: none;
    border: 1px solid var(--nav-account-bg);
}

.account-nav li:hover ul {
    display: block;
}

.account-nav li ul a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--nav-account-link);
    text-decoration: none;
}

.account-nav li ul a:hover {
    background: var(--nav-account-hover);
    color: var(--nav-account-link-hover);
}

/* =========================
   SIDEBAR (BUTTON STYLE)
   ========================= */
.primary-nav {
    position: fixed;
    top: 60px;                /* header height */
    left: 0;
    width: 150px;             /* slimmer tablet width */
    height: calc(100vh - 60px);
    background: var(--nav-side-bg);
    z-index: 900;
}

/* Sidebar list */
.primary-nav ul {
    list-style: none;
    display: grid;
    gap: 0;
}

/* Top-level links as square buttons */
.primary-nav > ul > li > a {
    display: block;
    padding: 0.9rem 1rem;
    margin: 0;
    font-weight: 600;
    background: var(--nav-side-bg);
    color: var(--nav-link);
    text-decoration: none;
    border-radius: 0;          /* square */
    border-bottom: 2px solid var(--nav-divider); /* divider */
}

.primary-nav > ul > li > a:hover {
    background: var(--nav-hover);
    color: var(--nav-link-hover);
}

/* =========================
   SUB NAV BUTTONS
   ========================= */
.primary-nav .has-children > ul {
    margin-top: 0;
    padding-left: 0;
    display: none;
    gap: 0;
}

.primary-nav .has-children:hover > ul {
    display: grid;
}

/* Child items */
.primary-nav .has-children ul a {
    display: block;
    padding: 0.6rem;
    background: var(--nav-child-bg);
    color: var(--nav-link);
    text-decoration: none;
    font-size: 0.9rem;
    text-align: center;
	border-radius: 0;          /* square */
    border-bottom: 1px solid var(--nav-divider); /* divider */
}

.primary-nav .has-children ul a:hover {
    background: var(--nav-hover);
    color: var(--nav-link-hover);
}

/* --------------------------------------------
   Account / Login Icon (Pure CSS)
--------------------------------------------- */

.account-icon {
    position: relative;
    width: 28px;
    height: 28px;
    display: inline-block;
    cursor: pointer;
}

/* Head */
.account-head {
    position: absolute;
    top: 2px;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #e6e6e6;
    border-radius: 50%;
    transform: translateX(-50%);
}

/* Body / shoulders */
.account-body {
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 18px;
    height: 12px;
    background: #e6e6e6;
    border-radius: 10px 10px 4px 4px;
    transform: translateX(-50%);
}

/* Hover effect */
.account-icon:hover .account-head,
.account-icon:hover .account-body {
    background: var(--accent-color);
}

/* Logged-in status dot */
.account-icon.logged-in::after {
    content: "";
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(122,162,255,0.8);
}


/* =========================
   PAGE CONTENT
   ========================= */
.site-content {
    margin-left: 150px; /* match side nav size */
    margin-top: 60px;   /* below header */
    padding: 2rem;
}



