/* 
 * Casino Specific Styles
 */

.text-gold { color: #facc15 !important; }
.text-white { color: #ffffff !important; }
.text-glow-gold { text-shadow: 0 0 15px rgba(250, 204, 21, 0.6); }

.bg-shape-casino {
    width: 600px;
    height: 600px;
    background: rgba(250, 204, 21, 0.15); /* Gold glow */
    top: -200px;
    right: -200px;
}
.bg-shape-casino-2 {
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    bottom: -100px;
    left: -100px;
}

.casino-hero {
    border: 1px solid rgba(250, 204, 21, 0.3);
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.05), rgba(0,0,0,0.6));
    margin-bottom: 3rem;
}

/* User Balance Badge in Nav */
.user-balance-badge {
    background: rgba(0,0,0,0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(250, 204, 21, 0.3);
    font-family: 'Outfit', sans-serif;
    margin-right: 1rem;
}

/* Casino Grid */
.casino-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.casino-card {
    border: 1px solid rgba(250, 204, 21, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.casino-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(250, 204, 21, 0.15);
    border-color: rgba(250, 204, 21, 0.5);
}

.casino-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.casino-card-body {
    padding: 1.5rem;
    text-align: center;
}

.entry-fee {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

.btn-gold {
    background: linear-gradient(90deg, #ca8a04, #facc15);
    color: #000;
    font-weight: 700;
    border: none;
}
.btn-gold:hover {
    background: linear-gradient(90deg, #facc15, #ca8a04);
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.5);
    color: #000;
}

/* Payment Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    max-width: 400px;
    width: 90%;
    padding: 2rem;
    border: 1px solid rgba(250, 204, 21, 0.4);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.fee-amount {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: #facc15;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Slot Machine Game UI */
#slot-game-container {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(250, 204, 21, 0.4);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 2rem;
}

.slot-machine-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.slot-display {
    display: flex;
    gap: 1rem;
    background: rgba(0,0,0,0.6);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #333;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.reel {
    width: 100px;
    height: 120px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    box-shadow: inset 0 5px 15px rgba(0,0,0,0.2);
    overflow: hidden;
    position: relative;
}

.reel.spinning {
    animation: spinReel 0.1s linear infinite;
}

@keyframes spinReel {
    0% { transform: translateY(-10%); }
    100% { transform: translateY(10%); }
}

.slot-controls {
    text-align: center;
}

.win-message {
    font-size: 1.5rem;
    font-weight: bold;
    min-height: 2rem;
    margin-bottom: 1rem;
    color: #facc15;
}

.btn-large {
    font-size: 1.5rem;
    padding: 1rem 3rem;
    border-radius: 50px;
    letter-spacing: 2px;
}

/* Roulette UI */
#roulette-game-container {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(250, 204, 21, 0.4);
}

.roulette-ui {
    padding: 2rem;
}

.roulette-display {
    background: rgba(0,0,0,0.6);
    border: 2px solid #333;
    border-radius: 15px;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.roulette-track-container {
    width: 100%;
    max-width: 600px;
    height: 100px;
    overflow: hidden;
    position: relative;
    border: 2px solid #facc15;
    border-radius: 8px;
    background: #111;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.2), inset 0 0 20px rgba(0,0,0,0.8);
}

.roulette-track-container::before,
.roulette-track-container::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 60px;
    z-index: 2;
}

.roulette-track-container::before {
    left: 0;
    background: linear-gradient(to right, #111, transparent);
}

.roulette-track-container::after {
    right: 0;
    background: linear-gradient(to left, #111, transparent);
}

.roulette-selector {
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 4px;
    background: #facc15;
    z-index: 3;
    transform: translateX(-50%);
    box-shadow: 0 0 10px #facc15;
}

.roulette-track {
    display: flex;
    height: 100%;
    width: max-content;
    transform: translateX(0);
}

.roulette-item {
    width: 80px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    border-right: 2px solid rgba(0,0,0,0.5);
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.bg-red { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.bet-black { background: linear-gradient(135deg, #374151, #111827); }
.bg-green { background: linear-gradient(135deg, #22c55e, #15803d); }

/* Floating Text Animation for Balance */
.floating-text {
    position: fixed;
    font-weight: 800;
    font-size: 1.2rem;
    z-index: 9999;
    pointer-events: none;
    transition: transform 1s ease-out, opacity 1s ease-out;
}

.text-success { color: #22c55e; text-shadow: 0 0 10px rgba(34, 197, 94, 0.6); }
.text-danger { color: #ef4444; text-shadow: 0 0 10px rgba(239, 68, 68, 0.6); }

.bet-options-container {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin: 0 auto;
    max-width: 600px;
}

.bet-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

@media (max-width: 600px) {
    .bet-options {
        flex-wrap: wrap;
    }
}

.bet-btn {
    flex: 1;
    min-width: 120px;
    padding: 1rem 0.5rem;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0,0,0,0.5), inset 0 2px 5px rgba(255,255,255,0.2);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bet-icon {
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.bet-title {
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.2rem;
}

.bet-multiplier {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    background: rgba(0,0,0,0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.bet-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-25deg);
    transition: all 0.5s;
}

.bet-btn:hover::before {
    left: 200%;
}

.bet-red { 
    background: linear-gradient(145deg, #ef4444, #991b1b); 
    color: white; 
    border-top: 2px solid #f87171;
}
.bet-black { 
    background: linear-gradient(145deg, #374151, #111827); 
    color: white; 
    border-top: 2px solid #6b7280;
}
.bet-green { 
    background: linear-gradient(145deg, #22c55e, #14532d); 
    color: white; 
    border-top: 2px solid #4ade80;
}

.bet-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 25px rgba(0,0,0,0.6), inset 0 2px 5px rgba(255,255,255,0.4);
}

.bet-btn.selected {
    border: 2px solid #facc15;
    box-shadow: 0 0 25px rgba(250, 204, 21, 0.8), inset 0 0 10px rgba(250, 204, 21, 0.4);
    transform: scale(1.1);
}

/* Enhanced Spin Button */
#spin-roulette-btn {
    background: linear-gradient(145deg, #facc15, #b45309);
    color: #fff;
    border: none;
    border-top: 2px solid #fde047;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    box-shadow: 0 10px 25px rgba(250, 204, 21, 0.4), inset 0 -3px 10px rgba(0,0,0,0.3);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

#spin-roulette-btn:not(:disabled) {
    animation: pulseGlow 2s infinite;
}

#spin-roulette-btn:disabled {
    background: linear-gradient(145deg, #6b7280, #374151);
    color: #9ca3af;
    border-top: 2px solid #9ca3af;
    box-shadow: none;
    animation: none;
    transform: none;
    cursor: not-allowed;
}

#spin-roulette-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(250, 204, 21, 0.6), inset 0 -3px 10px rgba(0,0,0,0.3);
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(250, 204, 21, 0); }
    100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0); }
}

/* Advanced Roulette Layout */
.roulette-layout {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 2rem;
}

.roulette-side-panel {
    flex: 1;
    background: rgba(0,0,0,0.4);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.roulette-main-panel {
    flex: 2;
}

@media (max-width: 992px) {
    .roulette-layout {
        flex-direction: column;
    }
}

/* Circular Wheel CSS */
.circular-wheel-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid #facc15;
    z-index: 10;
    filter: drop-shadow(0 0 5px rgba(250, 204, 21, 0.8));
}

.circular-wheel {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 8px solid #333;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    transition: transform 4s cubic-bezier(0.15, 0.85, 0.15, 1);
}

.circular-wheel-bg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: repeating-conic-gradient(#ef4444 0 9.72deg, #1f2937 9.72deg 19.45deg);
}

.circular-wheel-green {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#22c55e 0 9.72deg, transparent 9.72deg);
}

.circular-wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: #222;
    border-radius: 50%;
    border: 4px solid #facc15;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    z-index: 5;
    transition: all 0.3s ease;
}

/* Stats Panel */
.stat-box {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: rgba(255,255,255,0.05);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

/* Blackjack UI */
#blackjack-game-container {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(250, 204, 21, 0.4);
}

.table-area {
    background: radial-gradient(circle at center, #065f46, #064e3b);
    border: 6px solid #3f2a14;
    border-radius: 120px;
    padding: 3rem;
    position: relative;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8), 0 10px 30px rgba(0,0,0,0.5);
    margin: 0 auto;
}

.cards-container {
    display: flex;
    justify-content: center;
    min-height: 140px;
    gap: -30px; /* Overlap cards slightly */
    margin-top: 1rem;
}

.playing-card {
    width: 90px;
    height: 130px;
    background: #fff;
    border-radius: 8px;
    box-shadow: -2px 4px 8px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #111;
    border: 1px solid #ccc;
    position: relative;
    animation: dealAnim 0.3s ease-out;
    margin-left: -40px; /* Overlap */
    font-family: 'Arial', sans-serif;
}

.playing-card:first-child {
    margin-left: 0;
}

.playing-card.red-suit {
    color: #ef4444;
}

.card-center {
    font-size: 3rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.card-top-left {
    position: absolute;
    top: 5px;
    left: 8px;
    line-height: 1;
}

.card-bottom-right {
    position: absolute;
    bottom: 5px;
    right: 8px;
    transform: rotate(180deg);
    line-height: 1;
}

@keyframes dealAnim {
    from { opacity: 0; transform: translateY(-100px) scale(0.8) rotate(-10deg); }
    to { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}

.card-back {
    background: repeating-linear-gradient(45deg, #1e3a8a, #1e3a8a 10px, #1e40af 10px, #1e40af 20px);
    border: 4px solid #fff;
    color: transparent;
}
.card-back * {
    display: none;
}

.score-badge {
    background: rgba(0,0,0,0.6);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 1.2rem;
    margin-left: 10px;
    color: #facc15;
}
