/* Srbice Zápasy – Plugin Styles */

.srbice-zapasy {
    font-family: inherit;
    margin: 1.5em 0;
}

.srbice-zapasy__title {
    font-size: 1.2em;
    margin-bottom: 0.6em;
    padding-bottom: 0.3em;
    border-bottom: 2px solid #1c2341;
    color: #1c2341;
}

.srbice-zapasy__category {
    font-weight: normal;
    font-size: 0.85em;
    color: #666;
}

.srbice-zapasy__empty {
    color: #888;
    font-style: italic;
}

/* ──── Tabulka ──── */

.srbice-table-wrap {
    overflow-x: auto;
}

.srbice-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.srbice-table th,
.srbice-table td {
    padding: 7px 10px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: middle;
    white-space: nowrap;
}

.srbice-table th {
    background: #f7f7f7;
    font-weight: 600;
    color: #444;
}

.srbice-table__score-col {
    text-align: center;
}

.srbice-table__score {
    text-align: center;
    font-size: 1em;
}

.srbice-table__score a {
    color: inherit;
    text-decoration: none;
}

.srbice-table__score a:hover {
    text-decoration: underline;
}

.srbice-table__future {
    color: #aaa;
}

/* Výsledky */
.srbice-table__row--win td {
    background-color: #e6f7ec;
}

.srbice-table__row--loss td {
    background-color: #fde8e8;
}

.srbice-table__row--draw td {
    background-color: #fff8e1;
}

.srbice-table__row--upcoming td {
    background-color: #f0f6ff;
}

/* Srbice tým tučně */
.srbice-table__team--srbice .srbice-team__name {
    font-weight: 700;
}

/* ──── Tým ──── */

.srbice-team {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.srbice-team__logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 2px;
    flex-shrink: 0;
}

.srbice-team__name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

/* ──── Karty ──── */

.srbice-zapasy__cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.srbice-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    transition: box-shadow .2s;
}

.srbice-card:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
}

.srbice-card--win {
    border-left: 4px solid #2e9e4f;
}

.srbice-card--loss {
    border-left: 4px solid #d94040;
}

.srbice-card--draw {
    border-left: 4px solid #e6a817;
}

.srbice-card--upcoming {
    border-left: 4px solid #3b82f6;
}

.srbice-card__date {
    font-size: 0.8em;
    color: #888;
    margin-bottom: 8px;
}

.srbice-card__teams {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.srbice-card__team {
    flex: 1;
}

.srbice-card__team--srbice .srbice-team__name {
    font-weight: 700;
}

.srbice-card__score {
    font-size: 1.3em;
    font-weight: 700;
    min-width: 60px;
    text-align: center;
    color: #222;
}

.srbice-card__score a {
    color: inherit;
    text-decoration: none;
}

.srbice-card__competition {
    margin-top: 8px;
    font-size: 0.75em;
    color: #888;
    border-top: 1px solid #f0f0f0;
    padding-top: 6px;
}

/* ──── Widget Nadcházející zápasy (homepage) ──── */

.srbice-widget {
    font-family: Roboto, -apple-system, sans-serif;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(24, 34, 64, .12);
    max-width: 560px;
}

.srbice-widget__header {
    background: #182240;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
}

.srbice-widget__icon {
    font-size: 1.3em;
    line-height: 1;
}

.srbice-widget__title {
    font-size: 1em;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.srbice-widget__empty {
    padding: 20px;
    color: #888;
    font-style: italic;
    text-align: center;
}

.srbice-widget__list {
    padding: 8px 0 4px;
}

.srbice-widget__day-label {
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #fff;
    background: #2f3f6e;
    padding: 4px 20px;
    margin: 4px 0 2px;
}

.srbice-widget__match {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    text-decoration: none;
    color: #182240;
    border-bottom: 1px solid #f0f2f8;
    transition: background .15s;
}

.srbice-widget__match:last-child {
    border-bottom: none;
}

.srbice-widget__match:hover {
    background: #f4f6fc;
    text-decoration: none;
}

/* Tým */
.srbice-widget__team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.srbice-widget__team--away {
    flex-direction: row-reverse;
    text-align: right;
}

.srbice-widget__logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 3px;
}

.srbice-widget__team-name {
    font-size: 0.88em;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.srbice-widget__team--srbice .srbice-widget__team-name {
    font-weight: 700;
    color: #182240;
}

/* Střed – čas + "vs" + kategorie */
.srbice-widget__vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.srbice-widget__time {
    font-size: 1.05em;
    font-weight: 700;
    color: #182240;
    letter-spacing: .03em;
}

.srbice-widget__vs-text {
    font-size: 0.72em;
    color: #8a95b5;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.srbice-widget__comp {
    font-size: 0.68em;
    color: #fff;
    background: #182240;
    border-radius: 3px;
    padding: 1px 5px;
    font-weight: 600;
    letter-spacing: .03em;
}

/* Responsive */
@media (max-width: 480px) {
    .srbice-widget__match {
        gap: 6px;
        padding: 10px 12px;
    }

    .srbice-widget__logo {
        width: 24px;
        height: 24px;
    }

    .srbice-widget__team-name {
        font-size: 0.8em;
    }

    .srbice-widget__time {
        font-size: 0.95em;
    }
}

/* ──── Chyba ──── */

.srbice-error {
    color: #c00;
    background: #fff0f0;
    border: 1px solid #fcc;
    border-radius: 4px;
    padding: 8px 12px;
}

/* ──── Responsive ──── */

@media (max-width: 600px) {
    .srbice-team__name {
        max-width: 120px;
        font-size: 0.85em;
    }

    .srbice-table th,
    .srbice-table td {
        padding: 5px 6px;
        font-size: 0.82em;
    }
}
