/*
File Name: 		custom.css
Description:  You can add your custom CSS here and it will overwrite template styles
*/
/*# sourceMappingURL=maps/custom.css.map */
.player-info-details__value {
    color: white;
    background-color: #ffffff00;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.2em; /* Adjust line spacing */
    max-height: 2.4em; /* Ensures only two lines show */
    width: 100%; /* Prevents text wrapping inconsistencies */
}


.player-info__item--details {
    padding: 0 !important;
    padding-top: 3px !important;
}

.player-info-details__value {
    font-weight: 600 !important;
    font-size: 12px !important;
}

.widget-results__item {
    border-top: 2px solid #3a6584;
}

.team-result {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.team-result thead {
    background-color: #f8f9fa;
}

.team-result thead th {
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 8px;
    border-bottom: 1px solid #e4e7ed;
    white-space: nowrap;
}

.team-result tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #e4e7ed;
}

.team-result tbody tr:hover {
    background-color: #f8f9fa;
}

.team-result tbody td {
    padding: 10px 8px;
    vertical-align: middle;
    font-size: 11px;
    color: #9a9da2;
}

.team-result thead th:first-child {
    padding-left: 16px;
}

.team-result thead th:last-child {
    padding-right: 16px;
}

.team-result tbody td:first-child {
    padding-left: 16px;
}

.team-result tbody td:last-child {
    padding-right: 16px;
}

.team-highlighted {
    font-weight: 700;
    color: #38A9FF !important;
    position: relative;
}

.team-highlighted::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background-color: #38A9FF;
    border-radius: 2px;
}

/* Template Column Classes */
.team-result__date {
    min-width: 80px;
    font-size: 11px;
    cursor: pointer;
}

.team-result__vs {
    min-width: 320px;
    cursor: pointer;
}

.team-result__teams-wrapper {
    display: flex;
    align-items: center;
    gap: 2px;
}

.team-result__teams-wrapper .team-meta {
    flex: 1;
    order: 1;
    max-width: 48%;
    min-width: 0;
}

.team-result__teams-wrapper .team-meta:first-child {
    order: 1;
}

.team-result__teams-wrapper .team-meta:last-of-type {
    order: 3;
}

.team-result__teams-wrapper .team-result__teams-score {
    order: 2;
    flex: 0 0 auto;
}

.team-result__teams-score {
    font-weight: 700;
    font-size: 11px;
    color: #31404b;
    padding: 0 2px;
    white-space: nowrap;
}

.team-result__score {
    text-align: center;
    min-width: 80px;
    font-weight: 700;
    font-size: 11px;
    color: #31404b;
}

.stat-cell {
    min-width: 50px;
    font-size: 11px;
    padding: 10px 8px !important;
}

/* W/L/D Badge Styles - Simple Text Style */
.team-result__game {
    display: inline;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    margin-right: 4px;
    color: #31404B;
}

.team-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.team-meta__info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.team-meta__name {
    font-size: 12px;
    font-weight: 400;
    margin: 0;
    line-height: 1.2;
    white-space: normal;
    max-width: 100%;
}

.team-meta__place {
    font-size: 9px;
    color: #9a9da2;
    font-weight: 400;
    line-height: 1.2;
    display: block;
    margin-top: 2px;
}

.team-meta.team-highlighted .team-meta__name {
    font-weight: 700;
    color: #38A9FF;
}


.fixture-score {
    text-align: center;
    min-width: 60px;
}

.score-display {
    font-weight: 700;
    font-size: 16px;
    color: #224a6a;
}

.stat-cell {
    min-width: 70px;
    font-size: 13px;
}

.stat-value {
    font-weight: 600;
    color: #9A9DA2;
}

.stat-na {
    color: #adb5bd;
    font-style: italic;
}

.cards-display {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.yellow-card {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    background-color: #ffeaa7;
    border-radius: 3px;
    font-weight: 700;
    font-size: 12px;
    color: #d63031;
}

.yellow-card::before {
    content: '';
    width: 8px;
    height: 11px;
    background-color: #fad02c;
    border-radius: 1px;
    display: inline-block;
}

.red-card {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    background-color: #ffcccc;
    border-radius: 3px;
    font-weight: 700;
    font-size: 12px;
    color: #d63031;
}

.red-card::before {
    content: '';
    width: 8px;
    height: 11px;
    background-color: #d63031;
    border-radius: 1px;
    display: inline-block;
}

.fixture-upcoming {
    opacity: 0.7;
}

.fixture-upcoming .score-display {
    color: #adb5bd;
    font-style: italic;
}

.btn-xs {
    padding: 0.25rem 0.75rem;
    font-size: 12px;
    line-height: 1.5;
}

.btn-default.btn-outline {
    background-color: transparent;
    border: 1px solid #9A9DA2;
    color: #9A9DA2;
    transition: all 0.2s ease;
}

.btn-default.btn-outline:hover {
    background-color: #9A9DA2;
    color: #ffffff;
}

.card__header--has-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.card__header--has-btn h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #224a6a;
}

