/* =========================================================================
   OCZYSZCZONE STYLE DLA KASKADOWEGO UKŁADU KALENDARZYKA KIBICA
   ========================================================================= */

.liga-main-calendar {
    margin-bottom: 25px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Nagłówek sekcji z datą */
.liga-main-calendar .date-section-header {
    background: linear-gradient(135deg, #3f61a1 0%, #2a457a 100%);
    color: #fff;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
}

/* Kontener dnia */
.liga-main-calendar .day-container {
    background-color: #ffffff;
    border: 2px solid #B1B1CB;
    border-radius: 6px;
    margin-top: 8px;
    margin-bottom: 25px;
    overflow: hidden;
}


/* Dyscyplina */
.liga-main-calendar .discipline-row {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #B1B1CB;
}

.liga-main-calendar .discipline-row:last-child {
    border-bottom: none;
}


.liga-main-calendar .discipline-col {
    flex: 1 0 140px;
    background: linear-gradient(135deg, #eff1f6 0%, #dbe1ec 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-right: 2px solid #B1B1CB;
    font-weight: bold;
    color: #2a457a;
    text-align: center;
    font-size: 15px;
}


/* Ligi */
.liga-main-calendar .leagues-container {
    flex: 999 1 300px;
    display: flex;
    flex-direction: column;
}


.liga-main-calendar .league-row {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #dcdce6;
}

.liga-main-calendar .league-row:last-child {
    border-bottom: none;
}


.liga-main-calendar .league-col {
    flex: 1 0 120px;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-right: 1px solid #cbd5e1;
    font-weight: bold;
    color: #3f61a1;
    text-align: center;
    font-size: 13px;
}


/* Mecze */
.liga-main-calendar .matches-col {
    flex: 999 1 400px;
    display: flex;
    flex-direction: column;
    padding: 10px;
    background-color: #ffffff;
    gap: 8px;
}


/* Pojedynczy mecz */
.liga-main-calendar .match-item-row {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 8px 12px;
}


/* Lekko zielone tło zakończonych */
.liga-main-calendar .match-item-row.match-finished {
    background-color: rgba(25, 135, 84, 0.06);
    border-color: rgba(25, 135, 84, 0.15);
}


/* =========================================================================
   WIERSZ MECZU
   drużyny razem po lewej, wynik po prawej
   ========================================================================= */

.liga-main-calendar .match-row-compact {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}


/* Drużyny */
.liga-main-calendar .match-row-compact .t-name {
    flex: 1 1 auto !important;
    text-align: left !important;
    font-size: 24px !important;
    font-weight: bold !important;
    color: #2b4054 !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}


/* Wynik / godzina */
.liga-main-calendar .match-row-compact .m-score {
    flex: 0 0 auto !important;
    min-width: 70px !important;
    margin-left: 20px !important;

    text-align: right !important;
    font-weight: bold !important;
	font-size: 24px;
    white-space: nowrap !important;
}


/* Dolna belka */
.liga-main-calendar .card-footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed #e2e8f0;
    font-size: 11px;
    color: #64748b;
}


/* LIVE */
.liga-main-calendar .live-dot {
    background-color: #ffcdd2;
    color: #b71c1c;
    border: 1px solid #ef9a9a;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: bold;
    animation: ligaPulse 1.5s infinite;
}


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



/* =========================================================================
   MOBILE
   ========================================================================= */

@media (max-width: 767px) {

    .liga-main-calendar .discipline-col {
        border-right: none;
        border-bottom: 2px solid #B1B1CB;
        padding: 10px;
    }


    .liga-main-calendar .league-col {
        border-right: none;
        border-bottom: 1px solid #cbd5e1;
        padding: 10px;
        background: #f1f5f9;
    }


    .liga-main-calendar .match-row-compact .t-name {
        font-size: 14px !important;
    }


    .liga-main-calendar .match-row-compact .m-score {
        min-width: 50px !important;
        margin-left: 10px !important;
    }
}