/* Egyedi stílusok a nap oldalhoz */
.nap-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Match status style */
.match-status {
    font-size: 0.7rem;
    color: var(--neon-orange);
    margin-top: 0.2rem;
}

/* Match xG style */
.match-xg {
    font-size: 0.85rem;
    color: var(--neon-aqua);
    text-align: center;
    position: relative;
    cursor: help;
}

/* Explicit színosztályok az xG értékekhez */
.xg-green {
    color: #00CC00 !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}

.xg-yellow {
    color: #FFDD00 !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}

.xg-red {
    color: #FF3333 !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}

/* Új fehér szín a befejezetlen meccsekhez */
.xg-white {
    color: #FFFFFF !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}

/* Tooltip stílus */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    line-height: 1.4;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    width: max-content;
    max-width: 300px;
}

/* Asztali nézetben legyen látható hover-re */
[data-tooltip]:hover::after,
.responsive-table th[data-tooltip]:hover::after {
    visibility: visible;
    opacity: 1;
}

/* Amikor a tooltip aktív (mobilon érintésre) */
[data-tooltip].tooltip-active::after {
    visibility: visible !important;
    opacity: 1 !important;
}

/* A fejléc tooltipek pozíciójának javítása */
.responsive-table th[data-tooltip]::after {
    bottom: auto;
    top: 100%;
}

/* Mobilon a tooltip máshogy jelenik meg */
@media (max-width: 767px) {
    [data-tooltip]::after {
        width: 200px;
        white-space: normal;
    }
}

/* Félidő eredmény stílus */
.half-result {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Új mobilnézet kártyák stílusa */
.match-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    padding: 0 0.5rem;
}

.match-card {
    background: rgba(15, 15, 15, 0.7);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
    overflow: hidden;
    padding: 0.8rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.match-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.match-time {
    font-weight: bold;
    padding: 0.2rem 0.6rem;
    background-color: rgba(76, 175, 80, 0.2);
    border-radius: 4px;
    color: var(--neon-aqua);
    margin-right: 0.8rem;
    font-size: 0.9rem;
}

.match-location {
    color: var(--neon-orange);
    font-size: 0.8rem;
}

.match-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.team {
    flex: 1;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-team {
    text-align: left;
    padding-right: 0.5rem;
}

.away-team {
    text-align: right;
    padding-left: 0.5rem;
}

.match-score {
    text-align: center;
    padding: 0 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-main {
    font-weight: bold;
    font-size: 1.1rem;
}

.score-half {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.1rem;
}

.match-footer {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Reset and more specific styles for odds boxes */
.match-card .odds-box,
.desktop-odds-container .odds-box {
    display: block !important;
    width: 45px !important;
    height: 75px !important;
    border: 1px solid #3a3a3a !important;
    border-radius: 4px !important;
    margin: 0 4px !important;
    padding: 0 !important;
    text-align: center !important;
    overflow: hidden !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    background: #222 !important;
    position: relative !important;
}

.match-card .odds-box .tip-title,
.desktop-odds-container .odds-box .tip-title {
    display: block !important;
    width: 100% !important;
    height: 25px !important;
    line-height: 25px !important;
    background-color: #343a40 !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: bold !important;
    margin: 0 !important;
    padding: 0 !important;
}

.match-card .odds-box .odds-value,
.desktop-odds-container .odds-box .odds-value {
    display: block !important;
    width: 100% !important;
    height: 28px !important;
    line-height: 28px !important;
    background-color: #1e2126 !important;
    color: #e9ecef !important;
    font-size: 15px !important;
    font-weight: bold !important;
    margin: 0 !important;
    padding: 0 !important;
    border-top: 1px solid #343a40 !important;
    border-bottom: 1px solid #343a40 !important;
}

.match-card .odds-box .percent-value,
.desktop-odds-container .odds-box .percent-value {
    display: block !important;
    width: 100% !important;
    height: 22px !important;
    line-height: 22px !important;
    background-color: #2c3237 !important;
    color: #adb5bd !important;
    font-size: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Befoglaló konténer az odds dobozokhoz */
.match-card .odds-container,
.desktop-odds-container {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    margin: 15px 0 !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding-bottom: 5px !important;
}

/* Webkit scrollbar elrejtése */
.match-card .odds-container::-webkit-scrollbar,
.desktop-odds-container::-webkit-scrollbar {
    display: none;
}

/* Asztali és mobil nézet */
.mobile-table {
    display: none;
}

.medium-table {
    display: none;
}

.desktop-table {
    display: block;
}

/* Breakpoints for different views */
@media (max-width: 767px) {
    .desktop-table, .medium-table {
        display: none;
    }
    .mobile-table {
        display: block;
    }
    
    /* Mobile odds konténer optimalizálása egy sorba */
    .match-card .odds-container {
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        margin: 10px 0 !important;
    }
    
    .match-card .odds-box {
        width: 60px !important;
        min-width: 60px !important;
        height: 65px !important;
        margin: 0 4px !important;
        flex-shrink: 0 !important;
    }
    
    .more-odds-btn {
        margin-right: 10px !important;
    }
}

@media (min-width: 768px) and (max-width: 1099px) {
    .desktop-table, .mobile-table {
        display: none;
    }
    .medium-table {
        display: block;
    }
}

@media (min-width: 1100px) {
    .desktop-table {
        display: block;
    }
    .mobile-table, .medium-table {
        display: none;
    }
    
    /* Fejléc optimalizációk nagyobb képernyőkre */
    /* Menügombok kompaktabb megjelenése */
    .sport-navbar .nav-item {
        margin: 0 2px;
    }
    
    /* Elfelejtette szöveg rövidítése */
    .navbar-forgot {
        font-size: 0.75rem;
    }
    
    /* Nyelvi választó kompaktabbá tétele */
    .navbar-nav .fa-globe {
        margin-right: 2px !important;
    }
    
    /* Bejelentkezési űrlap optimalizálása */
    .navbar-submit {
        white-space: nowrap;
    }
}

/* Táblázat stílusok az asztali nézethez */
.table-odds-box {
    display: block;
    width: 40px;
    height: 60px;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    overflow: hidden;
    background: #222;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 2px;
    cursor: pointer;
}

.table-odds-box .tip-title {
    display: block;
    width: 100%;
    height: 20px;
    line-height: 20px;
    background-color: #343a40;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

.table-odds-box .odds-value {
    display: block;
    width: 100%;
    height: 22px;
    line-height: 22px;
    background-color: #1e2126;
    color: #e9ecef;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
}

.table-odds-box .percent-value {
    display: block;
    width: 100%;
    height: 18px;
    line-height: 18px;
    background-color: #2c3237;
    color: #adb5bd;
    text-align: center;
    font-size: 10px;
}

/* "More" button styling */
.more-odds-btn {
    cursor: pointer;
    background: linear-gradient(135deg, #0f172a, #1e3a8a) !important;
    transition: all 0.2s ease-in-out;
    margin-left: auto !important;
}

.more-odds-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.5) !important;
}

.more-odds-label {
    display: flex !important;
    height: 50px !important;
    align-items: center;
    justify-content: center;
    font-size: 10px !important;
    text-align: center;
    line-height: 1.2;
    color: #4cc9f0 !important;
    background-color: #1e2126 !important;
}

/* Additional categories styling */
.additional-categories {
    margin-top: 10px;
    border-top: 1px dashed rgba(76, 175, 80, 0.3);
    padding-top: 10px;
}

.category-section {
    margin-bottom: 15px;
}

.category-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--neon-aqua);
    margin-bottom: 8px;
    padding-left: 4px;
}

.view-all-link {
    text-align: center;
    margin: 15px 0 5px;
}

/* Modal stílusok */
.bet-categories-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    background-color: rgba(20, 30, 48, 0.95);
    margin: 5% auto;
    padding: 20px;
    border: 1px solid rgba(76, 175, 80, 0.4);
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.3);
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-close {
    color: var(--neon-aqua);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--neon-yellow);
}

.modal-title {
    color: var(--neon-yellow);
    margin: 0;
    text-align: center;
    font-size: 1.5rem;
}

.modal-match-info {
    background-color: rgba(10, 20, 40, 0.8);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

.modal-match-teams {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.modal-match-time {
    color: var(--neon-aqua);
    font-size: 0.9rem;
}

.modal-tabs .nav-tabs {
    border-bottom: 1px solid rgba(76, 175, 80, 0.4);
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 5px;
}

.modal-tabs .nav-item {
    flex-shrink: 0;
}

.modal-tabs .nav-link {
    color: var(--neon-aqua);
    border: none;
    padding: 10px 15px;
    margin-right: 5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.modal-tabs .nav-link.active {
    color: var(--neon-yellow);
    background-color: rgba(76, 175, 80, 0.2);
    border-bottom: 2px solid var(--neon-yellow);
}

.modal-tabs .tab-content {
    padding: 20px 0;
}

.modal-odds-container {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* "Több fogadási lehetőség" gomb az asztali nézethez */
.more-bets-btn {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: var(--neon-aqua);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 4px;
    padding: 6px 12px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.more-bets-btn:hover {
    background: linear-gradient(135deg, #1e3a8a, #2d4ba0);
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.5);
}

/* A desktophoz és mobilhoz is megadott további stílusok */
.desktop-odds-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.table-odds-container {
    padding: 0.5rem 0 !important;
}

/* Fogadási dobozok interaktivitásának javítása */
.odds-box:not(.more-odds-btn), .table-odds-box {
    cursor: pointer !important;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out !important;
}

.clickable-odds:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 150, 255, 0.4) !important;
}

/* Letiltott fogadás stílusa */
.disabled-bet {
    opacity: 0.5;
    cursor: not-allowed !important;
    position: relative;
}

.disabled-bet::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.disabled-bet:hover {
    transform: none !important;
    box-shadow: none !important;
}
