/* ─────────────────────────────────────────────────────────
   LIVE BLOGGER — Sidebar Widget Styles
   Aesthetic: Compact editorial card, signal-tower animation
───────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=IBM+Plex+Mono:wght@400;500&family=DM+Sans:wght@400;500;600&display=swap');

/* ── Card shell ── */
.lbw-card {
    font-family: 'DM Sans', sans-serif;
    background: #0f1117;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #2a3245;
    box-shadow: 0 4px 20px rgba(0,0,0,.35);
    transition: box-shadow .25s ease, transform .25s ease;
    color: #e8eaf0;
    margin: 0 0 1rem;
}

.lbw-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,.45);
    transform: translateY(-2px);
}

/* Live card gets a subtle red top border */
.lbw-card.lbw-status-live {
    border-top: 2px solid #e63946;
}
.lbw-card.lbw-status-ended {
    border-top: 2px solid #3a3f50;
}
.lbw-card.lbw-status-upcoming {
    border-top: 2px solid #ffd166;
}

/* ── Thumbnail ── */
.lbw-thumb-link {
    display: block;
    text-decoration: none;
}

.lbw-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #161b26;
}

.lbw-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.lbw-card:hover .lbw-thumb img {
    transform: scale(1.04);
}

/* ── Live overlay on thumbnail ── */
.lbw-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(230,57,70,.18) 0%, rgba(0,0,0,.55) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 12px 14px;
    gap: 10px;
}

/* Signal icon */
.lbw-signal {
    position: relative;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lbw-signal-dot {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e63946;
    z-index: 3;
    box-shadow: 0 0 6px rgba(230,57,70,.8);
}

.lbw-signal-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(230,57,70,.7);
    animation: lbw-signal-expand 1.8s ease-out infinite;
}

.lbw-ring1 { width: 12px; height: 12px; animation-delay: 0s; }
.lbw-ring2 { width: 20px; height: 20px; animation-delay: .4s; }
.lbw-ring3 { width: 28px; height: 28px; animation-delay: .8s; }

@keyframes lbw-signal-expand {
    0%   { opacity: .9; transform: scale(.6); }
    70%  { opacity: .2; }
    100% { opacity: 0;  transform: scale(1); }
}

.lbw-live-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .14em;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

/* ── Body ── */
.lbw-body {
    padding: 14px 16px 15px;
}

/* ── Status row ── */
.lbw-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.lbw-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 100px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: .65rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.lbw-badge-live {
    background: rgba(230,57,70,.15);
    color: #e63946;
    border: 1px solid rgba(230,57,70,.35);
}

.lbw-badge-ended {
    background: rgba(136,146,164,.1);
    color: #8892a4;
    border: 1px solid #2a3245;
}

.lbw-badge-upcoming {
    background: rgba(255,209,102,.1);
    color: #ffd166;
    border: 1px solid rgba(255,209,102,.3);
}

/* Pulsing dot inside live badge */
.lbw-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e63946;
    display: inline-block;
    animation: lbw-pulse 1.3s ease infinite;
    flex-shrink: 0;
}

@keyframes lbw-pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .4; transform: scale(1.5); }
}

.lbw-update-count {
    font-family: 'IBM Plex Mono', monospace;
    font-size: .65rem;
    color: #8892a4;
    white-space: nowrap;
}

/* ── Title ── */
.lbw-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 6px;
    color: #e8eaf0;
}

.lbw-title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}

.lbw-title a:hover {
    color: #e63946;
}

/* ── Excerpt ── */
.lbw-excerpt {
    font-size: .82rem;
    color: #8892a4;
    line-height: 1.55;
    margin: 0 0 10px;
}

/* ── Footer ── */
.lbw-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #1e2535;
}

.lbw-last-updated {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: .65rem;
    color: #8892a4;
}

.lbw-last-updated svg {
    flex-shrink: 0;
    opacity: .7;
}

.lbw-cta {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    color: #2ec4b6;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s, gap .2s;
    letter-spacing: .01em;
}

.lbw-cta:hover {
    color: #fff;
}

/* ── When there's no image (body-only layout) ── */
.lbw-card.lbw-status-live:not(:has(.lbw-thumb)) .lbw-body,
.lbw-card.lbw-status-ended:not(:has(.lbw-thumb)) .lbw-body,
.lbw-card.lbw-status-upcoming:not(:has(.lbw-thumb)) .lbw-body {
    padding-top: 16px;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .lbw-title { font-size: .95rem; }
}
