/* Table Styles - Vegas High Stakes VIP Poker Table */

/* ============================================
   TABLE WRAPPER - 3D Perspective Container
   ============================================ */
#game-table {
    position: relative;
    width: 100%;
    max-width: 700px;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -10px auto 0 auto;

    /* 3D Perspective for depth */
    perspective: 1500px;
    perspective-origin: 50% 25%;
}

/* ============================================
   AMBIENT DUST PARTICLES - Atmospheric Effect
   ============================================ */
.ambient-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.dust-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, rgba(255, 248, 220, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: floatDust 20s infinite ease-in-out;
}

.dust-particle:nth-child(1) {
    left: 15%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.dust-particle:nth-child(2) {
    left: 35%;
    top: 60%;
    animation-delay: 3s;
    animation-duration: 22s;
}

.dust-particle:nth-child(3) {
    left: 55%;
    top: 30%;
    animation-delay: 6s;
    animation-duration: 19s;
}

.dust-particle:nth-child(4) {
    left: 75%;
    top: 50%;
    animation-delay: 9s;
    animation-duration: 21s;
}

.dust-particle:nth-child(5) {
    left: 25%;
    top: 40%;
    animation-delay: 12s;
    animation-duration: 20s;
}

.dust-particle:nth-child(6) {
    left: 65%;
    top: 70%;
    animation-delay: 15s;
    animation-duration: 23s;
}

.dust-particle:nth-child(7) {
    left: 45%;
    top: 15%;
    animation-delay: 4s;
    animation-duration: 17s;
}

.dust-particle:nth-child(8) {
    left: 85%;
    top: 35%;
    animation-delay: 8s;
    animation-duration: 24s;
}

@keyframes floatDust {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) scale(0.5);
    }
    10% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.6;
        transform: translateY(-30px) translateX(15px) scale(1);
    }
    90% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) translateX(-10px) scale(0.5);
    }
}

/* Floor reflection */
#game-table::after {
    content: '';
    position: absolute;
    bottom: -80%;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 80%;
    background: radial-gradient(ellipse at 50% 0%,
        rgba(20, 138, 69, 0.08) 0%,
        transparent 60%);
    pointer-events: none;
    filter: blur(30px);
    z-index: var(--z-bg);
}

/* ============================================
   TABLE FELT - Premium Playing Surface
   ============================================ */
.table-felt {
    position: relative;
    width: 90%;
    height: 82%;
    border-radius: 50%;

    /* 3D Transform - Subtle tilt */
    transform: rotateX(12deg);
    transform-style: preserve-3d;

    /* Premium Baize Felt with spotlight */
    background:
        /* Fabric texture overlay */
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E"),
        /* Soft center spotlight */
        radial-gradient(ellipse 60% 50% at 50% 40%,
            rgba(255, 255, 255, 0.06) 0%,
            transparent 60%),
        /* Rich green felt gradient */
        radial-gradient(ellipse 130% 130% at 50% 35%,
            #159947 0%,
            #128840 15%,
            #0f7538 30%,
            #0c6230 50%,
            #094f28 70%,
            #073c1f 90%,
            #052d17 100%);

    /* Multi-layer shadows for incredible depth */
    box-shadow:
        /* Deep vignette around edges */
        inset 0 0 120px 40px rgba(0, 0, 0, 0.6),
        inset 0 0 60px rgba(0, 0, 0, 0.4),
        inset 0 20px 60px rgba(0, 0, 0, 0.4),
        /* Subtle warm highlight in center */
        inset 0 -20px 60px rgba(255, 240, 180, 0.04),
        /* Dramatic table shadow */
        0 30px 60px rgba(0, 0, 0, 0.8),
        0 50px 100px rgba(0, 0, 0, 0.6),
        0 80px 150px rgba(0, 0, 0, 0.4);
}

/* Mahogany Wood Rail */
.table-felt::before {
    content: '';
    position: absolute;
    inset: -26px;
    border-radius: 50%;
    background:
        /* Wood grain texture */
        repeating-linear-gradient(
            85deg,
            transparent 0px,
            transparent 2px,
            rgba(0, 0, 0, 0.08) 2px,
            rgba(0, 0, 0, 0.08) 3px
        ),
        /* Rich mahogany gradient */
        linear-gradient(180deg,
            #a06840 0%,
            #8b5232 8%,
            #6b3a20 20%,
            #5a2e18 35%,
            #4a2410 50%,
            #5a2e18 65%,
            #6b3a20 80%,
            #8b5232 92%,
            #a06840 100%);
    z-index: -1;

    /* Wood rail 3D bevel */
    box-shadow:
        inset 0 8px 20px rgba(255, 255, 255, 0.25),
        inset 0 -8px 20px rgba(0, 0, 0, 0.5),
        inset 8px 0 15px rgba(0, 0, 0, 0.25),
        inset -8px 0 15px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(0, 0, 0, 0.5);
}

/* Inner Brass/Gold Rail Trim */
.table-felt::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 5px solid transparent;
    background:
        linear-gradient(180deg,
            #ffd700 0%,
            #daa520 15%,
            #b8860b 30%,
            #8b6914 50%,
            #b8860b 70%,
            #daa520 85%,
            #ffd700 100%) border-box;
    -webkit-mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 1;
    pointer-events: none;

    /* Gold shine effect */
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.6),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(255, 215, 0, 0.4),
        0 0 30px rgba(255, 215, 0, 0.2);
}

/* ============================================
   TABLE CENTER - Pot Area with Logo
   ============================================ */
.table-center {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    z-index: var(--z-chips);
}

/* Elegant embossed table logo - subtle diamond pattern */
.table-center::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 80px;
    background:
        /* Diamond shape */
        linear-gradient(135deg, transparent 40%, rgba(255, 215, 0, 0.06) 50%, transparent 60%),
        linear-gradient(-135deg, transparent 40%, rgba(255, 215, 0, 0.06) 50%, transparent 60%),
        /* Inner glow */
        radial-gradient(ellipse at center, rgba(255, 215, 0, 0.04) 0%, transparent 70%);
    border: 1px solid rgba(255, 215, 0, 0.08);
    border-radius: 8px;
    pointer-events: none;
    z-index: -1;
    /* Embossed effect */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        0 0 30px rgba(255, 215, 0, 0.03);
}

