@charset "UTF-8";
/*
 * Copyright (C) 2024-2026 Johannes Bornewasser - Alle Rechte vorbehalten.
 * WallCentive Credit-System - Live-Zähler-Badge (ab 3.24.0)
 */
.wc-credit-badge {
    margin: 24px 0 8px;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #334155;
}
.wc-credit-badge .wc-credit-strong { font-weight: 700; color: #0f172a; }
.wc-credit-badge .wc-credit-euro { color: #64748b; }
.wc-credit-badge .wc-credit-hint { color: #64748b; }
.wc-credit-badge .wc-credit-cta {
    display: inline-block;
    margin-top: 6px;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}
.wc-credit-badge .wc-credit-cta:hover { text-decoration: underline; }
@media (prefers-color-scheme: dark) {
    .wc-credit-badge { background: #1e293b; border-color: #334155; color: #cbd5e1; }
    .wc-credit-badge .wc-credit-strong { color: #f1f5f9; }
}

/* Mitlaufender Zähler (Shortcode [wallcentive_credits]) - dezent, Header-tauglich */
/* hidden-Attribut muss die Klassen-Regel schlagen (sonst zeigt der Platzhalter
   "0" für alle, auch für Abonnenten, deren Zähler nie befüllt wird). */
.wc-credit-meter[hidden] { display: none !important; }
.wc-credit-meter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .9em;
    font-weight: 700;
    color: #1d4ed8;
    line-height: 1;
    transition: transform .25s ease;
}
.wc-credit-meter-coin {
    display: inline-block;
    width: 15px; height: 15px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fde68a, #f59e0b 70%);
    box-shadow: inset 0 0 0 1.5px #d97706;
    flex: 0 0 auto;
}
.wc-credit-meter-label { font-weight: 600; color: #64748b; }
.wc-credit-meter.wc-credit-pop { transform: scale(1.18); }

/* Fliegende "+X"-Münze (Super-Mario-Moment) */
.wc-coin-fly {
    position: fixed;
    z-index: 99999;
    transform: translate(0, 0) scale(1);
    transition: transform .9s cubic-bezier(.4, .9, .3, 1), opacity .9s ease;
    pointer-events: none;
    font-weight: 800;
    font-size: 15px;
    color: #b45309;
    background: radial-gradient(circle at 35% 30%, #fef3c7, #fbbf24 75%);
    border: 1.5px solid #d97706;
    border-radius: 999px;
    padding: 4px 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    will-change: transform, opacity;
}
@media (prefers-reduced-motion: reduce) {
    .wc-coin-fly { transition: opacity .3s ease; }
}
@media (prefers-color-scheme: dark) {
    .wc-credit-meter { color: #93c5fd; }
    .wc-credit-meter-label { color: #94a3b8; }
}

/* ── Wall-Einlösung: Häkchen für eingeloggte User mit Guthaben ────────────── */
.wc-redeem-wall {
    position: relative;
    z-index: 2;
    margin: 0 0 16px;
    padding: 12px 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 14px;
    color: #1e3a8a;
}
.wc-redeem-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
}
.wc-redeem-row input { margin-top: 2px; flex: 0 0 auto; }
.wc-redeem-hint { margin: 6px 0 0 26px; font-size: 12.5px; font-weight: 400; color: #475569; }

/* ── Gäste-Popup: kostenlose Registrierung ───────────────────────────────── */
body.wc-popup-open { overflow: hidden; }
.wc-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, .6);
    animation: wc-pop-fade .2s ease;
}
@keyframes wc-pop-fade { from { opacity: 0; } to { opacity: 1; } }
.wc-popup {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    padding: 28px 26px 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.wc-popup-x {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: none;
    font-size: 26px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
}
.wc-popup-title { margin: 0 0 10px; font-size: 20px; font-weight: 800; color: #0f172a; }
.wc-popup-text { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: #334155; }
.wc-popup-form { display: flex; flex-direction: column; gap: 12px; }
.wc-popup-email {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
}
.wc-popup-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wc-popup-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: #475569; line-height: 1.5; }
.wc-popup-consent input { margin-top: 2px; flex: 0 0 auto; }
.wc-popup-consent a { color: #2563eb; }
.wc-popup-msg { margin: 0; font-size: 13px; color: #b91c1c; }
.wc-popup-submit {
    width: 100%;
    padding: 13px 18px;
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.wc-popup-submit:disabled { opacity: .6; cursor: default; }
.wc-popup-later {
    border: 0;
    background: none;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
    padding: 4px;
}
.wc-popup-success { margin: 0; font-size: 15px; line-height: 1.55; color: #047857; font-weight: 600; }
@media (prefers-color-scheme: dark) {
    .wc-redeem-wall { background: #1e293b; border-color: #334155; color: #bfdbfe; }
    .wc-redeem-hint { color: #94a3b8; }
    .wc-popup { background: #0f172a; }
    .wc-popup-title { color: #f1f5f9; }
    .wc-popup-text { color: #cbd5e1; }
    .wc-popup-email { background: #1e293b; border-color: #334155; color: #f1f5f9; }
}
