/* =========================================================
   FAROELOTTO - LIVE RESULT UPDATES
   ========================================================= */

.live-updates-section {
    height: 100%;
}


.live-updates-card {
    height: 100%;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #081522,
            #040D18
        );

    border: 1px solid var(--color-border-soft);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-card);
}


/* =========================================================
   HEADER
   ========================================================= */

.live-updates-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    padding: 18px;
    
    border-bottom: 1px solid var(--color-border-soft);
}


.live-updates-title {
    display: flex;

    align-items: center;

    gap: 9px;
}


.live-updates-title h2 {
    color: var(--color-white);

    font-size: var(--font-md);

    font-weight: 800;

    letter-spacing: 0.4px;
}


.live-updates-dot {
    width: 8px;
    height: 8px;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--color-danger);

    box-shadow:
        0 0 12px rgba(239, 68, 68, 0.65);
}


.live-updates-status {
    padding: 4px 9px;

    border-radius: 999px;

    background: rgba(34, 197, 94, 0.08);

    border: 1px solid rgba(34, 197, 94, 0.18);

    color: var(--color-success);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.7px;
}


/* =========================================================
   UPDATE LIST
   ========================================================= */

.live-updates-list {
    padding: 0 14px;
}


.live-update-item {
    display: grid;

    grid-template-columns:
        30px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 9px;

    min-height: 68px;

    border-bottom: 1px solid var(--color-border-soft);
}


.live-update-item:last-child {
    border-bottom: 0;
}


/* =========================================================
   ICON
   ========================================================= */

.live-update-icon {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    font-size: 12px;

    font-weight: 900;
}


.live-update-icon.success {
    background: rgba(34, 197, 94, 0.10);

    border: 1px solid rgba(34, 197, 94, 0.20);

    color: var(--color-success);
}


.live-update-icon.info {
    background: rgba(56, 189, 248, 0.10);

    border: 1px solid rgba(56, 189, 248, 0.20);

    color: var(--color-info);
}


.live-update-icon.sync {
    background: rgba(168, 85, 247, 0.10);

    border: 1px solid rgba(168, 85, 247, 0.20);

    color: var(--color-purple);
}


.live-update-icon.notice {
    background: rgba(245, 196, 81, 0.10);

    border: 1px solid rgba(245, 196, 81, 0.20);

    color: var(--color-gold);
}


/* =========================================================
   CONTENT
   ========================================================= */

.live-update-content {
    min-width: 0;

    display: flex;

    flex-direction: column;
}


.live-update-content strong {
    color: var(--color-text);

    font-size: var(--font-sm);

    font-weight: 700;
}


.live-update-content span {
    margin-top: 3px;

    overflow: hidden;

    color: var(--color-text-muted);

    font-size: var(--font-xs);

    text-overflow: ellipsis;

    white-space: nowrap;
}


.live-update-time {
    color: var(--color-text-muted);

    font-size: 9px;

    white-space: nowrap;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .live-updates-header {
        padding: 18px 16px;
    }

    .live-updates-list {
        padding: 0 16px;
    }

    .live-update-item {
        grid-template-columns:
            32px
            minmax(0, 1fr);

        padding: 12px 0;

        min-height: 72px;
    }

    .live-update-time {
        display: none;
    }

}