/* Tournament Page Styles */

.tournament-section {
    background: #0f1721b3;
    padding: 0;
    color: white;
    margin: 20px 0;
    border: 1px solid #445067;
}

.tournament-banner {
    width: 100%;
    text-align: center;
}

.tournament-banner img {
    max-width: 100%;
    height: auto;
}

.tournament-games {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 15px;
}

.tournament-game {
    background: #0f1721;
    overflow: hidden;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: row;
    border: 1px solid #1e3054;
}

/* Left side of the game card */
.game-left {
    width: 50%;
    position: relative;
    padding: 0;
}

.image-container {
    position: relative;
    width: 100%;
}

.game-left img {
    width: 100%;
    height: auto;
    display: block;
}

.timer-overlay {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: rgb(0 0 0 / 43%);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.timer-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.timer-block {
    background: linear-gradient(to bottom, #4a90e2, #091e58);
    color: white;
    font-size: 28px;
    line-height: 1;
    font-weight: bold;
    padding: 5px;
    border-radius: 4px;
    min-width: 45px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.timer-separator {
    font-size: 28px;
    font-weight: bold;
    margin: 0 5px;
    color: #fff;
}

.timer-labels {
    display: flex;
    justify-content: space-around;
    color: #fff;
    font-size: 12px;
}

.timer-labels span {
    width: 65px;
    text-align: center;
    font-size: 9px;
    font-weight: 800;
}

/* Right side of the game card */
.game-right {
    width: 50%;
    background: #0f1721;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
}

.jackpot-image {
    text-align: center;
    font-weight: bold;
    color: #ffcc00;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
    background: url('../images/common/tournament/jackpot-bg.png') no-repeat center;
    background-size: contain;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stats styling */
.tournament-game-stats {
    padding: 0;
    display: flex;
    flex-direction: column;
    grid-gap: 10px;
}

.stat-row {
    display: grid;
    grid-template-columns: 50% auto;
    border-radius: 25px;
    background: #2a5298;
    padding: 5px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.stat-value {
    color: white;
    font-weight: normal;
    font-size: 14px;
}

/* Winner section */
.winner-section {
    margin-top: 10px;
    text-align: center;
}

.tournament-winner-list {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #4a90e2;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 18px;
    grid-gap: 10px;
}
.tournament-winner-list i{
    color: #fff;
    font-size: 12px;
    border-radius: 50%;
    padding: 5px;
    background: #4a90e2;
    height: 22px;
    width: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.winner-icon {
    display: inline-block;
    margin-right: 5px;
    color: #4a90e2;
}

.tournament-terms {
    font-size: 12px;
    color: #ffffff;
    cursor: pointer;
}

/* Winner Modal Styles */
#winnerModal .modal-content {
    background-color: #0f1721;
    border: 1px solid #1e3054;
    border-radius: 8px;
    color: white;
}

#winnerModal .modal-header {
    padding: 15px 20px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border: none;
}

#winnerModal .modal-title {
    color: white;
    font-weight: bold;
    text-align: center;
    width: 100%;
    font-size: 24px;
}

#winnerModal .close {
    color: #12161a;
    opacity: 0.8;
    position: absolute;
    right: 15px;
    top: 15px;
    background: #fff;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#winnerModal .close:hover {
    opacity: 1;
}

#winnerModal .modal-body {
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    padding-top: 0;
    /* Custom scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: #4a90e2 #0f1721;
}

/* Webkit browsers (Chrome, Safari, newer versions of Opera) */
#winnerModal .modal-body::-webkit-scrollbar {
    width: 8px;
}

#winnerModal .modal-body::-webkit-scrollbar-track {
    background: #0f1721;
    border-radius: 10px;
}

#winnerModal .modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #4a90e2, #091e58);
    border-radius: 10px;
}

#winnerModal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #4a90e2;
}

.winner-list-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    background: linear-gradient(to bottom, #4a90e2, #091e58);
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
}

.winner-username {
    flex: 1;
    text-align: left;
}

.winner-turnover {
    flex: 1;
    text-align: right;
}

.winner-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    grid-gap: 10px;
}

.winner-item {
    background: #0000008a;
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    border: 1px solid #6487c8;
}

/* Terms Modal Styles */
#termsModal .modal-content {
    background-color: #0f1721;
    border: 1px solid #1e3054;
    border-radius: 8px;
    color: white;
}

#termsModal .modal-header {
    padding: 15px 20px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border: none;
}

#termsModal .close {
    color: #12161a;
    opacity: 0.8;
    position: absolute;
    right: 15px;
    top: 15px;
    background: #fff;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#termsModal .close:hover {
    opacity: 1;
}

#termsModal .modal-body {
    padding: 15px 20px;
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #4a90e2 #0f1721;
}

#termsModal .modal-body::-webkit-scrollbar {
    width: 8px;
}

#termsModal .modal-body::-webkit-scrollbar-track {
    background: #0f1721;
    border-radius: 10px;
}

#termsModal .modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #4a90e2, #091e58);
    border-radius: 10px;
}

#termsModal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #4a90e2;
}

.terms-content h5 {
    color: #4a90e2;
    margin-bottom: 15px;
    font-size: 18px;
}

.terms-content h6 {
    color: #6487c8;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 16px;
}

.terms-content p {
    margin-bottom: 15px;
    line-height: 1.5;
    color: #e0e0e0;
}

.terms-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.terms-content li {
    margin-bottom: 8px;
    color: #e0e0e0;
}

.terms-footer {
    margin-top: 25px;
    font-style: italic;
    color: #6487c8;
    border-top: 1px solid #1e3054;
    padding-top: 15px;
}

#termsModal .tournament-terms {
    cursor: pointer;
    color: #6487c8;
}

#termsModal .tournament-terms:hover {
    color: #4a90e2;
    text-decoration: underline;
}