.team-result-filter {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.team-result-filter__item {
    margin: 0;
}

.team-result-filter .form-control {
    padding: 0.375rem 0.75rem;
    font-size: 13px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background-color: #ffffff;
    color: #224a6a;
    min-width: 140px;
}

.team-result-filter .form-control:focus {
    outline: none;
    border-color: #38A9FF;
    box-shadow: 0 0 0 3px rgba(56, 169, 255, 0.1);
}

.team-result-filter .input-xs {
    padding: 0.25rem 0.5rem;
    font-size: 12px;
}

.card-header__button {
    white-space: nowrap;
    padding: 0.375rem 1rem;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 1200px) {
    .team-result {
        font-size: 10px;
    }

    .team-result thead th,
    .team-result tbody td {
        padding: 8px 6px;
    }

    .team-result__date {
        min-width: 70px;
        font-size: 10px;
    }

    .team-result__vs {
        min-width: 200px;
    }

    .team-result__teams-wrapper {
        gap: 1px;
    }

    .team-result__teams-score {
        font-size: 10px;
        padding: 0 1px;
    }

    .team-result__score {
        min-width: 70px;
        font-size: 10px;
    }

    .stat-cell {
        min-width: 45px;
        font-size: 10px;
    }

    .team-meta__name {
        font-size: 11px;
    }

    .team-meta__place {
        font-size: 9px;
    }

    .card__header--has-btn {
        padding: 1rem 1.5rem;
    }

    .card__header--has-btn h4 {
        font-size: 16px;
    }

    .team-result-filter {
        gap: 0.5rem;
    }

    .team-result-filter .form-control {
        min-width: 120px;
        font-size: 12px;
    }
}

@media (max-width: 992px) {
    .team-result {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .team-result thead th,
    .team-result tbody td {
        padding: 6.5px;
    }

    .team-result__game {
        font-size: 10px;
    }

    .team-result__date {
        min-width: 65px;
        font-size: 10px;
    }

    .team-result__vs {
        min-width: 180px;
    }

    .team-result__teams-wrapper {
        gap: 1px;
    }

    .team-result__teams-score {
        font-size: 10px;
        padding: 0 1px;
    }

    .team-result__score {
        min-width: 65px;
        font-size: 10px;
    }

    .stat-cell {
        min-width: 40px;
        font-size: 10px;
    }

    .team-meta__name {
        font-size: 10px;
    }

    .team-meta__place {
        font-size: 9px;
    }

    .stat-value {
        font-size: 10px;
    }

    .card__header--has-btn {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .card__header--has-btn h4 {
        font-size: 14px;
    }

    .team-result-filter {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .team-result-filter__item {
        width: 100%;
    }

    .team-result-filter .form-control,
    .card-header__button {
        width: 100%;
    }
}

/* Squad table mobile responsive (matches SortablePlayerStatsTable.razor) */
@media (max-width: 768px) {
    .player-name-container {
        gap: 6px;
    }

    .player-name-text {
        display: block;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .player-first-name {
        font-size: 0.8rem;
        font-weight: 700;
        color: #3498db;
        display: block;
        line-height: 1.2;
    }

    .player-last-name {
        font-size: 0.8rem;
        font-weight: 700;
        color: #3498db;
        display: block;
        line-height: 1.2;
    }

    .team-result tbody td:first-child {
        min-width: 110px;
        max-width: 140px;
        padding: 6px 3px;
        padding-left: 8px !important;
        white-space: normal !important;
        vertical-align: middle;
    }

    .team-result thead th:first-child {
        padding-left: 8px !important;
        min-width: 110px;
    }

    .player-name-container {
        gap: 5px;
        align-items: flex-start;
    }

    .player-name-text {
        flex: 1;
        min-width: 0;
    }

    .widget-player--alt .widget__title h4 {
        font-size: 1.1rem;
    }

    .widget-player--alt .btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .widget-player--alt .btn-group .btn {
        flex: 1;
        min-width: 60px;
        padding: 6px 8px;
        font-size: 0.75rem;
    }

    .widget-player--alt .btn-xs {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .team-result {
        font-size: 0.75rem;
        min-width: 500px;
    }

    .team-result th,
    .team-result td {
        padding: 6px 4px;
        white-space: nowrap;
    }

    .team-result th {
        font-size: 0.7rem;
        padding: 8px 4px;
    }

    .team-result td:not(:first-child) {
        text-align: center;
    }

    .player-name-link {
        font-size: 0.8rem;
    }

    .team-result img {
        width: 18px !important;
        height: 18px !important;
    }

    /* Sticky first column on mobile */
    .team-result thead th:first-child,
    .team-result tbody td:first-child {
        position: sticky;
        left: 0;
        background-color: #fff;
        z-index: 10;
        box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
    }

    .team-result thead th:first-child {
        background-color: #f8f9fa;
    }

    .team-result thead th:nth-child(2),
    .team-result tbody td:nth-child(2) {
        padding-left: 8px;
        padding-right: 8px;
    }
}

@media (max-width: 480px) {
    .widget-player--alt .btn-group .btn {
        min-width: 45px;
        padding: 5px 4px;
        font-size: 0.68rem;
    }

    .widget-player--alt .btn-xs {
        padding: 3px 5px;
        font-size: 0.62rem;
    }

    .team-result {
        font-size: 0.7rem;
        min-width: 450px;
    }

    .team-result th,
    .team-result td {
        padding: 5px 3px;
    }

    .team-result thead th:first-child {
        padding-left: 6px !important;
        min-width: 100px;
    }

    .team-result tbody td:first-child {
        padding-left: 6px !important;
        min-width: 100px;
        max-width: 130px;
    }

    .team-result img {
        width: 16px !important;
        height: 16px !important;
    }

    .player-name-container {
        gap: 4px;
    }

    .player-first-name {
        font-size: 0.75rem;
        line-height: 1.15;
    }

    .player-last-name {
        font-size: 0.68rem;
        line-height: 1.1;
    }

    .team-result tbody td:first-child {
        min-width: 75px;
        max-width: 90px;
        padding: 5px 2px;
    }

    .player-name-container {
        gap: 3px;
    }

    .player-name-text {
        gap: 0px;
    }

    .team-result img {
        width: 16px !important;
        height: 16px !important;
    }
}