/* === FILE: assets/css/wls-premium.css ===
 * Version: 1.0 (2025-11-29)
 * Opis: Stilovi za live scores (Danas/Sutra/Favoriti, popup, liga tabovi)
 */

/* Osnovni wrapper */
.wls-wrapper {
    background: #0b1220;
    padding: 16px;
    border-radius: 12px;
    color: #e2e8f0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    max-width: 100%;
    box-sizing: border-box;
}

/* Sports bar */
.wls-sports-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    justify-content: center;
}

.wls-sport-btn {
    border: none;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    background: #020617;
    color: #9ca3af;
    border: 1px solid #1f2937;
    transition: background 0.15s, color 0.15s, transform 0.08s;
}

.wls-sport-btn.active {
    background: linear-gradient(135deg, #ec4899, #ef4444, #f97316);
    color: #f9fafb;
    border-color: transparent;
}

.wls-sport-btn:hover {
    transform: translateY(-1px);
}

/* Gornji deo: tabovi + filter lige */
.wls-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 8px;
    flex-wrap: wrap;
}

.wls-tabs {
    display: flex;
    gap: 4px;
}

.wls-tabs button {
    border: none;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    background: #020617;
    color: #9ca3af;
    border: 1px solid #1f2937;
    transition: background 0.15s, color 0.15s;
}

.wls-tabs button.active {
    background: #2563eb;
    color: #f9fafb;
    border-color: #2563eb;
}

/* Filter liga – padajući meni */
.wls-filter-inline {
    display: flex;
    justify-content: flex-end;
    min-width: 160px;
    flex: 1 0 160px;
}

#wls1-league-filter {
    width: 100%;
    background: #020617;
    color: #e5e7eb;
    border-radius: 999px;
    border: 1px solid #1f2937;
    padding: 6px 10px;
    font-size: 12px;
    outline: none;
}

/* Sekcije Danas / Sutra / Favoriti */
.wls-section {
    display: none;
}

.wls-section.active {
    display: block;
}

/* Kartica meča */
.wls-match-item {
    background: #020617;
    border-radius: 10px;
    padding: 8px 10px;
    border: 1px solid #1e293b;
}

/* Razmak između mečeva */
.wls-match-item + .wls-match-item {
    margin-top: 6px;
}

/* Jedan horizontalni red: levo liga, sredina par, desno zvezdica */
.wls-row-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* Leva zona: liga + LIVE – FIKSNA širina */
.wls-left-zone {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 120px;
    min-width: 0;
}

.wls-league-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.wls-league-name {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* LIVE badge */
.wls-live-badge {
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #dc2626;
    border-radius: 999px;
    text-transform: uppercase;
}

/* Srednja zona: tim1 – rezultat/vreme – tim2 */
.wls-middle-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
}

/* Timovi levo/desno – svaki zauzima istu širinu */
.wls-team-block {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1 1 0;
}

.wls-team-left {
    justify-content: flex-end;
    text-align: right;
}

.wls-team-right {
    justify-content: flex-start;
    text-align: left;
}

.wls-team-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Rezultat/vreme – fiksna širina, centar */
.wls-score-badge {
    flex: 0 0 80px;
    text-align: center;
    padding: 4px 0;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #1d4ed8, #0b1220);
    color: #f9fafb;
    font-weight: 700;
    font-size: 15px;
}

/* Logo timova */
.wls-team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Desna zona – LIVE + zvezdica */
.wls-right-zone {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex: 0 0 90px;
}

.wls-fav-btn {
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.wls-fav-btn.active {
    color: #facc15;
}

/* Tekst info */
.wls-fav-info {
    font-size: 12px;
    color: #9ca3af;
}

/* Hover efekat kartice */
.wls-match-item:hover {
    border-color: #2563eb;
    background: #020617;
}

/* POPUP OVERLAY */
.wls-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* POPUP BOX */
.wls-popup {
    background: #020617;
    border-radius: 14px;
    border: 1px solid #1e293b;
    padding: 14px 16px 16px;
    max-width: 900px;
    width: 96%;
    color: #e5e7eb;
    position: relative;
    box-shadow: 0 24px 48px rgba(0,0,0,0.7);
}

/* Close dugme */
.wls-popup-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 20px;
    cursor: pointer;
}

