/* Roulette Page Styles */

/* Roulette strip square styling - matches bet card design */
.roulette-square {
    /* Reusing Bootstrap's rounded and bg-dark with opacity */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    margin: 0.25rem; /* m-1 */
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    /* NO transition on the squares themselves to prevent conflicts with JS animation */
}

/* Strip square image styling */
.roulette-square img {
    width: 45px;
    height: 45px;
    opacity: 1.0;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
}

/* Strip square icon styling */
.roulette-square i {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}

/* Animation class for rolling - ensures hardware acceleration */
.roulette-rolling {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    /* Prevent any default transitions that might conflict */
    transition: none !important;
}

/* Strip container - transitions controlled by JavaScript */
#rouletteStrip {
    display: flex;
    align-items: center;
    height: 100%;
    -webkit-font-smoothing: antialiased;
    /* NO !important here - let JavaScript control transitions */
    transition: none;
    /* Hardware acceleration */
    transform: translateZ(0);
    will-change: transform;
}

/* History circle styling - also matches bet card design */
.roulette-history-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.roulette-history-circle img {
    width: 20px;
    height: 20px;
    opacity: 1.0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.roulette-history-circle i {
    font-size: 0.75rem;
}

/* ============================================
   Betting Field Styles
   ============================================ */

/* Timer bar */
.roulette-timer {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
}

.roulette-timer.is-betting {
    border-color: rgba(40, 167, 69, 0.5);
    background: rgba(40, 167, 69, 0.15);
}

.roulette-timer.is-rolling {
    border-color: rgba(255, 193, 7, 0.5);
    background: rgba(255, 193, 7, 0.15);
}

.roulette-timer.is-completed {
    border-color: rgba(255, 193, 7, 0.5);
    background: rgba(255, 193, 7, 0.15);
}

/* Bet amount controls card */
.roulette-controls {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
}

.roulette-controls__input {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.roulette-controls__input:focus {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1);
}

.roulette-controls__addon {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.roulette-controls__quick-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease-in-out;
}

.roulette-controls__quick-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-1px);
}

/* Bet card — base glass effect */
.roulette-bet-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    height: 100%;
}

.roulette-bet-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Bet card team variants */
.roulette-bet-card--t {
    border-color: rgba(255, 193, 7, 0.3);
    background: rgba(255, 193, 7, 0.06);
}

.roulette-bet-card--t:hover {
    border-color: rgba(255, 193, 7, 0.5);
}

.roulette-bet-card--ct {
    border-color: rgba(13, 202, 240, 0.3);
    background: rgba(13, 202, 240, 0.06);
}

.roulette-bet-card--ct:hover {
    border-color: rgba(13, 202, 240, 0.5);
}

.roulette-bet-card--jackpot {
    border-color: rgba(40, 167, 69, 0.3);
    background: rgba(40, 167, 69, 0.06);
}

.roulette-bet-card--jackpot:hover {
    border-color: rgba(40, 167, 69, 0.5);
}

.roulette-bet-card__body {
    padding: 1.5rem;
}

/* Team header section */
.roulette-bet-card__header {
    text-align: center;
    margin-bottom: 1rem;
}

.roulette-bet-card__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 0.5rem;
}

.roulette-bet-card__title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.roulette-bet-card__multiplier {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

.roulette-bet-card--t .roulette-bet-card__multiplier {
    background: rgba(255, 193, 7, 0.25);
    color: #ffc107;
}

.roulette-bet-card--ct .roulette-bet-card__multiplier {
    background: rgba(13, 202, 240, 0.25);
    color: #0dcaf0;
}

.roulette-bet-card--jackpot .roulette-bet-card__multiplier {
    background: rgba(40, 167, 69, 0.25);
    color: #28a745;
}

/* Bet button */
.roulette-bet-button {
    width: 100%;
    font-weight: 700;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.roulette-bet-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Locked state when betting is closed */
.roulette-bet-locked {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Bet list */
.roulette-bet-list {
    margin-top: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
}

.roulette-bet-list__label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.roulette-bet-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    margin-bottom: 0.25rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease-in-out;
}

.roulette-bet-row:hover {
    background: rgba(0, 0, 0, 0.45);
}

.roulette-bet-row__avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.roulette-bet-row__name {
    color: #fff;
    font-size: 0.875rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.roulette-bet-row__amount {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
}

.roulette-bet-row__jewel {
    width: 16px;
    height: 16px;
}

/* Game rules card */
.roulette-rules {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
}

.roulette-rules__title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.roulette-rules__list {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.roulette-rules__list li {
    margin-bottom: 0.25rem;
}

