/* =========================
   Desktop Layout
   ========================= */

/* Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* =========================
   HEADER / TOP BAR
   ========================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--nav-header-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 1000;
	border-bottom: 2px solid var(--nav-divider); /* divider */
}

/* Logo */
.site-header .logo img {
	display: flex;
    width: 250px; /* logo size */
	align-items: center; /* centers the img vertically within .logo */
	height: auto;
}

/* Hamburger (hidden on desktop) */
.nav-toggle {
    display: none;
}

/* =========================
   PRIMARY NAVIGATION
   ========================= */
.primary-nav {
    display: flex;
	position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.primary-nav ul {
    display: flex;
    list-style: none;
}

.primary-nav li {
    position: relative;
}

.primary-nav > ul > li > a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--nav-link);
    text-decoration: none;
}

.primary-nav > ul > li > a:hover {
    color: var(--nav-link-hover);
}

/* Dropdowns */
.primary-nav .has-children ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: var(--nav-child-bg); /* fixed background */
    box-shadow: 0 1px 10px rgba(0,0,0,0.2);
    display: none;
    padding: 0;
    z-index: 1000;
}

.primary-nav .has-children:hover > ul {
    display: block;
}

.primary-nav .has-children ul li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--nav-link);
    background-color: var(--nav-child-bg);
    text-decoration: none;
}

.primary-nav .has-children ul li a:hover {
    background-color: var(--nav-hover);
    color: var(--nav-link-hover);
}

/* =========================
   ACCOUNT NAV
   ========================= */
.account-nav {
    display: flex;
    align-items: center;
}

.account-nav ul {
    display: flex;
    list-style: none;
}

.account-nav li {
    position: relative;
}

.account-nav li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: var(--nav-account-text);
    text-decoration: none;
}

.account-nav li a img {
    height: 24px;
    width: 24px;
    border-radius: 50%;
}

/* Account dropdown */
.account-nav .has-children ul {
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 180px;
    background-color: var(--nav-account-bg);
    display: none;
    border: 1px solid -var(--nav-account-bg);
    padding: 0;
    z-index: 1001; /* ensure above primary nav dropdown */
}

.account-nav li:hover > ul {
    display: block;
}

.account-nav .has-children ul li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--nav-account-link);
    background-color: var(--nav-account-bg);
    text-decoration: none;
}

.account-nav .has-children ul li a:hover {
    background-color: var(--nav-account-hover);
    color: var(--nav-account-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);
}


/* =========================
   MAIN CONTENT AREA
   ========================= */
.site-content {
    margin-top: 60px; /* leave space for fixed header */
    padding: 2rem;
}



