/* 🃏 PokerTortuga - Cyberpunk Table Styles */

.poker-table-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, #001a1a 0%, #000000 100%);
    z-index: 5000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    color: #00f2ff;
    overflow: hidden;
}

/* Landscape Suggestion Overlay */
.landscape-suggestion {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

@media screen and (orientation: portrait) and (max-width: 768px) {
    .landscape-suggestion {
        display: flex;
    }
}

.rotation-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: rotate-device 2s infinite ease-in-out;
}

@keyframes rotate-device {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(-90deg); }
    100% { transform: rotate(0deg); }
}

/* The Table */
.poker-main-table {
    position: relative;
    width: 800px;
    height: 400px;
    background: #004d26;
    border: 15px solid #1a1a1a;
    border-radius: 200px;
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.2), inset 0 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-border-neon {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid #00f2ff;
    border-radius: 205px;
    box-shadow: 0 0 15px #00f2ff;
    pointer-events: none;
    opacity: 0.5;
}

/* Community Cards Area */
.community-cards {
    display: flex;
    gap: 15px;
    z-index: 10;
}

.poker-card {
    width: 60px;
    height: 90px;
    background: #fff;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    position: relative;
    transition: transform 0.3s;
}

.poker-card.back {
    background: linear-gradient(135deg, #00f2ff, #ff00ff);
}

/* Player Slots */
.player-slot {
    position: absolute;
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.player-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #00f2ff;
    background: #001a1a;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.player-name {
    font-size: 0.7rem;
    color: #fff;
    text-shadow: 0 0 5px #00f2ff;
}

.player-chips {
    font-size: 0.8rem;
    color: #ffd700;
}

/* Positions for 6 players */
.slot-0 { bottom: -80px; left: 50%; transform: translateX(-50%); } /* Hero */
.slot-1 { left: -120px; top: 50%; transform: translateY(-50%); }
.slot-2 { left: 50px; top: -80px; }
.slot-3 { right: 50px; top: -80px; }
.slot-4 { right: -120px; top: 50%; transform: translateY(-50%); }
.slot-5 { bottom: -80px; right: 100px; }

/* Pot display */
.pot-container {
    position: absolute;
    top: 100px;
    font-size: 1.2rem;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Action Controls */
.poker-controls {
    position: absolute;
    bottom: 20px;
    display: flex;
    gap: 15px;
}

.poker-btn {
    padding: 10px 25px;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid #00f2ff;
    color: #00f2ff;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    transition: 0.3s;
}

.poker-btn:hover {
    background: #00f2ff;
    color: #000;
    box-shadow: 0 0 20px #00f2ff;
}

.poker-btn.fold { border-color: #ff003c; color: #ff003c; }
.poker-btn.fold:hover { background: #ff003c; color: #fff; }

/* 💬 In-Game Poker Chat (Bottom Left) */
.poker-chat-container {
    position: absolute;
    left: 20px;
    bottom: 20px;
    width: 200px; /* Più piccola */
    height: 180px; /* Più piccola */
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(5px);
    z-index: 100;
}

.poker-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    font-size: 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* TCG Mining Button */
.mine-tcg-btn {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    transition: 0.3s;
}

.mine-tcg-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #ffd700;
}

.poker-message {
    padding: 5px 8px;
    border-radius: 4px;
    background: rgba(0, 242, 255, 0.05);
}

.poker-message .sender {
    color: #ff00ff;
    font-weight: bold;
    margin-right: 5px;
}

.poker-chat-input-wrap {
    padding: 10px;
    border-top: 1px solid rgba(0, 242, 255, 0.2);
    display: flex;
    gap: 5px;
}

.poker-chat-input {
    flex: 1;
    background: transparent;
    border: 1px solid rgba(0, 242, 255, 0.4);
    color: #00f2ff;
    padding: 5px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    outline: none;
}

/* 💰 User TCG Display */
.user-poker-stats {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 242, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid #00f2ff;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

.tcg-balance-val {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1rem;
}

/* 🎬 Animations */
@keyframes deal-card {
    from { transform: translate(-50%, -500px) rotate(0deg); opacity: 0; }
    to { transform: translate(0, 0) rotate(0deg); opacity: 1; }
}

.poker-card.dealing {
    animation: deal-card 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Active Player Turn */
.player-slot.active-turn .player-avatar {
    border-color: #ffd700;
    box-shadow: 0 0 20px #ffd700;
    animation: turn-pulse 1.5s infinite;
}

@keyframes turn-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px #ffd700; }
    50% { transform: scale(1.1); box-shadow: 0 0 25px #ffd700; }
}

/* Chip movement animation */
.chip-animation {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ffd700;
    border-radius: 50%;
    border: 2px dashed #000;
    z-index: 100;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.5, -0.5, 0.5, 1.5);
}
