/* =========================================================
   menu.css — "Pages" dropdown next to Register
   Styled to match the app's white Demo dropdown box.
   ========================================================= */

.pagemenu {
    position: relative;
    display: inline-block;
}

/* Trigger — just a dropdown arrow, blends into the header, stays compact
   so it doesn't push the Login/Register buttons out of the right corner */
.pagemenu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--hdr-text, #ffffff);
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 4px 6px;
    line-height: 1;
}

.pagemenu-btn .caret {
    font-size: 18px;
    line-height: 1;
    transition: transform .15s ease;
}

.pagemenu.open .pagemenu-btn .caret {
    transform: rotate(180deg);
}

/* The white dropdown box.
   Compact popup proportions taken from the reference: 160px wide,
   4px corners, a subtle 1px hairline and a soft shadow, 8px of
   vertical padding. min-width rather than width so a longer label
   ("Responsible Gaming") widens the box just enough instead of
   wrapping; max-width keeps it inside a narrow viewport. */
.pagemenu-list {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    max-width: calc(100vw - 16px);
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .20);
    padding: 8px 0;
    margin: 0;
    list-style: none;
    display: none;
    z-index: 2000;
}

.pagemenu.open .pagemenu-list {
    display: block;
}

.pagemenu-list li {
    margin: 0;
}

/* Menu rows. 19px line-height + 6px padding top and bottom gives the
   reference's 31px row. Roboto Condensed is scoped to the dropdown so
   the site's global font is untouched. */
.pagemenu-list a {
    display: block;
    padding: 6px 12px;
    color: #000000;
    text-decoration: none;
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
    white-space: nowrap;
}

.pagemenu-list a:hover {
    background: #f2f4f7;
}

/* Full-width hairline separating the last group, as in the reference. */
.pagemenu-list .menu-divider {
    height: 1px;
    background: #dddddd;
    margin: 8px 0;
}
