/* nav.css — Unified navigation bar for all Platinum Fundraising pages */

.pf-nav {
    display: flex;
    align-items: center;
    height: 36px;
    background: var(--brand-blue, #0090e2);
    padding: 0 12px;
    position: sticky;
    top: 0;
    z-index: 9000;
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* Allow nav to grow taller if pills wrap */
.pf-nav--admin {
    height: auto;
    min-height: 36px;
    padding: 4px 12px;
}

.pf-nav-brand {
    font-family: var(--font-display, 'Dominos Sans Display', sans-serif);
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dough-100, #fefaf6);
    text-decoration: none;
    margin-right: 16px;
    white-space: nowrap;
    flex-shrink: 0;
}

.pf-nav-pills {
    display: flex;
    gap: 2px;
    align-items: center;
    flex: 1;
    flex-wrap: wrap;
}

.pf-nav-pill {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    position: relative;
}

.pf-nav-pill:hover {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

.pf-nav-pill.active {
    color: #fff;
    background: var(--dark-blue, #005c91);
}

/* Group separator */
.pf-nav-sep {
    color: rgba(255,255,255,0.3);
    font-size: 0.65rem;
    margin: 0 2px;
    user-select: none;
}

/* Spacer between nav sections (Caller/Dashboard vs CRM groups) */
.pf-nav-spacer {
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,0.25);
    margin: 0 8px;
    flex-shrink: 0;
}

/* Group dropdowns */
.pf-nav-dropdown {
    position: relative;
}

.pf-nav-dropdown-arrow {
    font-size: 0.55rem;
    margin-left: 3px;
    opacity: 0.7;
}

.pf-nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    min-width: 180px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 4px 0;
    z-index: 9001;
}

.pf-nav-dropdown.open .pf-nav-dropdown-menu {
    display: block;
    animation: nav-dropdown-in 0.15s ease-out;
}
@keyframes nav-dropdown-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.pf-nav-dropdown-item {
    display: block;
    padding: 7px 16px;
    color: var(--text-primary, #603913);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: background 0.1s;
    white-space: nowrap;
}

.pf-nav-dropdown-item:hover {
    background: var(--dough-300, #f1e9db);
}

.pf-nav-dropdown-item.active {
    color: var(--brand-blue, #0090e2);
    font-weight: 700;
}

.pf-nav-divider {
    height: 1px;
    background: var(--dough-400, #e8d9bf);
    margin: 4px 0;
}

.pf-nav-dropdown-label {
    padding: 4px 16px 2px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary, #8f6c49);
}

/* Right side */
.pf-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.pf-nav-user {
    color: rgba(255,255,255,0.85);
    font-size: 0.65rem;
    white-space: nowrap;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf-nav-logout {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    cursor: pointer;
    background: none;
    font-family: inherit;
    transition: all 0.15s;
}

.pf-nav-logout:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.12);
}

/* Help icon */
.pf-nav-help {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    transition: all 0.15s;
    flex-shrink: 0;
}

.pf-nav-help:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.1);
}

/* Focus visible for keyboard nav */
.pf-nav-pill:focus-visible {
    outline: 2px solid rgba(255,255,255,0.8);
    outline-offset: 1px;
}
.pf-nav-dropdown-item:focus-visible {
    outline: 2px solid var(--brand-blue, #0090e2);
    outline-offset: -2px;
}
.pf-nav-logout:focus-visible {
    outline: 2px solid rgba(255,255,255,0.8);
    outline-offset: 1px;
}

/* Hide on very small screens */
@media (max-width: 480px) {
    .pf-nav-user { display: none; }
    .pf-nav-brand { margin-right: 8px; }
    .pf-nav-pill { padding: 4px 6px; font-size: 0.65rem; }
    .pf-nav-sep { display: none; }
}
