/* ==================== LIVESCORE PAGE ==================== */

/* ==================== COMING SOON ==================== */
.lc-coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px 80px;
    max-width: 640px;
    margin: 0 auto;
}

.lc-coming-soon-icon {
    width: 96px;
    height: 96px;
    color: var(--gold);
    margin-bottom: 32px;
    animation: lc-pulse 3s ease-in-out infinite;
}

@keyframes lc-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.lc-coming-soon-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.lc-coming-soon-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 40px;
}

.lc-coming-soon-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 32px;
    margin-bottom: 40px;
    text-align: left;
}

.lc-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    transition: var(--transition);
}

.lc-feature-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 215, 0, 0.15);
    transform: translateY(-2px);
}

.lc-feature-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.lc-feature-text {
    font-size: 0.92rem;
    color: var(--text-muted);
    font-weight: 500;
}

.lc-coming-soon-notify {
    font-size: 0.88rem;
    color: var(--text-dim);
    margin-bottom: 32px;
    max-width: 400px;
    line-height: 1.6;
}

.lc-coming-soon-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.lc-coming-soon-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.25);
}

@media (max-width: 600px) {
    .lc-coming-soon {
        padding: 40px 16px 60px;
    }
    .lc-coming-soon-title {
        font-size: 1.5rem;
    }
    .lc-coming-soon-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .lc-coming-soon-icon {
        width: 72px;
        height: 72px;
        margin-bottom: 24px;
    }
}

/* Toolbar */
.lc-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.lc-toolbar-search {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 360px;
}

.lc-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-dim);
    pointer-events: none;
}

.lc-search-input {
    width: 100%;
    padding: 11px 14px 11px 42px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.lc-search-input::placeholder { color: var(--text-dim); }
.lc-search-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.lc-toolbar-filters {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lc-filter-select {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.lc-filter-select:focus { border-color: var(--gold); }
.lc-filter-select option { background: var(--dark-gray); color: var(--white); }

.lc-fav-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.lc-fav-toggle svg { width: 16px; height: 16px; fill: none; }
.lc-fav-toggle:hover { border-color: var(--gold); color: var(--gold); }
.lc-fav-toggle.lc-fav-active {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}
.lc-fav-toggle.lc-fav-active svg { fill: var(--gold); }

/* Favorite star on cards */
.lc-fav-star {
    color: var(--gold);
    font-size: 0.85rem;
    margin-right: 4px;
}

/* Favorite button on cards */
.lc-fav-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1rem;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
    transition: var(--transition);
    flex-shrink: 0;
}

.lc-fav-btn:hover { color: var(--gold); }
.lc-fav-btn.lc-fav-active { color: var(--gold); }

/* Live refresh indicator */
.lc-live-refresh {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lc-refresh-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-dim);
    flex-shrink: 0;
}

.lc-refresh-indicator.lc-refreshing {
    background: var(--gold);
    animation: lcRefreshPulse 0.8s ease-in-out infinite;
}

@keyframes lcRefreshPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.lc-refresh-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 500;
}

/* Refresh error banner */
.lc-refresh-error-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin-bottom: 16px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    color: #fca5a5;
    font-size: 0.82rem;
    font-weight: 500;
}

/* ==================== LIVESCORE PAGE ==================== */

/* Section headers */
.lc-section {
    margin-bottom: 48px;
}

.lc-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.lc-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.lc-section-count {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.06);
    padding: 3px 10px;
    border-radius: 20px;
}

/* Match grid */
.lc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

/* ==================== MATCH CARD ==================== */
.lc-match-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 22px;
    transition: var(--transition);
}

.lc-match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 215, 0, 0.2);
}

.lc-match-live {
    border-color: rgba(34, 197, 94, 0.25);
}

.lc-match-live:hover {
    border-color: rgba(34, 197, 94, 0.4);
}

.lc-match-finished {
    opacity: 0.85;
}

/* Card header */
.lc-match-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.lc-league-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lc-league-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.lc-league-name {
    font-size: 0.78rem;
    color: var(--text-dim);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Status badges */
.lc-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.lc-live-dot-pulse {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    animation: lcPulse 1.2s ease-in-out infinite;
}

@keyframes lcPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.lc-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.lc-status-ft {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-dim);
}

.lc-status-upcoming {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
}

/* Card body — teams + score */
.lc-match-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.lc-team {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.lc-team-home {
    justify-content: flex-start;
}

.lc-team-away {
    justify-content: flex-end;
}

.lc-team-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.lc-team-logo-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.lc-team-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lc-team-away .lc-team-name {
    text-align: right;
}

/* Score display */
.lc-score-display {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.lc-score-num {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    min-width: 28px;
    text-align: center;
}

.lc-score-sep {
    font-size: 1rem;
    color: var(--text-dim);
    font-weight: 400;
}

/* Fixture time display */
.lc-fixture-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    padding: 0 8px;
}

.lc-fixture-time-str {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gold);
}

.lc-fixture-date-str {
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-top: 2px;
}

/* ==================== SKELETON LOADING ==================== */
.lc-skeleton-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 22px;
    animation: lcSkeletonPulse 1.5s ease-in-out infinite;
}

@keyframes lcSkeletonPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.lc-skeleton-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.lc-skeleton-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.lc-skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
}

.lc-skeleton-line-sm { width: 60px; }
.lc-skeleton-line-md { width: 120px; }
.lc-skeleton-line-lg { width: 180px; }

.lc-skeleton-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.lc-skeleton-footer {
    display: flex;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 14px;
}

/* ==================== EMPTY / ERROR STATES ==================== */
.lc-empty-state {
    text-align: center;
    padding: 48px 24px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    grid-column: 1 / -1;
}

.lc-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.lc-empty-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.lc-empty-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

/* Debug hint (visible in error states) */
.lc-empty-debug {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    margin-top: 12px;
    font-family: monospace;
}

/* Retry button */
.lc-retry-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 18px;
    padding: 10px 28px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    font-weight: 700;
    font-size: 0.88rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.lc-retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.25);
}

/* Demo data banner */
.lc-demo-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    margin-bottom: 16px;
    background: rgba(255, 165, 0, 0.12);
    border: 1px solid rgba(255, 165, 0, 0.25);
    border-radius: 12px;
    color: rgba(255, 200, 100, 0.9);
    font-size: 0.82rem;
    font-weight: 500;
    text-align: center;
}

/* ==================== LIVESCORE RESPONSIVE ==================== */
@media (max-width: 992px) {
    .lc-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 600px) {
    .lc-grid {
        grid-template-columns: 1fr;
    }

    .lc-section {
        margin-bottom: 36px;
    }

    .lc-section-title {
        font-size: 1.1rem;
    }

    .lc-match-card {
        padding: 18px;
    }

    .lc-team-name {
        font-size: 0.82rem;
    }

    .lc-score-num {
        font-size: 1.2rem;
    }

    .lc-fixture-time-str {
        font-size: 1rem;
    }

    .lc-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .lc-toolbar-search {
        max-width: 100%;
    }

    .lc-toolbar-filters {
        justify-content: space-between;
    }

    .lc-filter-select {
        flex: 1;
    }
}
