/* ─────────────────────────────────────────────────────────
   LIVE BLOGGER — Frontend Styles
   Aesthetic: Editorial / Breaking News — dark timeline
───────────────────────────────────────────────────────── */

@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');

/* ── Variables ── */
:root {
    --lb-bg:         #0f1117;
    --lb-surface:    #161b26;
    --lb-surface2:   #1e2535;
    --lb-border:     #2a3245;
    --lb-accent:     #e63946;
    --lb-accent2:    #f4a261;
    --lb-text:       #e8eaf0;
    --lb-text-muted: #8892a4;
    --lb-green:      #2ec4b6;
    --lb-yellow:     #ffd166;
    --lb-line:       #2a3245;
    --lb-radius:     10px;
    --lb-font-head:  'DM Serif Display', Georgia, serif;
    --lb-font-body:  'DM Sans', sans-serif;
    --lb-font-mono:  'IBM Plex Mono', monospace;
    --lb-shadow:     0 4px 24px rgba(0,0,0,.4);
    --lb-transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ── Wrapper ── */
.lb-wrap {
    font-family: var(--lb-font-body);
    background: var(--lb-bg);
    border-radius: var(--lb-radius);
    overflow: hidden;
    border: 1px solid var(--lb-border);
    box-shadow: var(--lb-shadow);
    max-width: 860px;
    margin: 0 auto 2.5rem;
    color: var(--lb-text);
}

/* ── Header ── */
.lb-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 24px 28px 20px;
    background: var(--lb-surface);
    border-bottom: 1px solid var(--lb-border);
}

.lb-blog-title {
    font-family: var(--lb-font-head);
    font-size: 1.65rem;
    font-weight: 400;
    margin: 0 0 4px;
    color: var(--lb-text);
    line-height: 1.2;
}

.lb-blog-desc {
    margin: 0;
    font-size: .875rem;
    color: var(--lb-text-muted);
    max-width: 500px;
}

.lb-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.lb-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 100px;
    font-family: var(--lb-font-mono);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.lb-badge-live {
    background: rgba(230,57,70,.15);
    color: var(--lb-accent);
    border: 1px solid rgba(230,57,70,.35);
}

.lb-badge-ended {
    background: rgba(136,146,164,.1);
    color: var(--lb-text-muted);
    border: 1px solid var(--lb-border);
}

.lb-badge-upcoming {
    background: rgba(255,209,102,.1);
    color: var(--lb-yellow);
    border: 1px solid rgba(255,209,102,.3);
}

.lb-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lb-accent);
    display: inline-block;
    animation: lb-pulse 1.4s ease infinite;
}

@keyframes lb-pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .5; transform: scale(1.4); }
}

.lb-entry-count {
    font-size: .78rem;
    color: var(--lb-text-muted);
    font-family: var(--lb-font-mono);
}

/* ── New entries notification bar ── */
.lb-new-bar {
    background: rgba(46,196,182,.1);
    border-bottom: 1px solid rgba(46,196,182,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 10px 20px;
    animation: lb-slide-down .3s ease;
}

@keyframes lb-slide-down {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.lb-new-bar-text {
    font-size: .85rem;
    color: var(--lb-green);
    font-family: var(--lb-font-mono);
}

.lb-new-bar-btn {
    background: var(--lb-green);
    color: #0f1117;
    border: none;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--lb-transition);
}
.lb-new-bar-btn:hover { opacity: .85; }

/* ── Feed ── */
.lb-feed {
    padding: 20px 0;
    position: relative;
}

/* ── Single Entry ── */
.lb-entry {
    position: relative;
    padding: 0 20px 0 0;
    transition: background var(--lb-transition);
}

.lb-entry-new {
    animation: lb-flash .8s ease;
}

@keyframes lb-flash {
    0%   { background: rgba(46,196,182,.12); }
    100% { background: transparent; }
}

.lb-breaking-badge,
.lb-pin-badge {
    display: inline-block;
    margin: 8px 8px 0 90px;
    font-size: .7rem;
    font-family: var(--lb-font-mono);
    font-weight: 500;
    letter-spacing: .1em;
    padding: 2px 8px;
    border-radius: 3px;
}

.lb-breaking-badge {
    background: rgba(230,57,70,.15);
    color: var(--lb-accent);
    border: 1px solid rgba(230,57,70,.3);
}

.lb-pin-badge {
    background: rgba(244,162,97,.1);
    color: var(--lb-accent2);
    border: 1px solid rgba(244,162,97,.3);
}

.lb-entry-inner {
    display: flex;
    gap: 0;
    padding: 14px 12px 6px 0;
}

/* ── Timestamp column ── */
.lb-timestamp-col {
    width: 88px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 18px;
    position: relative;
}

.lb-time-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding-top: 2px;
}

