/* Base styles for the matches block */
.matchesBlock {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
}

/* Header styles */
.matchesHeader {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background-color: var(--body-big-block-match-bg-header);
    padding: 0 30px 0 18px;
}

.navWrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* justify-content: space-between; */
    gap: 20px;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.matchesHeader .nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.matchesHeader .navItem {
    font-size: 10px;
    font-weight: 500;
    color: var(--body-big-block-match-menu-text);
    padding: 7px 0;
}

.matchesHeader .navItem.active {
    color: var(--body-big-block-match-active-menu-text);
    border-bottom: 2px solid #97DD01;
}

.matchesHeader .navItem:hover {
    color: var(--body-big-block-match-menu-text-hover);
}

.matchesCrumbs {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 22px;
    margin-right: 19px;
    padding-right: 29px;
    flex-shrink: 0;
    border-right: 2px solid #1E4268;
    height: -webkit-fill-available;
}

.matchesCrumbs a {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.matchesCrumbs a:after {
    content: '';
    background-image: url("../img/icons/ico-arrow-right.svg");
    background-size: contain;
    background-repeat: no-repeat;
    width: 4px;
    height: 7px;
    position: absolute;
    right: -100%;
    top: 30%;
}
.matchesCrumbs a:last-child:after {
    display: none;
}
.matchesCrumbs img {
    width: 100%;
    object-fit: contain;
    max-width: 14px;
    max-height: 14px;
}

.searchBar {
    display: flex;
    position: relative;
}

.searchBar img {
    max-width: 14px;
    max-height: 14px;
    width: 100%;
    height: 100%;
}

.searchBar input {
    width: 96px;
    padding: 3px 15px 3px 5px;
    border-radius: 5px;
    background-color: var(--body-big-block-match-input-bg);
    font-size: 8px;
    font-weight: 500;
    color: #FFF;
    transition: all 0.3s ease-in-out;
}
.searchBar input:focus {
    width: 200px;
}
.searchBar input::placeholder {
    color: var(--body-big-block-match-input-text);
}

.searchBar button,
.searchBar a {
	position: absolute;
    right: 7px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    width: 9px;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Sports Navigation styles */
.sportsNav {
    display: flex;
    justify-content: flex-start;
    gap: 14px;
    padding: 8px 17px;
    background-color: var(--body-big-block-match-category-bg);
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
}

.sportsNav::-webkit-scrollbar {
    height: .35em;
}

.sportsNav::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

.sportsNav::-webkit-scrollbar-thumb {
    background-color: #4DABFF;
}

.sportsNavItem {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom: 2px solid transparent;
    font-size: 8px;
    font-weight: 700;
    color: var(--body-big-block-match-category-text);
}

.sportsNavItem .navIcon {
    width: 16px;
    height: 16px;
    background-image: var(--nav-icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sportsNavItem p {
    position: relative;
}

.sportsNavItem p:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    left: 0;
    bottom: -2px;
    background: var(--body-big-block-match-category-eyeliner);
    transform-origin: right center;
    transform: scaleX(0);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0, 1);
}

.sportsNavItem:hover p:after,
.sportsNavItem.active p:after {
    transform: scaleX(1);
    transform-origin: center left;
}

.sportsNavItem.active {
    color: var(--body-big-block-match-category-text-active);
    pointer-events: none;
}


/* League Block Styles */

.leagueWrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.leagueInfo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    width: 50%;
}

.leagueBlock {
    border-bottom: 1px solid #eee;
}

.leagueBlock:last-child {
    border-bottom: none;
}

.leagueHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 18px;
    background-color: var(--body-big-block-match-bg-league);
}

.leagueHeader .leagueName {
    font-size: 12px;
    color: var(--body-big-block-match-name-league);
}

.bettingOptions {
    display: flex;
    justify-content: space-around;
    /* gap: 39px; */
    font-size: 11px;
    color: #204D77;
    width: 50%;
}

.optionItem {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--body-big-block-match-cf-league);
}

