/* Unified hamburger menu — shared across all pages.
   Matches GEX Studio header-menu-btn styling for consistency. */

.gf-hamburger {
    position: relative;
    display: inline-flex;
}

.gf-hamburger-btn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 4px 8px;
    height: 32px;
    min-width: 36px;
    color: var(--bs-body-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}

.gf-hamburger-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.gf-hamburger-btn:active {
    transform: scale(0.95);
}

/* Light theme */
[data-bs-theme="light"] .gf-hamburger-btn {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #1a1a2e;
}

[data-bs-theme="light"] .gf-hamburger-btn:hover {
    background-color: rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.3);
}

/* Dark theme */
[data-bs-theme="dark"] .gf-hamburger-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

[data-bs-theme="dark"] .gf-hamburger-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Login state dot (green, top-right corner of hamburger icon).
   Turns red (.is-news) when there's an unread changelog/notification — red takes
   priority over green when both apply. */
.gf-hamburger-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    border: 1.5px solid var(--bs-body-bg);
}
.gf-hamburger-dot.is-news {
    background: #ef4444;
}
/* Red dot mark next to "What's New" hamburger item */
.gf-hamburger-news-mark {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    margin-left: 6px;
}

/* Compact Light/Dark theme segmented toggle inside hamburger menu */
.gf-theme-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 16px;
    gap: 10px;
}
.gf-theme-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bs-secondary-color, #6c757d);
    font-weight: 600;
}
.gf-theme-segmented {
    display: inline-flex;
    gap: 2px;
    background: rgba(127, 127, 127, 0.08);
    border-radius: 6px;
    padding: 2px;
}
.gf-theme-seg {
    border: 0;
    background: transparent;
    color: var(--bs-secondary-color, #6c757d);
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.gf-theme-seg:hover { color: var(--bs-body-color); }
.gf-theme-seg.active {
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.gf-theme-seg .lucide-icon-inline { width: 14px; height: 14px; }

/* Mobile: match header button height (36px tap target) */
@media (max-width: 767.98px) {
    .gf-hamburger-btn {
        height: 36px;
        min-width: 36px;
    }
}

/* Constrain dropdown width */
.gf-hamburger .dropdown-menu {
    min-width: 220px;
    max-width: 280px;
}