.wls-popup-close:hover {
    color: #f9fafb;
}

/* Header popup-a */
.wls-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.wls-popup-league {
    font-size: 13px;
    font-weight: 500;
}

.wls-popup-status {
    font-size: 12px;
}

/* Glavni deo popup-a: levo timovi+rezultat, desno tabs */
.wls-popup-main {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 12px;
}

/* Leva kolona popup-a */
.wls-popup-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.wls-popup-team {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 0;
}

.wls-popup-team:first-child {
    justify-content: flex-end;
    text-align: right;
}

.wls-popup-team:last-child {
    justify-content: flex-start;
    text-align: left;
}

.wls-popup-team-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.wls-popup-team-name {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wls-popup-score {
    flex: 0 0 90px;
    text-align: center;
    padding: 6px 0;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #1d4ed8, #020617);
    color: #f9fafb;
    font-weight: 700;
    font-size: 18px;
}

/* Datum/vreme */
.wls-popup-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 8px;
}

/* Kvote 1X2 */
.wls-popup-odds {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.wls-odds-item {
    flex: 1 1 0;
    background: #020617;
    border-radius: 8px;
    border: 1px solid #1f2937;
    padding: 6px 8px;
    text-align: center;
}

.wls-odds-label {
    font-size: 11px;
    color: #9ca3af;
    display: block;
}

.wls-odds-value {
    font-size: 13px;
    font-weight: 600;
}

/* Tekstualna analiza */
.wls-popup-section h4 {
    font-size: 13px;
    margin: 0 0 4px;
}

.wls-popup-analysis {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

/* Desna kolona popup-a – tabs */
.wls-popup-right {
    border-left: 1px solid #1f2937;
    padding-left: 10px;
}

/* Tabs dugmad */
.wls-popup-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.wls-popup-tabs button {
    border: 1px solid #1f2937;
    background: #020617;
    color: #9ca3af;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
}

.wls-popup-tabs button.active {
    background: #22c55e;
    color: #022c22;
    border-color: #22c55e;
}

/* Sadržaj tabova */
.wls-popup-tab {
    display: none;
    font-size: 12px;
}

.wls-popup-tab.active {
    display: block;
}

/* Red u STATS tabu (dve kolone: naziv – vrednosti) */
.wls-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    border-bottom: 1px solid #111827;
}

.wls-stat-row span:first-child {
    color: #e5e7eb;
}

.wls-stat-row span:last-child {
    color: #9ca3af;
}

/* Red u EVENTS tabu: 3 kolone (minuta – tim – opis) */
.wls-event-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 110px) minmax(0, 1fr);
    column-gap: 6px;
    align-items: flex-start;
    padding: 3px 0;
    border-bottom: 1px solid #111827;
    font-size: 11px;
}

.wls-event-minute {
    color: #e5e7eb;
    text-align: right;
    padding-right: 4px;
}

.wls-event-team {
    color: #e5e7eb;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.wls-event-desc {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.wls-popup-placeholder {
    font-size: 11px;
    color: #9ca3af;
}

/* League page elementi */
.wls-league-header {
    margin-bottom: 10px;
}

.wls-league-header-title {
    font-size: 18px;
    font-weight: 600;
}

.wls-league-header-subtitle {
    font-size: 12px;
    color: #9ca3af;
}

.wls-league-tabs {
    margin-bottom: 10px;
    display: inline-flex;
    background: #020617;
    border-radius: 999px;
    padding: 3px;
    border: 1px solid #1f2937;
    gap: 2px;
}

.wls-league-tabs button {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
}

.wls-league-tabs button.active {
    background: #2563eb;
    color: #f9fafb;
}

/* Responsive: popup na manjim ekranima */
@media (max-width: 768px) {
    .wls-popup-main {
        grid-template-columns: 1fr;
    }
    .wls-popup-right {
        border-left: none;
        padding-left: 0;
        padding-top: 8px;
        border-top: 1px solid #1f2937;
        margin-top: 8px;
    }
}
.wls-round-title {
    margin: 8px 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: #e5e7eb;
}