/* Dealer position indicator */
.table-center::after {
    content: '';
    position: absolute;
    top: -60px;
    width: 60px;
    height: 30px;
    background:
        radial-gradient(ellipse at center bottom, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    border-left: 1px solid rgba(255, 215, 0, 0.05);
    border-right: 1px solid rgba(255, 215, 0, 0.05);
    border-radius: 30px 30px 0 0;
    pointer-events: none;
}

/* ============================================
   PLAYER SEATS - VIP Style Cards
   ============================================ */
.player-seat {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 12px;
    min-width: 120px;
    z-index: var(--z-players);

    /* Premium dark glass effect */
    background: linear-gradient(145deg,
        rgba(25, 12, 18, 0.95) 0%,
        rgba(15, 8, 12, 0.92) 50%,
        rgba(10, 5, 8, 0.95) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(15px);

    /* Elegant shadow */
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 1px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);

    transition: all var(--transition-normal);
}

.player-seat:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 215, 0, 0.35);
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.player-seat.active {
    border-color: var(--gold-primary);
    background: linear-gradient(145deg,
        rgba(40, 25, 15, 0.95) 0%,
        rgba(25, 15, 10, 0.92) 50%,
        rgba(15, 8, 5, 0.95) 100%);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.5),
        0 0 80px rgba(255, 215, 0, 0.2),
        inset 0 0 30px rgba(255, 215, 0, 0.05);
    animation: vipActivePulse 2s ease-in-out infinite;
}

/* Active player - no spotlight, just the border glow from vipActivePulse */

@keyframes vipActivePulse {
    0%, 100% {
        box-shadow:
            0 10px 40px rgba(0, 0, 0, 0.5),
            0 0 40px rgba(255, 215, 0, 0.5),
            0 0 80px rgba(255, 215, 0, 0.2),
            inset 0 0 30px rgba(255, 215, 0, 0.05);
    }
    50% {
        box-shadow:
            0 10px 40px rgba(0, 0, 0, 0.5),
            0 0 60px rgba(255, 215, 0, 0.7),
            0 0 100px rgba(255, 215, 0, 0.3),
            inset 0 0 40px rgba(255, 215, 0, 0.08);
    }
}

.player-seat.folded {
    opacity: 0.35;
    filter: grayscale(60%) brightness(0.7);
    border-color: rgba(100, 100, 100, 0.2);
}

.player-seat.winner {
    border-color: var(--gold-light);
    animation: vipWinnerGlow 0.6s ease-in-out infinite alternate;
}

@keyframes vipWinnerGlow {
    0% {
        transform: scale(1);
        box-shadow:
            0 10px 40px rgba(0, 0, 0, 0.5),
            0 0 50px rgba(255, 215, 0, 0.7),
            0 0 100px rgba(255, 215, 0, 0.4);
    }
    100% {
        transform: scale(1.03);
        box-shadow:
            0 15px 50px rgba(0, 0, 0, 0.5),
            0 0 80px rgba(255, 215, 0, 0.9),
            0 0 150px rgba(255, 215, 0, 0.5);
    }
}

