/* =============================================================================
   library-soon.css — Interactive "Coming Soon" placeholder for /library
   The dedicated Library experience is under construction; the story collection
   itself now lives on the homepage (/). Renders over the shared universe
   background painted by header.php, so the stage is translucent.
   ========================================================================== */

.library-soon {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Clear the fixed site header + breathe at the bottom. */
    padding: 150px 20px 90px;
    box-sizing: border-box;
}

.library-soon-stage {
    position: relative;
    width: 100%;
    max-width: 680px;
    text-align: center;
    padding: 48px 40px 44px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(16, 24, 44, 0.62), rgba(10, 16, 32, 0.45));
    border: 1px solid rgba(116, 211, 255, 0.16);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: librarySoonRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes librarySoonRise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Badge ──────────────────────────────────────────────────────────────── */
.library-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid rgba(34, 197, 94, 0.32);
    color: #9defb9;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.library-soon-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
    animation: librarySoonPulse 2.2s ease-out infinite;
}

@keyframes librarySoonPulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    70%  { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ── Title ──────────────────────────────────────────────────────────────── */
.library-soon-title {
    margin: 22px 0 0;
    font-size: clamp(2.6rem, 7vw, 4.2rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.01em;
    background: linear-gradient(100deg, #eaf2ff 18%, #74d3ff 50%, #eaf2ff 82%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: librarySoonShimmer 6s linear infinite;
}

@keyframes librarySoonShimmer {
    to { background-position: 220% center; }
}

/* ── Lede + rotating word ───────────────────────────────────────────────── */
.library-soon-lede {
    margin: 18px auto 0;
    max-width: 30ch;
    font-size: clamp(1.05rem, 2.6vw, 1.35rem);
    color: rgba(233, 240, 255, 0.92);
    font-weight: 500;
}

.library-soon-rotator {
    display: inline-block;
    min-width: 1ch;
}

.library-soon-rotator-word {
    display: inline-block;
    font-weight: 700;
    color: #74d3ff;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.32s ease, transform 0.32s ease;
}

.library-soon-rotator-word.is-active {
    opacity: 1;
    transform: translateY(0);
}

.library-soon-sub {
    margin: 16px auto 0;
    max-width: 46ch;
    font-size: 0.98rem;
    line-height: 1.6;
    color: rgba(200, 214, 240, 0.66);
}

/* ── Indeterminate build meter ──────────────────────────────────────────── */
.library-soon-meter {
    position: relative;
    width: min(280px, 70%);
    height: 5px;
    margin: 30px auto 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.library-soon-meter-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(74, 144, 226, 0), #5aa1f2, rgba(74, 144, 226, 0));
    animation: librarySoonSweep 2s ease-in-out infinite;
}

@keyframes librarySoonSweep {
    0%   { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

/* ── Actions ────────────────────────────────────────────────────────────── */
.library-soon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 34px;
}

.library-soon-btn {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.library-soon-btn--primary {
    background: linear-gradient(45deg, #4a90e2, #5aa1f2);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.library-soon-btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(74, 144, 226, 0.4);
}

.library-soon-btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    color: #dbe7ff;
    border: 1px solid rgba(116, 211, 255, 0.32);
}

.library-soon-btn--ghost:hover {
    transform: translateY(-3px);
    background: rgba(116, 211, 255, 0.10);
    border-color: rgba(116, 211, 255, 0.55);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
    .library-soon { padding: 120px 16px 70px; }
    .library-soon-stage { padding: 38px 24px 34px; }
    .library-soon-actions { flex-direction: column; }
    .library-soon-btn { width: 100%; box-sizing: border-box; }
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .library-soon-stage,
    .library-soon-title,
    .library-soon-badge-dot,
    .library-soon-meter-fill {
        animation: none !important;
    }
    .library-soon-rotator-word {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .library-soon-meter-fill {
        width: 100%;
        background: linear-gradient(90deg, #4a90e2, #5aa1f2);
    }
    .library-soon-btn:hover { transform: none; }
}
