/* 德州扑克桌面样式 - 6人圆桌布局 */

.poker-table-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 600px;
}

.poker-table {
    position: relative;
    width: 800px;
    height: 600px;
    background: 
        radial-gradient(ellipse 400px 300px at center, #2d5530 0%, #1a3d2e 70%);
    border-radius: 50%;
    border: 8px solid #8B4513;
    box-shadow: 
        inset 0 0 50px rgba(0, 0, 0, 0.3),
        0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 中心区域 */
.table-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pot-display {
    background: rgba(0, 0, 0, 0.6);
    padding: 15px 25px;
    border-radius: 25px;
    border: 2px solid #ffd700;
    text-align: center;
    backdrop-filter: blur(5px);
}

.pot-label {
    color: #ffd700;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.pot-amount-display {
    color: #ffd700;
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.community-cards {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

/* 庄家按钮 */
.dealer-button {
    position: absolute;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid #333;
    transition: all 0.3s ease;
}

/* 玩家席位布局 - 6人圆桌 */
.seat {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 140px;
    transition: all 0.3s ease;
}

/* 席位1 - 上方左侧 */
.seat-1 {
    top: 20px;
    left: 150px;
}

/* 席位2 - 上方右侧 */
.seat-2 {
    top: 20px;
    right: 150px;
}

/* 席位3 - 右侧 */
.seat-3 {
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
}

/* 席位4 - 下方右侧 */
.seat-4 {
    bottom: 20px;
    right: 150px;
}

/* 席位5 - 下方左侧 */
.seat-5 {
    bottom: 20px;
    left: 150px;
}

/* 席位6 - 左侧 (当前玩家) */
.seat-6 {
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
}

/* 玩家信息 */
.seat .player-info {
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 12px;
    border-radius: 12px;
    text-align: center;
    min-width: 120px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.seat .player-name {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.seat .player-chips {
    color: #4CAF50;
    font-weight: 500;
    font-size: 0.85rem;
}

.seat .player-status {
    color: #ffd700;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 3px;
    min-height: 16px;
}

/* 当前行动玩家高亮 */
.seat.active {
    transform: scale(1.05);
}

.seat.active .player-info {
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.seat.active .player-status {
    animation: pulse 1.5s infinite;
}

/* 已弃牌玩家 */
.seat.folded {
    opacity: 0.5;
}

.seat.folded .player-cards .card {
    filter: grayscale(100%);
}

/* 玩家手牌 */
.seat .player-cards {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.seat .card {
    width: 60px;
    height: 85px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    border: 2px solid #333;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.seat .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
}

.seat .card.red {
    color: #d32f2f;
}

.seat .card.black {
    color: #333;
}

.seat .card-back {
    background: linear-gradient(135deg, #1a237e, #3949ab);
    color: white;
    border-color: #1a237e;
}

.seat .card-back::after {
    content: '🂠';
    font-size: 1.5rem;
}

.seat .card-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    color: transparent;
}

/* 玩家下注金额 */
.seat .player-bet {
    background: rgba(255, 215, 0, 0.9);
    color: #333;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    min-width: 60px;
    text-align: center;
    border: 2px solid #333;
}

/* 当前玩家的手牌等级显示 */
.seat-6 .hand-rank {
    background: rgba(76, 175, 80, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 8px;
    min-height: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 庄家按钮位置调整 */
.dealer-button {
    transition: all 0.5s ease;
}

/* 根据庄家位置动态调整按钮位置 */
.dealer-at-1 .dealer-button { top: 60px; left: 220px; }
.dealer-at-2 .dealer-button { top: 60px; right: 220px; }
.dealer-at-3 .dealer-button { top: 45%; right: 50px; }
.dealer-at-4 .dealer-button { bottom: 60px; right: 220px; }
.dealer-at-5 .dealer-button { bottom: 60px; left: 220px; }
.dealer-at-6 .dealer-button { top: 45%; left: 50px; }

/* 操作区域 */
.action-section {
    margin-top: 30px;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #ffd700;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.action-title {
    color: #ffd700;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .poker-table {
        width: 700px;
        height: 500px;
    }
    
    .seat {
        min-width: 120px;
    }
    
    .seat .card {
        width: 50px;
        height: 70px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .poker-table {
        width: 600px;
        height: 400px;
    }
    
    .seat {
        min-width: 100px;
    }
    
    .seat .card {
        width: 40px;
        height: 55px;
        font-size: 0.7rem;
    }
    
    .seat-1 { top: 10px; left: 120px; }
    .seat-2 { top: 10px; right: 120px; }
    .seat-3 { right: -10px; }
    .seat-4 { bottom: 10px; right: 120px; }
    .seat-5 { bottom: 10px; left: 120px; }
    .seat-6 { left: -10px; }
    
    .pot-amount-display {
        font-size: 1.4rem;
    }
    
    .community-cards {
        gap: 8px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .poker-table-container {
        padding: 10px;
    }
    
    .poker-table {
        width: 400px;
        height: 300px;
    }
    
    .seat {
        min-width: 80px;
    }
    
    .seat .card {
        width: 35px;
        height: 45px;
        font-size: 0.6rem;
    }
    
    .seat-1 { top: 5px; left: 80px; }
    .seat-2 { top: 5px; right: 80px; }
    .seat-3 { right: -5px; }
    .seat-4 { bottom: 5px; right: 80px; }
    .seat-5 { bottom: 5px; left: 80px; }
    .seat-6 { left: -5px; }
    
    .community-cards .card {
        width: 35px;
        height: 45px;
        font-size: 0.6rem;
    }
    
    .pot-amount-display {
        font-size: 1.2rem;
    }
    
    .action-section {
        margin-top: 20px;
        padding: 15px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-btn {
        min-width: auto;
        width: 100%;
    }
}