/* =========================================================
   GUN Stats — site-wide admin login button
   Only the floating admin-login button. Loads on EVERY page of the site
   (the only CSS needed outside stats pages).
   ========================================================= */

/* =========================================================
   v0.3.17 - sitewide header admin login button
   ========================================================= */
.gun-site-admin-login-wrap {
    position: fixed;                                                                /* Sets the element positioning method. */
    top: 18px;                                                                      /* Sets the top offset for positioned elements. */
    right: 18px;                                                                    /* Sets the right offset for positioned elements. */
    z-index: 999999;                                                                /* Controls the stacking order above or below other elements. */
    pointer-events: none;                                                           /* Controls whether the element receives pointer input. */
}

.admin-bar .gun-site-admin-login-wrap {
    top: 50px;                                                                      /* Sets the top offset for positioned elements. */
}

.gun-site-admin-login-wrap .gun-admin-top-login {
    pointer-events: auto;                                                           /* Controls whether the element receives pointer input. */
    display: inline-flex;                                                           /* Sets how the element is rendered in the layout. */
    align-items: center;                                                            /* Controls vertical alignment of child items. */
    justify-content: center;                                                        /* Controls horizontal distribution of child items. */
    min-height: 38px;                                                               /* Sets the minimum allowed height. */
    padding: 9px 14px;                                                              /* Sets the button or navigation spacing. */
    color: #090b0f;                                                                 /* Sets the text color. */
    background: linear-gradient(145deg, #d8b54e, #b68324);                          /* Sets the button or navigation background. */
    border: 1px solid rgba(216, 181, 78, 0.46);                                     /* Sets the element border. */
    border-radius: 12px;                                                            /* Rounds the button or navigation corners. */
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);                                    /* Adds the element shadow effect. */
    font-size: 0.72rem;                                                             /* Sets the button or navigation text size. */
    font-weight: 950;                                                               /* Sets the button or navigation text weight. */
    letter-spacing: 0.12em;                                                         /* Sets spacing between letters. */
    line-height: 1;                                                                 /* Sets the height of each text line. */
    text-decoration: none;                                                          /* Controls link or text decoration. */
    text-transform: uppercase;                                                      /* Changes text casing. */
    white-space: nowrap;                                                            /* Controls text wrapping behavior. */
}

.gun-site-admin-login-wrap .gun-admin-top-login:hover {
    filter: brightness(1.06);                                                       /* Applies a visual filter effect. */
    transform: translateY(-1px);                                                    /* Applies a visual transform to the element. */
}

@media (max-width: 640px) {
    .gun-site-admin-login-wrap {
        top: 12px;                                                                  /* Sets the top offset for positioned elements. */
        right: 12px;                                                                /* Sets the right offset for positioned elements. */
    }

    .admin-bar .gun-site-admin-login-wrap {
        top: 58px;                                                                  /* Sets the top offset for positioned elements. */
    }

    .gun-site-admin-login-wrap .gun-admin-top-login {
        min-height: 34px;                                                           /* Sets the minimum allowed height. */
        padding: 8px 11px;                                                          /* Sets the button or navigation spacing. */
        border-radius: 10px;                                                        /* Rounds the button or navigation corners. */
        font-size: 0.64rem;                                                         /* Sets the button or navigation text size. */
        letter-spacing: 0.09em;                                                     /* Sets spacing between letters. */
    }
}
