/* Shared floating header chrome — home, docs, themes, plugins */

a.brand-badge {
    text-decoration: none;
    color: inherit;
}

.brand-badge {
    position: fixed;
    top: max(14px, env(safe-area-inset-top));
    left: max(14px, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 40px;
    padding: 0 18px;
    box-sizing: border-box;
    z-index: 100;
    pointer-events: auto;
    cursor: pointer;
    border-radius: 999px;
    background: rgba(14, 14, 16, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.brand-badge:hover {
    background: rgba(22, 22, 26, 0.88);
    border-color: rgba(45, 212, 245, 0.22);
    box-shadow:
        0 10px 36px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(45, 212, 245, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.badge-icon {
    width: 24px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.badge-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
}

.action-header {
    position: fixed;
    top: max(14px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 100;
    pointer-events: auto;
    padding: 5px;
    border-radius: 999px;
    background: rgba(10, 10, 12, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.38);
}

.action-header-more {
    position: relative;
    display: none;
}

button.action-button {
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.action-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 999px;
    box-sizing: border-box;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.88);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease,
        box-shadow 0.22s ease;
}

.action-button * {
    pointer-events: none;
}

.action-button svg {
    font-size: 0.95rem;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    opacity: 0.9;
}

.action-button:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(45, 212, 245, 0.08);
}

.action-button:active {
    background: rgba(255, 255, 255, 0.06);
}

.action-button--current {
    background: linear-gradient(
        135deg,
        rgba(45, 212, 245, 0.16),
        rgba(208, 32, 168, 0.14)
    );
    border-color: rgba(45, 212, 245, 0.28);
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 24px rgba(45, 212, 245, 0.1);
    cursor: default;
    pointer-events: none;
}

.action-button--more[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
}

.action-more-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 210px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    border-radius: 14px;
    background: rgba(14, 14, 16, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    z-index: 110;
}

.action-more-menu[hidden] {
    display: none;
}

.action-more-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.action-more-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.action-more-item svg {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    opacity: 0.85;
}

@media (max-width: 640px) {
    .brand-badge .badge-text {
        display: none;
    }

    .brand-badge {
        width: 40px;
        padding: 0;
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .action-button--desktop-only {
        display: none !important;
    }

    .action-header-more {
        display: block;
    }
}

@media (max-width: 480px) {
    .action-header {
        gap: 4px;
        padding: 4px;
    }

    .action-button span {
        display: none;
    }

    .action-button {
        width: 34px;
        min-width: 34px;
        height: 34px;
        padding: 0;
    }
}
