/* SocialPulse Public CSS v1.1.0 */

/* ============================================================
   Base counter wrapper
   ============================================================ */
.sp-counter {
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
    line-height: 1.4;
    max-width: 100%;
}
.sp-counter.sp-align-left   { display: block; text-align: left; }
.sp-counter.sp-align-center { display: block; text-align: center; }
.sp-counter.sp-align-right  { display: block; text-align: right; }

.sp-message { display: inline; }
.sp-count   { font-variant-numeric: tabular-nums; }

/* ============================================================
   Template: Minimal (default)
   ============================================================ */
.sp-template-minimal { }

/* ============================================================
   Template: Badge
   ============================================================ */
.sp-template-badge .sp-badge-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 99px;
    padding: 6px 14px;
}
.sp-badge-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: sp-pulse-dot 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

/* ============================================================
   Template: Card
   ============================================================ */
.sp-template-card .sp-card-inner {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.sp-card-icon { font-size: 1.4em; flex-shrink: 0; }

/* ============================================================
   Template: Highlight Banner
   ============================================================ */
.sp-template-banner .sp-banner-inner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    padding: 10px 20px;
}
.sp-template-banner .sp-banner-inner .sp-message { color: inherit; }
.sp-banner-pulse {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    animation: sp-pulse-dot 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

/* ============================================================
   Template: Ticker
   ============================================================ */
.sp-template-ticker .sp-ticker-inner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0f172a;
    color: #f1f5f9;
    border-radius: 6px;
    padding: 8px 16px;
    font-family: 'Courier New', monospace;
}
.sp-ticker-label {
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    padding: 3px 7px;
    border-radius: 3px;
    flex-shrink: 0;
    animation: sp-blink 1.2s step-end infinite;
}
.sp-template-ticker .sp-message { color: inherit; }

/* ============================================================
   Template: Hero
   ============================================================ */
.sp-template-hero .sp-hero-inner {
    display: block;
}
.sp-hero-number {
    font-size: 3em;
    font-weight: 900;
    line-height: 1;
    display: block;
    margin-bottom: 4px;
}
.sp-hero-text {
    font-size: 1em;
    opacity: 0.7;
    display: block;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes sp-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.8); }
}
@keyframes sp-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Fade in */
.sp-anim-fadein {
    animation: sp-fadein 0.8s ease forwards;
}
@keyframes sp-fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Slide up */
.sp-anim-slideup {
    animation: sp-slideup 0.6s ease forwards;
}
@keyframes sp-slideup {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Pulse */
.sp-anim-pulse {
    animation: sp-pulse-wrap 0.6s ease;
}
@keyframes sp-pulse-wrap {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.04); }
    100% { transform: scale(1); }
}

/* Count up — handled in JS; placeholder opacity */
.sp-anim-countup .sp-count { transition: opacity 0.1s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 480px) {
    .sp-hero-number { font-size: 2.2em; }
    .sp-template-card .sp-card-inner { padding: 10px 14px; }
    .sp-template-banner .sp-banner-inner { padding: 8px 14px; }
}
