@charset "UTF-8";

/* ============================================================================
 * Private Sun Yat-sen Memorial Hall — Apple Native Activity Indicator (activity-indicator.css)
 * ============================================================================
 * COMMENTING STANDARDS
 * 1. Block comments only. Inline comments are strictly prohibited.
 * 2. Section dividers use the === banner format.
 * 3. All prose is written in English.
 * ============================================================================ */

@layer components {
    /* ========================================================================
     * Section 1: Indicator Container Overlay
     * ======================================================================== */
    .sys-activity-overlay {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        min-height: 60vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: var(--sys-bg, #000000);
        z-index: 999;
        opacity: 1;
        transition: opacity 0.2s ease-out;
        pointer-events: auto;
    }

    body > .sys-activity-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        min-height: 100vh;
        z-index: 9000;
        background-color: var(--sys-bg, #000000);
    }

    @media (prefers-color-scheme: light) {
        .sys-activity-overlay,
        body > .sys-activity-overlay {
            background-color: var(--sys-bg, #f2f2f7);
        }

        body.is-desktop-home .sys-activity-overlay,
        body.is-desktop-home > .sys-activity-overlay,
        body.is-home > .sys-activity-overlay,
        body:not(.page-announcement-menu):not(.page-subpage):not(.is-subpage) > .sys-activity-overlay {
            background-color: var(--sys-bg-home, #ffffff);
        }
    }

    .sys-activity-overlay.overlay-fading {
        opacity: 0;
        pointer-events: none;
    }

    /* ========================================================================
     * Section 2: Authentic 12-Blade Apple UIActivityIndicatorView (Daisy Spinner)
     * ======================================================================== */
    .sys-activity-spinner {
        position: relative;
        width: 36px;
        height: 36px;
        display: inline-block;
    }

    .sys-activity-blade {
        position: absolute;
        left: 45%;
        top: 0;
        width: 10%;
        height: 28%;
        border-radius: 999px;
        background-color: rgba(255, 255, 255, 0.68);
        transform-origin: 50% 178%;
        animation: sys-blade-fade 1s linear infinite;
    }

    @media (prefers-color-scheme: light) {
        .sys-activity-blade {
            background-color: rgba(29, 29, 31, 0.65);
        }
    }

    .sys-activity-blade:nth-child(1)  { transform: rotate(0deg);   animation-delay: 0s; }
    .sys-activity-blade:nth-child(2)  { transform: rotate(30deg);  animation-delay: -0.9167s; }
    .sys-activity-blade:nth-child(3)  { transform: rotate(60deg);  animation-delay: -0.8333s; }
    .sys-activity-blade:nth-child(4)  { transform: rotate(90deg);  animation-delay: -0.75s; }
    .sys-activity-blade:nth-child(5)  { transform: rotate(120deg); animation-delay: -0.6667s; }
    .sys-activity-blade:nth-child(6)  { transform: rotate(150deg); animation-delay: -0.5833s; }
    .sys-activity-blade:nth-child(7)  { transform: rotate(180deg); animation-delay: -0.5s; }
    .sys-activity-blade:nth-child(8)  { transform: rotate(210deg); animation-delay: -0.4167s; }
    .sys-activity-blade:nth-child(9)  { transform: rotate(240deg); animation-delay: -0.3333s; }
    .sys-activity-blade:nth-child(10) { transform: rotate(270deg); animation-delay: -0.25s; }
    .sys-activity-blade:nth-child(11) { transform: rotate(300deg); animation-delay: -0.1667s; }
    .sys-activity-blade:nth-child(12) { transform: rotate(330deg); animation-delay: -0.0833s; }

    @keyframes sys-blade-fade {
        0% { opacity: 1; }
        100% { opacity: 0.12; }
    }

    /* ========================================================================
     * Section 3: Indicator Secondary Text Label
     * ======================================================================== */
    .sys-activity-text {
        margin-top: 14px;
        font-size: 14px;
        font-weight: 400;
        letter-spacing: 0.4px;
        color: rgba(245, 245, 247, 0.52);
        font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "PingFang SC", sans-serif;
        user-select: none;
        -webkit-user-select: none;
    }

    @media (prefers-color-scheme: light) {
        .sys-activity-text {
            color: rgba(110, 110, 115, 0.85);
        }
    }
}
