/* Custom CSS for MiLiga public site */

body {
    -webkit-font-smoothing: antialiased;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
}

/* Feature Icon sizing for the landing page */
.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pricing-header {
    max-width: 700px;
}

/* Enhancements for tables and cards */
.table th {
    font-weight: 600;
}

.card {
    transition: transform 0.2s;
}

.list-group-item-action:hover {
    background-color: #f8f9fa;
}

/* Standings table — mobile-first compact layout */
.standings-card {
    overflow: hidden;
    border-radius: 0.75rem;
}

.standings-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.standings-table {
    width: 100%;
    margin-bottom: 0;
    table-layout: fixed;
}

.standings-table th,
.standings-table td {
    vertical-align: middle;
}

.standings-pos {
    width: 2.25rem;
}

.standings-pts {
    width: 2.75rem;
}

.standings-team {
    max-width: 0;
    overflow: hidden;
}

.standings-team-link {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .standings-table {
        font-size: 0.8rem;
    }

    .standings-table th,
    .standings-table td {
        padding: 0.45rem 0.3rem;
    }

    .standings-table th:not(.text-start):not(.standings-pos):not(.standings-pts),
    .standings-table td:not(.text-start):not(.standings-pos):not(.standings-pts) {
        width: 2rem;
        padding-left: 0.2rem;
        padding-right: 0.2rem;
    }

    .standings-team-link {
        font-size: 0.78rem;
        font-weight: 600;
        max-width: 100%;
    }

    .standings-pts {
        font-size: 0.95rem !important;
    }

    /* League page nav: allow wrapping instead of crushing columns */
    .nav-pills.nav-fill {
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .nav-pills.nav-fill .nav-item {
        flex: 1 1 45%;
    }

    .nav-pills.nav-fill .nav-link {
        font-size: 0.85rem;
        padding: 0.45rem 0.5rem;
    }
}

@media (min-width: 768px) {
    .standings-table {
        table-layout: auto;
    }

    .standings-team {
        max-width: none;
        overflow: visible;
    }

    .standings-team-link {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .standings-pts {
        font-size: 1.15rem;
    }
}