/* ============================================
   SEAT POSITIONS
   ============================================ */
.player-seat[data-position="bottom"] {
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
}

.player-seat[data-position="bottom"]:hover,
.player-seat[data-position="bottom"].active {
    transform: translateX(-50%) translateY(-3px) scale(1.02);
}

.player-seat[data-position="left"] {
    left: -95px;
    top: 50%;
    transform: translateY(-50%);
}

.player-seat[data-position="left"]:hover,
.player-seat[data-position="left"].active {
    transform: translateY(-50%) translateX(3px) scale(1.02);
}

.player-seat[data-position="top"] {
    top: -65px;
    left: 50%;
    transform: translateX(-50%);
}

.player-seat[data-position="top"]:hover,
.player-seat[data-position="top"].active {
    transform: translateX(-50%) translateY(3px) scale(1.02);
}

.player-seat[data-position="right"] {
    right: -95px;
    top: 50%;
    transform: translateY(-50%);
}

.player-seat[data-position="right"]:hover,
.player-seat[data-position="right"].active {
    transform: translateY(-50%) translateX(-3px) scale(1.02);
}

/* ============================================
   PLAYER INFO DISPLAY
   ============================================ */
.player-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.player-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.5px;
}

.player-chips {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--gold-light);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.chip-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: var(--gold-gradient);
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.4);
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.5),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.4);
}

/* ============================================
   PLAYER CARDS CONTAINER
   ============================================ */
.player-cards {
    display: flex;
    gap: 4px;
    height: 70px;
    min-height: 70px;
    perspective: 1000px;
    justify-content: center;
    align-items: flex-start;
    padding-top: 0;
}

/* ============================================
   PLAYER STATUS BADGES - Icon Style
   ============================================ */
.player-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6rem;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* Status icon container */
.status-icon {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}

