/* ============================================================================
 * footer-signature.css — Stage 2G-03C-FOOTER-ONLY + GLASS-STYLE.
 * Centered non-home footer signature (runtime + pageviews + owner credit), styled
 * as a light frosted-glass card. Scoped strictly to #colophon / .ww-footer-signature.
 * No external fonts/images, no new JS, no position:fixed, no broad !important.
 * (Home uses footer-front.php which has no #colophon, so this never affects home.)
 * ========================================================================== */

/* Drop the parent .site-footer white box so the glass card floats over (blurred)
   page content. #colophon (id, 1,0,0) outranks the parent's .site-footer (0,1,0). */
#colophon {
    background: transparent;
    max-width: none;
    padding: 0;
    box-shadow: none;
}

/* ------------------------------------------------------------- glass card -- */
.ww-footer-signature {
    /* Hug the content (not a full-width banner); rises from the very bottom as a
       glass "tray": flush bottom (no bottom margin), top-only rounded corners,
       no visible bottom border, shadow spreading upward/outward. */
    width: -webkit-fit-content;
    width: fit-content;
    max-width: calc(100% - 32px);
    min-width: min(420px, calc(100% - 32px));
    margin: 24px auto 0;
    padding: 20px 30px 22px;
    text-align: center;
    line-height: 1.5;
    border-radius: 24px 24px 0 0;
    background: rgba(255, 255, 255, 0.56);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    backdrop-filter: blur(18px) saturate(1.25);
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-bottom-color: transparent;
    box-shadow:
        0 -10px 34px rgba(31, 35, 48, 0.10),
        0 -2px 12px rgba(31, 35, 48, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

/* Fallback: if backdrop-filter is unsupported, use a more opaque card so text
   stays readable over busy content (still soft, still card-like). */
@supports not ((-webkit-backdrop-filter: blur(2px)) or (backdrop-filter: blur(2px))) {
    .ww-footer-signature {
        background: rgba(255, 255, 255, 0.85);
    }
}

/* ----------------------------------------------------------------- text ---- */
.ww-footer-signature .ww-footer-line {
    margin: 0 0 13px;
    text-align: center;
}
.ww-footer-signature .ww-footer-line:last-child {
    margin-bottom: 0;
}
.ww-footer-signature .ww-footer-main {
    display: block;
    font-size: 14px;
    color: #5f5f66;
    letter-spacing: 0.02em;
}
.ww-footer-signature .ww-footer-runtime #ww-runtime,
.ww-footer-signature .ww-footer-views #ww-pageviews {
    font-variant-numeric: tabular-nums;
    color: #4c4c54;
}
/* English subtitle: light serif italic, small, wider spacing, faded — a quiet accent. */
.ww-footer-signature .ww-footer-sub {
    display: block;
    margin-top: 3px;
    font-family: ui-serif, Georgia, "Times New Roman", serif;
    font-size: 12px;
    font-style: italic;
    letter-spacing: 0.055em;
    opacity: 0.62;
    text-transform: lowercase;
    color: #86868f;
}
.ww-footer-signature .ww-footer-credit {
    margin-top: 12px;
    font-size: 13px;
    color: #5f5f66;
}
.ww-footer-signature .ww-heart {
    display: inline-block;
    transform: translateY(1px);
    color: #e3556e;
    font-style: normal;
}

/* ---------------------------------------------------- dark skin readability -- */
/* Sakura's manual night skin adds body.dark; switch to a dark-glass variant so the
   text stays readable (no prefers-color-scheme — the theme toggles via a class). */
body.dark .ww-footer-signature {
    background: rgba(34, 37, 46, 0.46);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.32),
        0 4px 12px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
@supports not ((-webkit-backdrop-filter: blur(2px)) or (backdrop-filter: blur(2px))) {
    body.dark .ww-footer-signature { background: rgba(34, 37, 46, 0.82); }
}
body.dark .ww-footer-signature .ww-footer-main,
body.dark .ww-footer-signature .ww-footer-credit { color: #d6d6dd; }
body.dark .ww-footer-signature .ww-footer-runtime #ww-runtime,
body.dark .ww-footer-signature .ww-footer-views #ww-pageviews { color: #ecedf2; }
body.dark .ww-footer-signature .ww-footer-sub { color: #b6b6c0; }

/* ------------------------------------------------------------ responsive --- */
@media (max-width: 600px) {
    .ww-footer-signature {
        width: -webkit-fit-content;
        width: fit-content;
        max-width: calc(100% - 20px);
        min-width: 0;
        margin: 18px auto 0;
        padding: 15px 16px 18px;
        border-radius: 20px 20px 0 0;
    }
    .ww-footer-signature .ww-footer-main { font-size: 13px; white-space: normal; }
    .ww-footer-signature .ww-footer-sub  { font-size: 11px; letter-spacing: 0.045em; }
    .ww-footer-signature .ww-footer-line { margin-bottom: 12px; }
}

/* 2G-04C: PJAX page-state machine hides the footer shell on the home one-screen
   (display:none -> 0 flow-height, no visual footer, no blank below the cover). */
#colophon.ww-footer-hidden { display: none !important; }
