/* Games Page Specific Styles */

/* Games Page Header */
.games-header {
    padding: 120px 0 80px;
    background: var(--gradient-dark);
    text-align: center;
}

.games-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.games-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Games Main */
.games-main {
    padding: 80px 0;
    background: var(--dark-bg);
}

/* Game Section */
.game-section {
    margin-bottom: 80px;
    padding: 40px 0;
}

.game-header {
    text-align: center;
    margin-bottom: 3rem;
}

.game-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.game-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.game-container {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Slot Machine Styles */
.slot-machine {
    max-width: 600px;
    margin: 0 auto;
}

.slot-display {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    padding: 20px;
    background: var(--darker-bg);
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
}

.reel {
    width: 80px;
    height: 100px;
    background: var(--dark-bg);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--primary-color);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.symbol {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.slot-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.balance {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
}

.bet-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.bet-controls span {
    font-weight: 500;
    color: var(--text-light);
}

.btn-spin {
    font-size: 1.2rem;
    padding: 15px 30px;
    min-width: 120px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.slot-result {
    text-align: center;
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    min-height: 30px;
}

.win {
    color: var(--accent-color);
}

.lose {
    color: #EF4444;
}

/* Blackjack Styles */
.blackjack-table {
    max-width: 800px;
    margin: 0 auto;
}

.dealer-area,
.player-area {
    background: var(--darker-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.dealer-area h3,
.player-area h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
    text-align: center;
}

.cards {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 1rem;
    min-height: 120px;
    align-items: center;
}

.card {
    width: 60px;
    height: 90px;
    background: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid #ddd;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.card.red {
    color: #DC2626;
}

.card.black {
    color: #1F2937;
}

.card-back {
    background: var(--gradient-primary);
    color: white;
}

.score {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
}

.blackjack-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.game-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.blackjack-result {
    text-align: center;
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    min-height: 30px;
}

/* Roulette Styles */
.roulette-table {
    max-width: 900px;
    margin: 0 auto;
}

.roulette-wheel {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.wheel {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: conic-gradient(
        #DC2626 0deg 9.73deg,
        #1F2937 9.73deg 19.46deg,
        #DC2626 19.46deg 29.19deg,
        #1F2937 29.19deg 38.92deg,
        #DC2626 38.92deg 48.65deg,
        #1F2937 48.65deg 58.38deg,
        #DC2626 58.38deg 68.11deg,
        #1F2937 68.11deg 77.84deg,
        #DC2626 77.84deg 87.57deg,
        #1F2937 87.57deg 97.3deg,
        #DC2626 97.3deg 107.03deg,
        #1F2937 107.03deg 116.76deg,
        #DC2626 116.76deg 126.49deg,
        #1F2937 126.49deg 136.22deg,
        #DC2626 136.22deg 145.95deg,
        #1F2937 145.95deg 155.68deg,
        #DC2626 155.68deg 165.41deg,
        #1F2937 165.41deg 175.14deg,
        #DC2626 175.14deg 184.87deg,
        #1F2937 184.87deg 194.6deg,
        #DC2626 194.6deg 204.33deg,
        #1F2937 204.33deg 214.06deg,
        #DC2626 214.06deg 223.79deg,
        #1F2937 223.79deg 233.52deg,
        #DC2626 233.52deg 243.25deg,
        #1F2937 243.25deg 252.98deg,
        #DC2626 252.98deg 262.71deg,
        #1F2937 262.71deg 272.44deg,
        #DC2626 272.44deg 282.17deg,
        #1F2937 282.17deg 291.9deg,
        #DC2626 291.9deg 301.63deg,
        #1F2937 301.63deg 311.36deg,
        #DC2626 311.36deg 321.09deg,
        #1F2937 321.09deg 330.82deg,
        #DC2626 330.82deg 340.55deg,
        #1F2937 340.55deg 350.28deg,
        #DC2626 350.28deg 360deg
    );
    position: relative;
    border: 8px solid #8B4513;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.ball {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.wheel-numbers {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border-radius: 50%;
}

.wheel-numbers .number {
    position: absolute;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

/* Betting Area */
.betting-area {
    background: var(--darker-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    -webkit-overflow-scrolling: touch;
}

.betting-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.number-bets {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
}

.bet-number {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
    font-weight: 500;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.bet-number:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

.bet-number.bet {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.outside-bets {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bet-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.bet-option {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
    font-weight: 500;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.bet-option:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

.bet-option.bet {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.roulette-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.roulette-result {
    text-align: center;
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    min-height: 30px;
}

.betting-history {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--darker-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    -webkit-overflow-scrolling: touch;
}

.betting-history h4 {
    color: var(--text-light);
    margin-bottom: 1rem;
    text-align: center;
}

.history-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}

.history-item:last-child {
    border-bottom: none;
}

/* Animation Classes */
.spinning .reel {
    animation: spin 1s ease-in-out;
}

@keyframes spin {
    0% { transform: translateY(0); }
    50% { transform: translateY(-200px); }
    100% { transform: translateY(0); }
}

.roulette-spinning .wheel {
    animation: rotate 3s ease-out;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(1800deg); }
}

.card-deal {
    animation: dealCard 0.5s ease-out;
}

@keyframes dealCard {
    0% {
        transform: translateY(-100px) rotate(-10deg);
        opacity: 0;
    }
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
}

/* Responsive Design */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .games-header {
        padding: 110px 0 70px;
    }
    
    .games-header h1 {
        font-size: 2.8rem;
    }
    
    .game-header h2 {
        font-size: 2.3rem;
    }
    
    .slot-machine {
        max-width: 550px;
    }
    
    .blackjack-table {
        max-width: 750px;
    }
    
    .roulette-table {
        max-width: 850px;
    }
    
    .betting-grid {
        gap: 1.5rem;
    }
    
    .number-bets {
        grid-template-columns: repeat(6, 1fr);
        gap: 4px;
    }
    
    .wheel {
        width: 280px;
        height: 280px;
    }
    
    .wheel-numbers {
        width: 260px;
        height: 260px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .games-header {
        padding: 100px 0 60px;
    }
    
    .games-header h1 {
        font-size: 2.2rem;
    }
    
    .games-header p {
        font-size: 1.1rem;
    }
    
    .games-main {
        padding: 60px 0;
    }
    
    .game-section {
        margin-bottom: 60px;
        padding: 30px 0;
    }
    
    .game-header h2 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .game-header p {
        font-size: 1rem;
    }
    
    .game-container {
        padding: 1.5rem;
    }
    
    .slot-machine {
        max-width: 500px;
    }
    
    .slot-display {
        gap: 8px;
        padding: 15px;
        margin-bottom: 1.5rem;
    }
    
    .reel {
        width: 70px;
        height: 90px;
    }
    
    .symbol {
        height: 90px;
        font-size: 2.2rem;
    }
    
    .slot-controls {
        gap: 0.8rem;
    }
    
    .balance {
        font-size: 1.1rem;
    }
    
    .bet-controls {
        gap: 0.8rem;
    }
    
    .btn-spin {
        font-size: 1.1rem;
        padding: 12px 24px;
        min-width: 100px;
    }
    
    .slot-result {
        font-size: 1rem;
        margin-top: 0.8rem;
    }
    
    .blackjack-table {
        max-width: 700px;
    }
    
    .dealer-area,
    .player-area {
        padding: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .dealer-area h3,
    .player-area h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .cards {
        gap: 8px;
        min-height: 100px;
        margin-bottom: 0.8rem;
    }
    
    .card {
        width: 55px;
        height: 82px;
        font-size: 0.8rem;
    }
    
    .score {
        font-size: 1.1rem;
    }
    
    .blackjack-controls {
        gap: 0.8rem;
    }
    
    .game-buttons {
        gap: 0.8rem;
        flex-wrap: wrap;
    }
    
    .game-buttons .btn {
        font-size: 0.95rem;
        padding: 10px 20px;
        min-width: 80px;
    }
    
    .blackjack-result {
        font-size: 1.1rem;
        margin-top: 0.8rem;
    }
    
    .roulette-table {
        max-width: 700px;
    }
    
    .roulette-wheel {
        margin-bottom: 1.5rem;
    }
    
    .wheel {
        width: 250px;
        height: 250px;
    }
    
    .wheel-numbers {
        width: 230px;
        height: 230px;
    }
    
    .ball {
        width: 18px;
        height: 18px;
    }
    
    .betting-area {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .betting-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .number-bets {
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
    }
    
    .bet-number {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    .outside-bets {
        gap: 0.8rem;
    }
    
    .bet-section {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .bet-option {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .roulette-controls {
        gap: 0.8rem;
    }
    
    .roulette-result {
        font-size: 1.1rem;
        margin-top: 0.8rem;
    }
    
    .betting-history {
        margin-top: 0.8rem;
        padding: 0.8rem;
    }
    
    .betting-history h4 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .history-item {
        padding: 0.4rem;
        font-size: 0.9rem;
    }
}

/* Mobile Devices */
@media (max-width: 480px) {
    .games-header {
        padding: 80px 0 50px;
    }
    
    .games-header h1 {
        font-size: 1.8rem;
    }
    
    .games-header p {
        font-size: 1rem;
    }
    
    .games-main {
        padding: 40px 0;
    }
    
    .game-section {
        margin-bottom: 40px;
        padding: 20px 0;
    }
    
    .game-header h2 {
        font-size: 1.6rem;
        margin-bottom: 0.6rem;
    }
    
    .game-header p {
        font-size: 0.95rem;
    }
    
    .game-container {
        padding: 1rem;
    }
    
    .slot-machine {
        max-width: 100%;
    }
    
    .slot-display {
        gap: 5px;
        padding: 12px;
        margin-bottom: 1.2rem;
    }
    
    .reel {
        width: 60px;
        height: 75px;
    }
    
    .symbol {
        height: 75px;
        font-size: 1.8rem;
    }
    
    .slot-controls {
        gap: 0.6rem;
    }
    
    .balance {
        font-size: 1rem;
    }
    
    .bet-controls {
        gap: 0.6rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .bet-controls span {
        font-size: 0.9rem;
    }
    
    .btn-spin {
        font-size: 1rem;
        padding: 10px 20px;
        min-width: 90px;
        width: 100%;
        max-width: 150px;
    }
    
    .slot-result {
        font-size: 0.95rem;
        margin-top: 0.6rem;
    }
    
    .blackjack-table {
        max-width: 100%;
    }
    
    .dealer-area,
    .player-area {
        padding: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .dealer-area h3,
    .player-area h3 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }
    
    .cards {
        gap: 6px;
        min-height: 90px;
        margin-bottom: 0.6rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .card {
        width: 50px;
        height: 75px;
        font-size: 0.75rem;
    }
    
    .score {
        font-size: 1rem;
    }
    
    .blackjack-controls {
        gap: 0.6rem;
    }
    
    .game-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
        width: 100%;
    }
    
    .game-buttons .btn {
        font-size: 0.9rem;
        padding: 8px 16px;
        min-width: 120px;
        width: 100%;
        max-width: 200px;
    }
    
    .blackjack-result {
        font-size: 1rem;
        margin-top: 0.6rem;
    }
    
    .roulette-table {
        max-width: 100%;
    }
    
    .roulette-wheel {
        margin-bottom: 1.2rem;
    }
    
    .wheel {
        width: 200px;
        height: 200px;
    }
    
    .wheel-numbers {
        width: 180px;
        height: 180px;
    }
    
    .wheel-numbers .number {
        width: 25px;
        height: 25px;
        font-size: 0.7rem;
    }
    
    .ball {
        width: 16px;
        height: 16px;
    }
    
    .betting-area {
        padding: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .betting-grid {
        gap: 1.2rem;
    }
    
    .number-bets {
        grid-template-columns: repeat(4, 1fr);
        gap: 3px;
    }
    
    .bet-number {
        padding: 6px;
        font-size: 0.8rem;
    }
    
    .outside-bets {
        gap: 0.6rem;
    }
    
    .bet-section {
        gap: 6px;
    }
    
    .bet-option {
        padding: 10px;
        font-size: 0.8rem;
    }
    
    .roulette-controls {
        gap: 0.6rem;
    }
    
    .roulette-result {
        font-size: 1rem;
        margin-top: 0.6rem;
    }
    
    .betting-history {
        margin-top: 0.6rem;
        padding: 0.6rem;
    }
    
    .betting-history h4 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .history-item {
        padding: 0.3rem;
        font-size: 0.8rem;
    }
}

/* Extra Small Devices */
@media (max-width: 320px) {
    .games-header {
        padding: 70px 0 40px;
    }
    
    .games-header h1 {
        font-size: 1.6rem;
    }
    
    .games-header p {
        font-size: 0.95rem;
    }
    
    .game-header h2 {
        font-size: 1.4rem;
    }
    
    .game-header p {
        font-size: 0.9rem;
    }
    
    .game-container {
        padding: 0.8rem;
    }
    
    .slot-display {
        gap: 3px;
        padding: 10px;
    }
    
    .reel {
        width: 50px;
        height: 65px;
    }
    
    .symbol {
        height: 65px;
        font-size: 1.5rem;
    }
    
    .balance {
        font-size: 0.95rem;
    }
    
    .bet-controls span {
        font-size: 0.85rem;
    }
    
    .btn-spin {
        font-size: 0.95rem;
        padding: 8px 16px;
    }
    
    .slot-result {
        font-size: 0.9rem;
    }
    
    .dealer-area,
    .player-area {
        padding: 0.8rem;
    }
    
    .dealer-area h3,
    .player-area h3 {
        font-size: 1.1rem;
    }
    
    .cards {
        gap: 4px;
        min-height: 80px;
    }
    
    .card {
        width: 45px;
        height: 68px;
        font-size: 0.7rem;
    }
    
    .score {
        font-size: 0.95rem;
    }
    
    .game-buttons .btn {
        font-size: 0.85rem;
        padding: 6px 12px;
        min-width: 100px;
    }
    
    .blackjack-result {
        font-size: 0.95rem;
    }
    
    .wheel {
        width: 180px;
        height: 180px;
    }
    
    .wheel-numbers {
        width: 160px;
        height: 160px;
    }
    
    .wheel-numbers .number {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
    }
    
    .ball {
        width: 14px;
        height: 14px;
    }
    
    .betting-area {
        padding: 0.8rem;
    }
    
    .number-bets {
        grid-template-columns: repeat(3, 1fr);
        gap: 2px;
    }
    
    .bet-number {
        padding: 5px;
        font-size: 0.75rem;
    }
    
    .bet-option {
        padding: 8px;
        font-size: 0.75rem;
    }
    
    .roulette-result {
        font-size: 0.95rem;
    }
    
    .betting-history {
        padding: 0.5rem;
    }
    
    .betting-history h4 {
        font-size: 0.95rem;
    }
    
    .history-item {
        padding: 0.25rem;
        font-size: 0.75rem;
    }
}
