﻿/* ============================================================================
   Live Scores Ticker Styles
   Note: Uses CSS variables defined in site.css
   ============================================================================ */

/* ============================================================================
   Ticker Container
   ============================================================================ */
.ticker-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    margin-top: 1px;
}

/* ============================================================================
   Sport Label (Static)
   ============================================================================ */
.score-sport-static {
    z-index: 2000;
    color: var(--y2k-yellow) !important;
    font-weight: bold;
    padding: 0 12px;
    font-size: 1rem;
    height: 28px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 25px;
    transform: translateX(11px);
    /* Metallic gradient effect */
    background: linear-gradient( to bottom, rgba(13, 27, 42, 1) 0%, rgba(30, 58, 95, 1) 60%, rgba(13, 27, 42, 1) 400% );
}

/* ============================================================================
   Vertical Marquee
   ============================================================================ */
.vertical-marquee {
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    transform: translateX(-1px);
    /* Metallic gradient effect */
    background: linear-gradient( to bottom, rgba(60, 120, 180, 0.5) 0%, rgba(34, 34, 34, 0.85) 40%, rgba(60, 120, 180, 0.5) 100% );
}

/* ============================================================================
   Score Content
   ============================================================================ */
#marquee-content {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.score-row {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    width: 100%;
}

.score-team-row {
    flex: 1 1 0;
    min-width: 0;
    max-width: 50%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================================
   Score Elements
   ============================================================================ */
.score-logo {
    height: 18px;
    width: auto;
    margin: 0 6px 0 0;
    vertical-align: middle;
}

.score-team {
    font-weight: 600;
    margin: 0 4px;
}

.score-value {
    font-weight: bold;
    color: #ffe600;
    margin: 0 4px;
}

.score-sep {
    color: #aaa;
    margin: 0 8px;
}

.score-status {
    color: #ccc;
    font-size: 0.95em;
    margin-left: 8px;
}

/* ============================================================================
   Refresh Button
   ============================================================================ */
#ticker-refresh-btn {
    margin-right: 5px;
    border: none;
    background: none;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

    #ticker-refresh-btn:hover {
        filter: invert(1);
        transform: scale(1.25);
    }

/* ============================================================================
   Responsive Adjustments
   ============================================================================ */
@media (max-width: 768px) {
    .score-sport-static {
        font-size: 0.85rem;
        min-width: 40px;
        padding: 0 8px;
        height: 24px;
    }

    .score-logo {
        height: 16px;
    }

    .score-team,
    .score-value,
    .score-status {
        font-size: 0.9em;
    }

    .score-sep {
        margin: 0 4px;
    }

    #ticker-refresh-btn {
        margin-right: 3px;
    }
}

@media (max-width: 576px) {
    .score-sport-static {
        font-size: 0.75rem;
        min-width: 36px;
        padding: 0 6px;
        height: 22px;
    }

    .score-logo {
        height: 14px;
        margin: 0 4px 0 0;
    }

    .score-team {
        font-size: 0.85em;
    }

    .score-value {
        font-size: 0.85em;
    }

    .score-status {
        font-size: 0.85em;
        margin-left: 4px;
    }

    .score-sep {
        margin: 0 2px;
    }
}
