/* ═══════════════════════════════════════════════════════════════════
   DRRRP hero button system — ditwah (teal theme). SINGLE SOURCE OF TRUTH.
   Canonical names: .hero-btn / .hero-btn--solid|white|outline, .hero-searchbar
   Legacy aliases (same visuals, do not extend): .home-hero-btn[.is-*],
   .org-hero-btn[.is-*]. Per-page duplicate <style> blocks were removed —
   edit HERE, not in page files. Loaded by layout.php + landing.php (?v=).
   ═══════════════════════════════════════════════════════════════════ */

/* ── Base pill (links + buttons) ── */
.hero-btn,
.home-hero-btn,
.org-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .01em;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease, background .16s ease;
}
.hero-btn i, .home-hero-btn i { font-size: 13px; }
.org-hero-btn i { font-size: 14px; }
.hero-btn:active, .home-hero-btn:active, .org-hero-btn:active { transform: translateY(1px); }
.hero-btn:disabled, .home-hero-btn:disabled, .org-hero-btn:disabled { opacity: .65; cursor: not-allowed; transform: none !important; }

/* ── Primary: teal gradient (Login / key actions) ── */
.hero-btn--solid,
.home-hero-btn.is-solid,
.org-hero-btn.is-solid {
    background: linear-gradient(94deg, #5eead4 0%, #2dd4bf 50%, #34d399 100%);
    color: #04302a;
    border: 1px solid rgba(255, 255, 255, .45);
    box-shadow: 0 8px 24px -8px rgba(45, 212, 191, .8), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.hero-btn--solid:hover,
.home-hero-btn.is-solid:hover,
.org-hero-btn.is-solid:hover {
    filter: brightness(1.07);
    transform: translateY(-1px);
    box-shadow: 0 12px 30px -8px rgba(45, 212, 191, .9), inset 0 1px 0 rgba(255, 255, 255, .55);
}

/* ── Secondary: white pill (Search / exports / nav) ── */
.hero-btn--white,
.home-hero-btn.is-white,
.org-hero-btn.is-search {
    background: #fff;
    color: #0b4f4a;
    border: 1px solid #fff;
    box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .55);
}
.hero-btn--white:hover,
.home-hero-btn.is-white:hover,
.org-hero-btn.is-search:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .6);
}
.hero-btn--white i,
.home-hero-btn.is-white i,
.org-hero-btn.is-search i { color: #0d9488; }

/* ── Ghost: glass outline (Logout / user pill / secondary links) ── */
.hero-btn--outline,
.home-hero-btn.is-outline,
.org-hero-btn.is-outline {
    border: 1px solid rgba(255, 255, 255, .45);
    color: #fff;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.hero-btn--outline:hover,
.home-hero-btn.is-outline:hover,
.org-hero-btn.is-outline:hover {
    background: rgba(255, 255, 255, .18);
    transform: translateY(-1px);
}

/* ── ⌘K hint inside buttons ── */
.hero-btn kbd,
.home-hero-btn kbd,
.org-hero-btn kbd {
    margin-left: 2px;
    padding: 2px 7px;
    font-size: 10px;
    font-family: monospace;
    font-weight: 700;
    background: #0b4f4a;
    color: #5eead4;
    border-radius: 6px;
}

/* ── Glass searchbar pill (teal) — opens the command palette ── */
.hero-searchbar {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
    max-width: 300px;
    flex: 1 1 220px;
    min-height: 44px;
    padding: 0 8px 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .55);
    cursor: text;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.hero-searchbar:hover { background: rgba(255, 255, 255, .16); }
.hero-searchbar:focus-within {
    border-color: rgba(153, 246, 228, .55);
    background: rgba(255, 255, 255, .16);
    box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .55), 0 0 0 3px rgba(45, 212, 191, .25);
}
.hero-searchbar i { color: #99f6e4; font-size: 13px; flex-shrink: 0; }
.hero-searchbar input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.hero-searchbar input::placeholder { color: rgba(255, 255, 255, .6); font-weight: 500; }
.hero-searchbar kbd {
    padding: 2px 7px;
    font-size: 10px;
    font-family: monospace;
    font-weight: 700;
    background: rgba(4, 47, 46, .7);
    color: #5eead4;
    border-radius: 6px;
    flex-shrink: 0;
}

/* ── Hero action cluster (right side of hero row) ── */
.hero-actions { display: flex; align-items: center; gap: 8px; }
.hero-actions > * { flex-shrink: 0; }

/* ── Signed-in user dropdown menu (rendered by heroUserDropdown()) ── */
#heroUserMenu { position: fixed; min-width: 210px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 18px 44px -12px rgba(2, 32, 28, .35); padding: 6px; z-index: 9999; margin: 0; }
#heroUserMenu[hidden] { display: none !important; }
#heroUserMenu:not([hidden]) { display: flex; flex-direction: column; gap: 2px; margin: 0; }
#heroUserMenu a { display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box; padding: 9px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 700; color: #334155; text-decoration: none; white-space: nowrap; line-height: 1.3; }
#heroUserMenu a:hover { background: #f0fdfa; color: #0f766e; }
#heroUserMenu a i { font-size: 14px; color: #0d9488; }
#heroUserMenu .hero-user-div { height: 1px; margin: 5px 8px; background: #e2e8f0; }
#heroUserBtn[aria-expanded="true"] #heroUserChev { transform: rotate(180deg); }
#heroUserChev { transition: transform .15s ease; }

/* ── Focus visibility + reduced motion ── */
.hero-btn:focus-visible,
.home-hero-btn:focus-visible,
.org-hero-btn:focus-visible,
.btn-hero-ghost:focus-visible,
.hero-searchbar input:focus-visible {
    outline: 3px solid #0d9488;
    outline-offset: 3px;
}
.hero-searchbar input:focus-visible { outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) {
    .hero-btn, .home-hero-btn, .org-hero-btn,
    .hero-btn:hover, .home-hero-btn:hover, .org-hero-btn:hover { transform: none !important; }
}
