/* ==========================================================================
   catnip_supporter_slideup.css
   Slide-up supportership invitation — appears on every page.
   Location on server: /css/catnip_supporter_slideup.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   Container — the full slide-up panel
   -------------------------------------------------------------------------- */
#supporter-slideup {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 580px;
    z-index: 9990; /* Below A.overlay (typically 10000+) */
    font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Kaku Gothic Pro",
                 "Yu Gothic", YuGothic, Meiryo, sans-serif;
    box-sizing: border-box;
    pointer-events: none;
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
                opacity 0.35s ease;
}

#supporter-slideup.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

#supporter-slideup.is-hidden {
    transform: translateX(-50%) translateY(100%);
    opacity: 0;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Inner card
   -------------------------------------------------------------------------- */
#supporter-slideup-inner {
    position: relative;
    margin: 0 12px 12px;
    padding: 22px 48px 22px 24px; /* right padding accommodates close button */
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 -2px 18px rgba(0, 0, 0, 0.12),
                0 0 0 1px rgba(0, 0, 0, 0.04);
    text-align: center;
}

/* --------------------------------------------------------------------------
   Text content
   -------------------------------------------------------------------------- */
#supporter-slideup-text {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.55;
    color: #333333;
}

/* --------------------------------------------------------------------------
   Learn More button
   -------------------------------------------------------------------------- */
#supporter-slideup-cta {
    display: inline-block;
    padding: 9px 28px;
    background: #e8833a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

#supporter-slideup-cta:hover,
#supporter-slideup-cta:focus {
    background: #d0722e;
    color: #ffffff;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Dismiss (close) button — top-right corner of card
   -------------------------------------------------------------------------- */
#supporter-slideup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
    line-height: 32px;
    text-align: center;
    color: #999999;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
}

#supporter-slideup-close:hover,
#supporter-slideup-close:focus {
    color: #555555;
    background: rgba(0, 0, 0, 0.05);
}

/* --------------------------------------------------------------------------
   Mini-tag — visible after dismissal
   -------------------------------------------------------------------------- */
#supporter-minitag {
    position: fixed;
    bottom: 12px;
    right: 16px;
    z-index: 9990;
    padding: 8px 16px;
    background: #e8833a;
    color: #ffffff;
    font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Kaku Gothic Pro",
                 "Yu Gothic", YuGothic, Meiryo, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease,
                background 0.2s ease;
    box-sizing: border-box;
}

#supporter-minitag.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#supporter-minitag:hover,
#supporter-minitag:focus {
    background: #d0722e;
}

/* --------------------------------------------------------------------------
   Mobile / responsive — full-width banner at bottom (decision D7)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 640px) {

    #supporter-slideup {
        max-width: none;
        left: 0;
        right: 0;
        transform: translateX(0) translateY(100%);
    }

    #supporter-slideup.is-visible {
        transform: translateX(0) translateY(0);
    }

    #supporter-slideup.is-hidden {
        transform: translateX(0) translateY(100%);
    }

    #supporter-slideup-inner {
        margin: 0;
        border-radius: 10px 10px 0 0;
        padding: 18px 44px 18px 18px;
    }

    #supporter-slideup-text {
        font-size: 14px;
        margin-bottom: 12px;
    }

    #supporter-slideup-cta {
        font-size: 13px;
        padding: 8px 22px;
    }

    #supporter-minitag {
        right: 12px;
        bottom: 10px;
        font-size: 12px;
        padding: 7px 14px;
    }
}