.dropDownButton {
    display: flex;
    width: 9px;
    height: 6px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.dropDownButton:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dropDownButton img {
    width: fit-content;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropDownButton.active img {
    transform: rotate(180deg);
}

/* Match Row Styles */
.dropDownContent {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropDownContent.expanded {
    max-height: 1000px;
}
.dropDownContent .matchRow {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease-in-out, max-height 0.4s ease-in-out, transform 0.4s ease-in-out;
    transform: translateY(-15px);
}

.dropDownContent.expanded .matchRow {
    opacity: 1 !important;
    max-height: 200px !important;
    transform: translateY(0) !important;
}

.matchRow {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.matchRow .matchWrapper {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
    /* padding: 8px 19px 9px; */
    background-color: var(--body-big-block-match-bg-match);
}

.matchDate {
    font-size: 8px;
    color: var(--body-big-block-match-text-date);
    background-color: var(--body-big-block-match-bg-date);
    padding: 3px 19px;
}

.teamContainer {
    display: flex;
    flex-direction: column;
    padding: 8px 12px 9px 19px;
    width: 50%;
}

.teamInfo {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
}

.teamBlock {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.team {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--body-big-block-match-name-team);
}
.team img {
    width: 12px;
    height: 12px;
    object-fit: cover;
}

.bookmarkBlock {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding-right: 5px;
    border-right: 1px solid var(--body-big-block-match-bg-odds-wraper);
}

.bookmarkBlock img {
    width: 9px;
    height: 9px;
    object-fit: cover;
}


.matchDetails {
    display: flex;
    align-items: center;
    color: var(--body-big-block-match-detail-text);
    font-size: 8px;
    gap: 9px;
}

.detailsIcons {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 3px;
}


.oddsWrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: calc(50% - 20px);
    gap: 5px;
}

.oddsBlock {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-left: 1px solid;
    border-color: var(--body-big-block-match-bg-odds-wraper);
    padding: 0 12px;
    height: 100%;
    width: 100%;
}

.oddButton {
    height: fit-content;
    padding: 4px 7px;
    background-color: var(--body-big-block-match-bg-odds-btn);
    border-radius: 7px;
    font-size: 10px;
    color: var(--body-big-block-match-text-odds-btn);
    transition: all 0.3s ease-in-out;
}

.oddButton:hover {
    background-color: var(--body-big-block-match-bg-odds-btn-hover);
    color: var(--body-big-block-match-text-odds-btn-hover);
}

.oddButton.specialOdd {
    background-color: transparent;
    text-decoration: underline;
    padding: 0;
}

/* Match row animation */
.matchRow {
    transition: all 0.3s ease;
}

.matchRow:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}



/* Sports Filter Styles */
.leagueWrapper[data-sport] {
    display: none;
}

.leagueWrapper[data-sport].active {
    display: block;
}

/* Smooth transition for showing/hiding containers */
.leagueWrapper {
    transition: opacity 0.3s ease-in-out;
}

.leagueWrapper[style*="display: none"] {
    opacity: 0;
}

.leagueWrapper[style*="display: block"] {
    opacity: 1;
}

/* Mobile styles - max-width media queries */
@media (max-width: 992px) {
    
}

@media (max-width: 768px) {
    .matchesHeader .navItem {
        padding: 5px 0;
    }
}

@media (max-width: 690px) {
    .bettingOptions {
        gap: 10px;
    }
}
@media (max-width: 568px) {
    .matchRow .matchWrapper {
        justify-content: space-between;
    }

    /* .oddsWrapper {
        justify-content: flex-start;
        gap: 0px;
        width: auto;
    } */
    .oddsBlock {
        /* flex-direction: column;
        align-items: flex-start; */
        padding: 0px 5px;
    }
}

@container mainContent (min-width: 910px) {
    .team {
        font-size: 12px;
    }

    .matchDetails {
        font-size: 10px;
    }

    .oddButton {
        font-size: 12px;
    }
    .matchesHeader .navItem {
        font-size: 13px;
    }
    .sportsNavItem,
    .matchDate,
    .searchBar input {
        font-size: 10px;
    }

    .searchBar input {
        width: 116px;
    }

    .leagueHeader .leagueName {
        font-size: 13px;
    }

}
@container mainContent (min-width: 1366px) {
    .team {
        font-size: 16px;
    }
    .matchDetails {
        font-size: 12px;
    }

    .oddButton {
        font-size: 15px;
    }
    .matchesHeader .navItem {
        font-size: 17px;
    }

    .sportsNavItem,
    .matchDate,
    .searchBar input {
        font-size: 13px;
    }

    .searchBar input {
        width: 150px;
    }

    .searchBar input:focus {
        width: 250px;
    }

    .leagueHeader .leagueName {
        font-size: 17px;
    }
}

/* Sports Filter Styles */
.leagueWrapper[data-sport] {
    display: none;
}

.leagueWrapper[data-sport].active {
    display: block;
}

/* Smooth transition for showing/hiding containers */
.leagueWrapper {
    transition: opacity 0.3s ease-in-out;
}

.leagueWrapper[style*="display: none"] {
    opacity: 0;
}

.leagueWrapper[style*="display: block"] {
    opacity: 1;
}

/* Match row animation */
.matchRow {
    transition: all 0.3s ease;
}

.matchRow:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Loading state for dynamic content */
.leagueWrapper.loading {
    opacity: 0.7;
    pointer-events: none;
}

.leagueWrapper.loading::after {
    content: "Loading matches...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 14px;
}