.lb-time-main {
    font-family: var(--lb-font-mono);
    font-size: .8rem;
    font-weight: 500;
    color: var(--lb-accent);
    white-space: nowrap;
}

.lb-time-ago {
    font-family: var(--lb-font-mono);
    font-size: .68rem;
    color: var(--lb-text-muted);
    white-space: nowrap;
}

/* Timeline line + dot */
.lb-timestamp-col::after {
    content: '';
    position: absolute;
    top: 14px;
    bottom: -20px;
    right: 0;
    width: 1px;
    background: var(--lb-line);
}

.lb-timeline-dot {
    position: absolute;
    right: -4px;
    top: 14px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--lb-surface);
    border: 2px solid var(--lb-accent);
    z-index: 2;
    transition: border-color var(--lb-transition);
}

.lb-entry:last-child .lb-timestamp-col::after { display: none; }

.lb-entry-breaking .lb-timeline-dot {
    background: var(--lb-accent);
    box-shadow: 0 0 0 4px rgba(230,57,70,.2);
}

.lb-entry-pinned .lb-timeline-dot {
    border-color: var(--lb-accent2);
}

/* ── Content column ── */
.lb-content-col {
    flex: 1;
    padding-left: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--lb-border);
    min-width: 0;
}

.lb-entry:last-child .lb-content-col {
    border-bottom: none;
}

.lb-entry-title {
    font-family: var(--lb-font-head);
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0 0 12px;
    color: var(--lb-text);
    line-height: 1.3;
}

.lb-entry-breaking .lb-entry-title { color: var(--lb-accent); }
.lb-entry-pinned   .lb-entry-title { color: var(--lb-accent2); }

.lb-entry-image {
    margin-bottom: 14px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--lb-border);
    background: var(--lb-surface2);
}

.lb-entry-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    transition: transform .4s ease;
}
.lb-entry-image:hover img { transform: scale(1.015); }

.lb-entry-content {
    font-size: .935rem;
    line-height: 1.7;
    color: #c8cdd8;
}

.lb-entry-content p { margin: 0 0 .85em; }
.lb-entry-content p:last-child { margin-bottom: 0; }
.lb-entry-content a { color: var(--lb-green); text-decoration: underline; text-decoration-color: rgba(46,196,182,.4); }
.lb-entry-content a:hover { text-decoration-color: var(--lb-green); }
.lb-entry-content strong { color: var(--lb-text); }
.lb-entry-content em { color: var(--lb-accent2); }
.lb-entry-content blockquote {
    margin: .75em 0;
    padding: 10px 16px;
    border-left: 3px solid var(--lb-accent);
    background: var(--lb-surface2);
    border-radius: 0 6px 6px 0;
    color: var(--lb-text-muted);
    font-style: italic;
}

.lb-entry-meta {
    margin-top: 10px;
    font-size: .72rem;
    color: var(--lb-text-muted);
    font-family: var(--lb-font-mono);
}

/* ── Empty state ── */
.lb-empty {
    padding: 48px 32px;
    text-align: center;
    color: var(--lb-text-muted);
    font-size: .9rem;
    font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .lb-header { flex-direction: column; padding: 18px 16px 14px; }
    .lb-header-right { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
    .lb-timestamp-col { width: 64px; padding-right: 12px; }
    .lb-time-main { font-size: .72rem; }
    .lb-time-ago  { display: none; }
    .lb-blog-title { font-size: 1.3rem; }
    .lb-entry-title { font-size: 1.05rem; }
    .lb-breaking-badge, .lb-pin-badge { margin-left: 64px; }
}
