/* SE Live Blog - Component Styles */

/* === FEEDS LIST === */
.seliveblog-feeds-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}
.seliveblog-feeds-title {
    font-size: var(--selb-heading-size, 24px);
    font-weight: var(--selb-heading-weight, 700);
    color: var(--selb-heading-color, #1a1a1a);
    margin-bottom: 1.5rem;
}
.seliveblog-feeds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}
.seliveblog-feed-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.15s;
    background: #fff;
}
.seliveblog-feed-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.seliveblog-feed-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 1.25rem;
}
.seliveblog-feed-card__competition {
    font-size: var(--selb-meta-size, 13px);
    color: var(--selb-meta-color, #888);
    display: block;
    margin-bottom: 0.5rem;
}
.seliveblog-feed-card__teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0.75rem 0;
}
.seliveblog-feed-card__team {
    font-weight: 600;
    font-size: var(--selb-body-size, 16px);
    text-transform: uppercase;
}
.seliveblog-feed-card__vs {
    color: #aaa;
    font-size: 14px;
}
.seliveblog-feed-card__score {
    font-size: 1.3rem;
    font-weight: 700;
}
.seliveblog-feed-card__status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}
.seliveblog-feed-card__status--live,
.seliveblog-feed-card__status--live2 {
    background: var(--selb-accent, #e74c3c);
    color: #fff;
    animation: selb-pulse 1.5s infinite;
}
.seliveblog-feed-card__status--fulltime { background: var(--selb-status-fulltime, #2c3e50); color: #fff; }
.seliveblog-feed-card__status--halftime { background: var(--selb-status-halftime, #f39c12); color: #fff; }
.seliveblog-feed-card__status--scheduled { background: #ecf0f1; color: #555; }
.seliveblog-feed-card__meta {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: var(--selb-meta-size, 13px);
    color: var(--selb-meta-color, #888);
}

/* === SINGLE FEED VIEW === */
.seliveblog-feed {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

/* --- Match Header (Sports) --- */
.seliveblog-match-header {
    background: var(--selb-header-bg, #1a1a2e);
    color: #fff;
    border-radius: 12px;
    padding: var(--selb-header-padding-y, 1.5rem) var(--selb-header-padding-x, 2rem);
    min-height: var(--selb-header-min-height, auto);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.seliveblog-match-header--has-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.seliveblog-match-header__overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
}
.seliveblog-match-header__inner {
    position: relative;
    z-index: 1;
}
.seliveblog-match-header__competition {
    font-size: var(--selb-meta-size, 13px);
    color: #aaa;
    margin-bottom: 1rem;
}
.seliveblog-match-header__round { color: #888; }
.seliveblog-match-header__teams {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
}
.seliveblog-match-header__team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}
.seliveblog-match-header__logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
}
.seliveblog-match-header__team-name {
    font-size: var(--selb-body-size, 16px);
    font-weight: 700;
    word-break: break-word;
    text-align: center;
    text-transform: uppercase;
}
.seliveblog-match-header__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}
.seliveblog-match-header__score {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}
.seliveblog-match-header__result {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.3px;
    padding: 0 1rem;
}
.seliveblog-match-header__score-separator {
    margin: 0 0.3rem;
    opacity: 0.6;
}
.seliveblog-match-header__kickoff {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}
.seliveblog-match-header__status {
    margin-top: 0.5rem;
    font-size: 13px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 4px;
    display: inline-block;
}
.seliveblog-match-header__status--live,
.seliveblog-match-header__status--live2 {
    background: var(--selb-status-live, var(--selb-accent, #e74c3c));
    animation: selb-pulse 1.5s infinite;
}
.seliveblog-match-header__status--halftime { background: var(--selb-status-halftime, #f39c12); }
.seliveblog-match-header__status--fulltime { background: var(--selb-status-fulltime, #2c3e50); }
.seliveblog-match-header__status--scheduled { background: rgba(255,255,255,0.1); }
.seliveblog-match-header__minute {
    margin-left: 6px;
    font-weight: 400;
}
.seliveblog-match-header__aggregate {
    margin-top: 0.5rem;
    font-size: 13px;
    color: #aaa;
}
.seliveblog-match-header__score-detail {
    margin-top: 0.35rem;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--selb-meta-color, #bbb);
    white-space: nowrap;
    overflow-x: auto;
}
.seliveblog-match-header__team-detail {
    display: block;
    margin-top: 0.2rem;
    font-size: 15px;
    font-weight: 700;
    color: var(--selb-team-color, #fff);
}
.seliveblog-match-header__venue {
    margin-top: 1rem;
    font-size: var(--selb-meta-size, 13px);
    color: #aaa;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 0.75rem;
}
.seliveblog-match-header__scorers {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 0.25rem;
}
.seliveblog-match-header__scorer {
    font-size: 12px;
    color: #ccc;
}

/* --- News Header --- */
.seliveblog-news-header {
    margin-bottom: 1.5rem;
    padding-bottom: var(--selb-header-padding-y, 1rem);
    border-bottom: 2px solid var(--selb-accent, #e74c3c);
}
.seliveblog-news-header__title {
    font-size: var(--selb-heading-size, 24px);
    font-weight: var(--selb-heading-weight, 700);
    color: var(--selb-heading-color, #1a1a1a);
    margin: 0 0 0.5rem;
}
.seliveblog-news-header__desc {
    font-size: var(--selb-body-size, 16px);
    color: var(--selb-body-color, #333);
}
.seliveblog-news-header__badge {
    display: inline-block;
    background: var(--selb-accent, #e74c3c);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    animation: selb-pulse 2s infinite;
}
.seliveblog-news-header__badge--ended {
    background: #6c757d;
    animation: none;
}
.seliveblog-news-header--has-bg {
    border-bottom: none;
    border-radius: 8px;
    overflow: hidden;
    padding: var(--selb-header-padding-y, 2.5rem) var(--selb-header-padding-x, 1.5rem);
    min-height: var(--selb-header-min-height, auto);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.seliveblog-news-header--has-bg .seliveblog-news-header__title,
.seliveblog-news-header--has-bg .seliveblog-news-header__desc {
    color: #fff;
}

/* --- Controls --- */
.seliveblog-viewer-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: var(--selb-meta-size, 13px);
    color: var(--selb-meta-color, #888);
}
.seliveblog-viewer-counter__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--selb-accent, #e74c3c);
    animation: selb-pulse 1.5s infinite;
    flex-shrink: 0;
}
.seliveblog-viewer-counter__text {
    font-weight: 600;
}
.seliveblog-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}
.seliveblog-controls__sound-toggle {
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    color: #555;
    transition: all 0.2s;
}
.seliveblog-controls__sound-toggle:hover { border-color: #999; }
.seliveblog-controls__sound-toggle.is-muted { opacity: 0.5; }

/* --- New entries bar --- */
.seliveblog-new-entries {
    text-align: center;
    margin-bottom: 1rem;
}
.seliveblog-new-entries button {
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}
.seliveblog-new-entries button:hover { background: #2980b9; }

/* === ENTRIES === */
.seliveblog-entries {
    position: relative;
}
.seliveblog-entry {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
}
.seliveblog-entry.is-new {
    background: #fffbe6;
    animation: selb-fadeHighlight 3s ease-out forwards;
}
.seliveblog-entry--pinned {
    background: #fef9e7;
    border-left: 4px solid #f39c12;
    padding-left: 1rem;
}
.seliveblog-entry--breaking {
    border-left: 4px solid var(--selb-accent, #e74c3c);
    padding-left: 1rem;
}

/* Timeline */
.seliveblog-entry__timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
    position: relative;
}
.seliveblog-entry__timestamp {
    font-size: var(--selb-ts-size, 14px);
    color: var(--selb-ts-color, #666);
    font-weight: 600;
    white-space: nowrap;
}
.seliveblog-entry__minute {
    font-size: 12px;
    color: var(--selb-accent, #e74c3c);
    font-weight: 700;
    margin-top: 2px;
}
.seliveblog-entry__line {
    flex: 1;
    width: 2px;
    background: #e8e8e8;
    margin-top: 6px;
    min-height: 20px;
}

/* Body */
.seliveblog-entry__body {
    flex: 1;
    min-width: 0;
}
.seliveblog-entry__pin-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #f39c12;
    margin-bottom: 0.25rem;
}
.seliveblog-entry__type-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.seliveblog-entry__type-badge--breaking { background: #e74c3c; color: #fff; }
.seliveblog-entry__type-badge--analysis { background: #3498db; color: #fff; }
.seliveblog-entry__type-badge--opinion  { background: #9b59b6; color: #fff; }

/* --- Sport Event Badge --- */
.seliveblog-entry__event-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
}
.seliveblog-entry__event-icon {
    margin-right: 2px;
}

.seliveblog-entry__title {
    font-size: calc(var(--selb-heading-size, 24px) * 0.75);
    font-weight: var(--selb-heading-weight, 700);
    color: var(--selb-heading-color, #1a1a1a);
    margin: 0 0 0.5rem;
}
.seliveblog-entry__content {
    font-size: var(--selb-body-size, 16px);
    font-weight: var(--selb-body-weight, 400);
    color: var(--selb-body-color, #333);
    line-height: 1.6;
}
.seliveblog-entry__content p:last-child { margin-bottom: 0; }
.seliveblog-entry__image {
    margin-top: 0.75rem;
}
.seliveblog-entry__image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}
.seliveblog-entry__embed {
    margin-top: 0.75rem;
}
.seliveblog-entry__embed iframe {
    border-radius: 6px;
}
.seliveblog-entry__meta {
    margin-top: 0.75rem;
    font-size: var(--selb-meta-size, 13px);
    color: var(--selb-meta-color, #888);
    display: flex;
    gap: 1rem;
}
.seliveblog-entry__author { font-weight: 600; }

/* === LOAD MORE === */
.seliveblog-load-more {
    text-align: center;
    padding: 1.5rem 0;
}
.seliveblog-load-more__btn {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #555;
    transition: all 0.2s;
}
.seliveblog-load-more__btn:hover {
    border-color: #3498db;
    color: #3498db;
}
.seliveblog-load-more__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === ANIMATIONS === */
@keyframes selb-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
@keyframes selb-fadeHighlight {
    0% { background: #fffbe6; }
    100% { background: transparent; }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .seliveblog-match-header {
        padding: var(--selb-header-padding-y, 1rem) var(--selb-header-padding-x, 1rem);
    }
    .seliveblog-match-header__teams {
        gap: 0.75rem;
    }
    .seliveblog-match-header__score {
        font-size: 2rem;
    }
    .seliveblog-match-header__kickoff {
        font-size: 1.8rem;
    }
    .seliveblog-match-header__logo {
        width: 40px;
        height: 40px;
    }
    .seliveblog-feeds-grid {
        grid-template-columns: 1fr;
    }
    .seliveblog-entry__timeline {
        min-width: 44px;
    }
}
