/* Game specific styles */

@keyframes bounce-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-bounce-y {
    animation: bounce-y 1.5s infinite ease-in-out;
    display: inline-block;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

.rooms-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.room-tab {
    padding: 10px;
    background: #151822;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 110px;
}

.room-tab.active {
    background: var(--card-bg);
    border-color: var(--accent);
}

.room-tab-name {
    font-weight: bold;
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.room-tab-content {
    font-size: 12px;
    color: var(--text-primary);
    line-height: 1.4;
    text-align: center;
}

.game-board {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: 800px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 30px;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.timer {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
}

.total-bank {
    font-size: 24px;
    font-weight: bold;
}

.wheel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 100px;
    margin: 40px 0;
    border-radius: 8px;
    background: #111;
    border: 2px solid var(--border-color);
}

.wheel {
    display: flex;
    height: 100%;
    width: max-content;
    transition: transform 5s cubic-bezier(0.15, 0.85, 0.2, 1);
}

.roulette-item {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chip {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5), 0 5px 10px rgba(0,0,0,0.5);
}

.chip.red {
    background: 
        radial-gradient(circle, #dc2626 60%, transparent 61%),
        repeating-conic-gradient(from 0deg, #fff 0deg 15deg, #ef4444 15deg 30deg);
}

.chip.blue {
    background: 
        radial-gradient(circle, #1d4ed8 60%, transparent 61%),
        repeating-conic-gradient(from 0deg, #fff 0deg 15deg, #3b82f6 15deg 30deg);
}

.pointer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: rgba(245, 158, 11, 0.5);
    z-index: 10;
}

.pointer::before, .pointer::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    z-index: 11;
}

.pointer::before {
    top: 0;
    border-top: 20px solid var(--accent);
}

.pointer::after {
    bottom: 0;
    border-bottom: 20px solid var(--accent);
}

/* Betting Area - Compact Version */
.betting-area {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.bet-side {
    flex: 1;
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.bet-side.red {
    background: linear-gradient(135deg, #7f1d1d, #ef4444);
}

.bet-side.blue {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.bet-side h3 {
    font-size: 16px;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.bet-amount {
    font-size: 14px;
    font-weight: bold;
    margin: 0;
}

.bet-controls {
    display: flex;
    gap: 5px;
    align-items: center;
}

.bet-input {
    width: 80px;
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    background: rgba(255,255,255,0.2);
    color: white;
}

.bet-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.place-bet-btn {
    padding: 6px 15px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    background: white;
    color: #000;
    transition: transform 0.2s;
}

.place-bet-btn:hover {
    transform: scale(1.05);
}

.place-bet-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Player Bet Lists */
.players-lists-wrapper {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}

.bets-list {
    flex: 1;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    min-height: 150px;
}

.bets-list h4 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.player-bet-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    transition: background 0.2s;
}

.player-bet-item:last-child {
    border-bottom: none;
}

.player-bet-item:hover {
    background: rgba(255,255,255,0.05);
}

.player-bet-item img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 10px;
}

.player-bet-item .player-name {
    flex-grow: 1;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.player-bet-item .player-amount {
    font-weight: bold;
    color: var(--accent);
    white-space: nowrap;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    z-index: 1000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success { border-left: 5px solid #10b981; }
.toast.error { border-left: 5px solid #ef4444; }

/* Responsive Game UI */
@media (max-width: 768px) {
    .rooms-selector {
        flex-wrap: nowrap;
        overflow-x: hidden;
        justify-content: space-between;
        gap: 5px;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .room-tab {
        flex: 1;
        padding: 5px;
    }
    
    .room-tab-name {
        font-size: 11px;
        margin-bottom: 2px;
    }
    
    .room-tab-content {
        font-size: 9px;
    }

    .betting-area {
        gap: 5px;
    }
    
    .bet-side {
        padding: 8px;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
    }
    
    .bet-side h3 {
        font-size: 14px;
    }
    
    .bet-amount {
        font-size: 14px;
    }
    
    .bet-controls {
        flex-wrap: wrap;
    }
    
    .bet-input {
        width: 100%;
        font-size: 12px;
        padding: 5px;
    }
    
    .place-bet-btn {
        width: 100%;
        font-size: 12px;
        padding: 5px;
    }

    .players-lists-wrapper {
        gap: 5px;
    }
    
    .bets-list {
        padding: 5px;
    }
    
    .player-bet-item {
        font-size: 11px;
        padding: 5px;
    }
    .player-bet-item .player-name {
        max-width: 55px;
    }
    .player-bet-item img {
        width: 16px;
        height: 16px;
        margin-right: 5px;
    }

    .status-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .status-right {
        text-align: center !important;
    }
    
    .wheel-container {
        height: 70px;
    }
    
    .roulette-item {
        width: 70px;
        height: 70px;
    }
    
    .chip {
        width: 55px;
        height: 55px;
    }
    
    #waiting-area {
        padding: 15px !important;
    }
    
    #waiting-area img {
        width: 40px !important;
        margin-bottom: 5px !important;
    }
    
    #waiting-area h2 {
        font-size: 16px;
        margin: 0;
    }
}

/* Info Cards Styles */
.info-cards-wrapper {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.info-card {
    flex: 1;
    background: #1a1e29;
    border: 1px solid var(--border-color);
    padding: 20px;
    min-width: 300px;
}

.info-card-title {
    color: white;
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 400;
}

.info-list-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f59e0b; /* Orange border like screenshot */
}

.info-list-item:last-child {
    border-bottom: none;
}

.info-list-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.info-user-name {
    color: white;
    font-size: 16px;
}

.info-payout-details {
    display: flex;
    flex-direction: column;
}

.info-payout-amount {
    color: #f59e0b;
    font-weight: bold;
    font-size: 18px;
    margin: 5px 0;
}

.info-payout-tx {
    color: var(--text-secondary);
    font-size: 12px;
}

@media (max-width: 768px) {
    .info-cards-wrapper {
        flex-direction: column;
    }
    .info-card {
        min-width: 100%;
    }
    .info-list-item img {
        width: 45px;
        height: 45px;
    }
    .info-user-name {
        font-size: 14px;
    }
    .info-payout-amount {
        font-size: 16px;
    }
}
