/* Coin Flip Game Styles */

/* Use the same casino section styling as spins */
.casino-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
    padding: 120px 0 50px;
    position: relative;
    overflow: hidden;
}

.casino-header {
    text-align: center;
    margin-bottom: 40px;
}

.casino-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(78, 205, 196, 0.8);
}

.casino-title .giga {
    color: #4ecdc4;
    text-shadow: 0 0 30px #4ecdc4;
}

.casino-title .cock {
    color: #ff6b6b;
    text-shadow: 0 0 30px #ff6b6b;
}

.casino-title .subtitle {
    font-size: 1.2rem;
    color: #ffd700;
    margin-top: 10px;
    animation: casino-glow 2s ease-in-out infinite alternate;
}

@keyframes casino-glow {
    from { text-shadow: 0 0 20px #ffd700; }
    to { text-shadow: 0 0 30px #ffd700, 0 0 40px #ffd700; }
}

.casino-description {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}

.game-container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(78, 205, 196, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Balance Container */
.balance-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.balance-item {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 15px;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    min-width: 200px;
}

.balance-label {
    font-weight: 600;
    color: #ccc;
    font-size: 0.9rem;
    text-align: center;
}

.balance-value {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: #ffd700;
    font-size: 1.5rem;
}

/* Coin Container */
.coin-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    perspective: 1000px;
}

.coin {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.coin.flipping {
    animation: coinFlip 2s ease-in-out;
}

@keyframes coinFlip {
    0% { transform: rotateY(0deg) rotateX(0deg); }
    25% { transform: rotateY(450deg) rotateX(180deg) scale(1.1); }
    50% { transform: rotateY(900deg) rotateX(360deg) scale(1.2); }
    75% { transform: rotateY(1350deg) rotateX(540deg) scale(1.1); }
    100% { transform: rotateY(1800deg) rotateX(720deg) scale(1); }
}

.coin-side {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    border: 5px solid #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.gigacock-side {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    transform: rotateY(0deg);
}

.pls-side {
    background: linear-gradient(135deg, #4834d4, #686de0);
    transform: rotateY(180deg);
}

.coin-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.coin-label {
    font-size: 1rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Betting Section */
.betting-section {
    text-align: center;
    margin: 40px 0;
}

.betting-section h3 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-family: 'Orbitron', monospace;
}

.bet-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.bet-btn {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 150px;
    font-family: 'Orbitron', monospace;
}

.bet-btn:hover {
    border-color: #ffd700;
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.bet-btn.selected {
    border-color: #ffd700;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.bet-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

/* Casino Controls */
.casino-controls {
    text-align: center;
    margin: 40px 0;
}

.casino-btn {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    margin: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    font-family: 'Orbitron', monospace;
}

.casino-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.casino-btn:disabled {
    background: #666;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
}

.sound-btn {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
    font-size: 0.9rem !important;
    padding: 10px 20px !important;
}

.insert-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    font-family: 'Orbitron', monospace;
}

.insert-status.success {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 2px solid #28a745;
}

.insert-status.error {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 2px solid #dc3545;
}

/* Result Display */
.result-display {
    text-align: center;
    margin: 30px 0;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-message {
    padding: 20px;
    border-radius: 15px;
    font-size: 1.3rem;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 215, 0, 0.3);
    color: #ccc;
    font-family: 'Orbitron', monospace;
}

.result-message.win {
    background: rgba(40, 167, 69, 0.3);
    border-color: #28a745;
    color: #28a745;
    animation: winPulse 1s ease-in-out;
}

.result-message.lose {
    background: rgba(220, 53, 69, 0.3);
    border-color: #dc3545;
    color: #dc3545;
}

@keyframes winPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 2rem;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 5px;
}

.stat-label {
    color: #ccc;
    font-size: 0.9rem;
}

/* Info Section */
.info-section {
    margin-top: 50px;
}

.info-title {
    text-align: center;
    color: #ffd700;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-family: 'Orbitron', monospace;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-card {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.info-content h3 {
    color: #ffd700;
    margin-bottom: 10px;
    font-family: 'Orbitron', monospace;
}

.info-content p {
    color: #ccc;
    line-height: 1.6;
}

/* Sound Indicator */
.sound-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 20px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border: 2px solid #ffd700;
}

.sound-indicator.show {
    opacity: 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .casino-title {
        font-size: 2rem;
    }
    
    .balance-container {
        flex-direction: column;
        align-items: center;
    }
    
    .coin {
        width: 150px;
        height: 150px;
    }
    
    .coin-image {
        width: 90px;
        height: 90px;
    }
    
    .bet-options {
        gap: 20px;
    }
    
    .bet-btn {
        min-width: 120px;
        padding: 15px;
    }
    
    .bet-icon {
        width: 50px;
        height: 50px;
    }
    
    .casino-btn {
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    .game-container {
        padding: 20px;
        margin: 0 10px;
    }
}
