/* ── PVC Footer Stats – Front-end Styles ─────────────────────── */

/* ── Footer sticky bar ── */
#pvcfs-footer-bar {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    transition: transform 0.35s ease, opacity 0.35s ease;
}
#pvcfs-footer-bar.pvcfs-pos-bottom { bottom: 0; }
#pvcfs-footer-bar.pvcfs-pos-top    { top: 0; }
#pvcfs-footer-bar.pvcfs-hidden     { transform: translateY(110%); opacity: 0; }
#pvcfs-footer-bar.pvcfs-pos-top.pvcfs-hidden { transform: translateY(-110%); }

/* ── Themes ── */
#pvcfs-footer-bar.pvcfs-theme-dark  { background: #1a1a2e; color: #e0e0e0; border-top: 1px solid #2d2d5e; }
#pvcfs-footer-bar.pvcfs-theme-light { background: #ffffff; color: #333333; border-top: 1px solid #ddd; box-shadow: 0 -2px 8px rgba(0,0,0,.08); }
#pvcfs-footer-bar.pvcfs-theme-glass {
    background: rgba(20,20,40,.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    border-top: 1px solid rgba(255,255,255,.15);
}

/* ── Inner layout ── */
.pvcfs-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6px 16px;
}

/* ── Stat item ── */
.pvcfs-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 16px;
    border-right: 1px solid rgba(128,128,128,.2);
    transition: background .2s;
}
.pvcfs-item:last-of-type { border-right: none; }
.pvcfs-item:hover { background: rgba(128,128,128,.08); border-radius: 6px; }

.pvcfs-icon { font-size: 16px; line-height: 1; }
.pvcfs-text { display: flex; flex-direction: column; line-height: 1.2; }
.pvcfs-val  { font-weight: 700; font-size: 14px; }
.pvcfs-lbl  { font-size: 10px; opacity: .7; text-transform: uppercase; letter-spacing: .5px; }

/* ── Close button ── */
.pvcfs-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    opacity: .5;
    padding: 4px 8px;
    margin-left: 8px;
    color: inherit;
    transition: opacity .2s;
}
.pvcfs-close:hover { opacity: 1; }

/* ── Inline shortcode stats ── */
.pvcfs-inline-stats {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    border-radius: 8px;
    overflow: hidden;
    margin: 12px 0;
}
.pvcfs-inline-stats.pvcfs-theme-dark  { background: #1a1a2e; color: #e0e0e0; }
.pvcfs-inline-stats.pvcfs-theme-light { background: #f5f5f5; color: #333; border: 1px solid #ddd; }

.pvcfs-inline-stats .pvcfs-item { border-right-color: rgba(128,128,128,.3); }

/* ── Widget stats ── */
.pvcfs-widget-stats .pvcfs-stat-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(128,128,128,.15);
}
.pvcfs-widget-stats .pvcfs-stat-row:last-child { border-bottom: none; }
.pvcfs-widget-stats .pvcfs-label { flex: 1; }
.pvcfs-widget-stats .pvcfs-value { font-weight: 700; }

/* ── Live pulse animation for "online" value ── */
[data-stat="online"] .pvcfs-val::before,
[data-stat="online"] .pvcfs-value::before {
    content: '';
    display: inline-block;
    width: 7px; height: 7px;
    background: #2ecc71;
    border-radius: 50%;
    margin-right: 4px;
    animation: pvcfs-pulse 1.5s infinite;
    vertical-align: middle;
}
@keyframes pvcfs-pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(46,204,113,.5); }
    50%      { box-shadow: 0 0 0 5px rgba(46,204,113,0); }
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .pvcfs-lbl { display: none; }
    .pvcfs-item { padding: 5px 10px; }
    .pvcfs-val  { font-size: 12px; }
}