.player-status.blind {
    background: linear-gradient(135deg,
        rgba(30, 60, 120, 0.9) 0%,
        rgba(20, 45, 90, 0.9) 100%);
    color: #88c8ff;
    border: 1px solid rgba(100, 150, 220, 0.4);
    box-shadow:
        0 2px 8px rgba(30, 100, 180, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.player-status.blind .status-icon::before {
    content: '◐';
    font-size: 0.7rem;
}

.player-status.seen {
    background: linear-gradient(135deg,
        rgba(20, 100, 40, 0.9) 0%,
        rgba(15, 75, 30, 0.9) 100%);
    color: #88ff88;
    border: 1px solid rgba(100, 200, 100, 0.4);
    box-shadow:
        0 2px 8px rgba(40, 150, 60, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.player-status.seen .status-icon::before {
    content: '👁';
    font-size: 0.6rem;
}

.player-status.folded {
    background: linear-gradient(135deg,
        rgba(80, 30, 30, 0.9) 0%,
        rgba(50, 20, 20, 0.9) 100%);
    color: #ff9999;
    border: 1px solid rgba(180, 80, 80, 0.4);
    box-shadow:
        0 2px 8px rgba(120, 40, 40, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.player-status.folded .status-icon::before {
    content: '✕';
    font-size: 0.55rem;
}

.player-status.all_in {
    background: linear-gradient(135deg,
        rgba(180, 100, 20, 0.95) 0%,
        rgba(140, 70, 10, 0.95) 100%);
    color: #ffd700;
    border: 1px solid rgba(255, 200, 50, 0.5);
    box-shadow:
        0 2px 10px rgba(200, 130, 30, 0.4),
        0 0 15px rgba(255, 200, 50, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    animation: allInPulse 1s ease-in-out infinite;
}

.player-status.all_in .status-icon::before {
    content: '🔥';
    font-size: 0.6rem;
}

@keyframes allInPulse {
    0%, 100% {
        box-shadow:
            0 2px 10px rgba(200, 130, 30, 0.4),
            0 0 15px rgba(255, 200, 50, 0.2);
    }
    50% {
        box-shadow:
            0 2px 12px rgba(200, 130, 30, 0.6),
            0 0 25px rgba(255, 200, 50, 0.4);
    }
}

/* Blind limit warning - player running out of blind rounds */
.player-status.warning {
    background: linear-gradient(135deg,
        rgba(180, 100, 20, 0.95) 0%,
        rgba(140, 70, 10, 0.95) 100%);
    color: #ffe066;
    border: 1px solid rgba(255, 200, 80, 0.5);
    box-shadow:
        0 2px 10px rgba(200, 120, 20, 0.4),
        0 0 15px rgba(255, 180, 50, 0.3);
    animation: warningPulse 1.5s ease-in-out infinite;
}

/* All-In status - dramatic red/gold styling */
.player-status.all-in {
    background: linear-gradient(135deg,
        rgba(180, 40, 40, 0.95) 0%,
        rgba(220, 60, 20, 0.95) 50%,
        rgba(180, 40, 40, 0.95) 100%);
    color: #ffd700;
    border: 2px solid rgba(255, 215, 0, 0.6);
    box-shadow:
        0 2px 15px rgba(220, 60, 20, 0.5),
        0 0 20px rgba(255, 215, 0, 0.4),
        inset 0 0 10px rgba(255, 215, 0, 0.2);
    animation: allInPulse 1s ease-in-out infinite;
    font-weight: 800;
    letter-spacing: 2px;
}

.player-seat.all-in {
    transform: scale(1.02);
}

@keyframes allInPulse {
    0%, 100% {
        box-shadow:
            0 2px 15px rgba(220, 60, 20, 0.5),
            0 0 20px rgba(255, 215, 0, 0.4),
            inset 0 0 10px rgba(255, 215, 0, 0.2);
    }
    50% {
        box-shadow:
            0 2px 20px rgba(220, 60, 20, 0.7),
            0 0 30px rgba(255, 215, 0, 0.6),
            inset 0 0 15px rgba(255, 215, 0, 0.3);
    }
}

@keyframes warningPulse {
    0%, 100% {
        box-shadow:
            0 2px 10px rgba(200, 120, 20, 0.4),
            0 0 15px rgba(255, 180, 50, 0.3);
    }
    50% {
        box-shadow:
            0 2px 15px rgba(200, 120, 20, 0.6),
            0 0 25px rgba(255, 180, 50, 0.5);
    }
}

/* ============================================
   PLAYER BET DISPLAY
   ============================================ */
.player-bet {
    position: absolute;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--gold-light);
    background: linear-gradient(145deg,
        rgba(25, 12, 18, 0.98) 0%,
        rgba(15, 8, 12, 0.98) 100%);
    padding: 5px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 215, 0, 0.4);
    opacity: 0;
    transition: opacity var(--transition-fast);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 215, 0, 0.1);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.player-bet.visible {
    opacity: 1;
}

.player-seat[data-position="bottom"] .player-bet { top: -35px; }
.player-seat[data-position="top"] .player-bet { bottom: -35px; }
.player-seat[data-position="left"] .player-bet { right: -70px; }
.player-seat[data-position="right"] .player-bet { left: -70px; }

/* ============================================
   DEALER BUTTON - Premium 3D Gold
   ============================================ */
#dealer-button {
    position: absolute;
    width: 38px;
    height: 38px;
    background: var(--gold-gradient);
    color: var(--text-dark);
    font-weight: 900;
    font-size: 0.95rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-chips);

    /* Premium 3D effect */
    box-shadow:
        inset 0 4px 8px rgba(255, 255, 255, 0.5),
        inset 0 -4px 8px rgba(0, 0, 0, 0.25),
        0 6px 20px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.4),
        0 0 60px rgba(255, 215, 0, 0.2);

    border: 3px solid var(--gold-dark);
    transition: all var(--transition-normal);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

#dealer-button:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow:
        inset 0 4px 8px rgba(255, 255, 255, 0.5),
        inset 0 -4px 8px rgba(0, 0, 0, 0.25),
        0 10px 30px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(255, 215, 0, 0.6),
        0 0 100px rgba(255, 215, 0, 0.3);
}

/* ============================================
   HUMAN SEAT - VIP Player Highlight
   ============================================ */
.human-seat {
    border-color: rgba(255, 215, 0, 0.35);
    background: linear-gradient(145deg,
        rgba(35, 18, 12, 0.95) 0%,
        rgba(20, 10, 8, 0.92) 50%,
        rgba(12, 6, 4, 0.95) 100%);
}

.human-seat .player-name {
    color: var(--gold-light);
    text-shadow: var(--text-glow);
    letter-spacing: 1px;
}

.human-seat::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: calc(var(--radius-lg) + 3px);
    background: linear-gradient(135deg,
        var(--gold-primary),
        var(--gold-dark),
        var(--gold-primary));
    z-index: -1;
    opacity: 0.3;
    animation: humanGoldShimmer 3s ease-in-out infinite;
}

@keyframes humanGoldShimmer {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

/* VIP Badge for human player */
.human-seat::after {
    content: '★';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--text-dark);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(255, 215, 0, 0.4);
    border: 2px solid var(--gold-dark);
}
