/**
 * OLAMI Multiplayer — Lobby & Table Styles
 * Matches mockup: dark premium casino theme
 */

/* Dark theme for lobby and table views (mockup) */
.arena-games-dark {
    background: #0f0f1a;
    min-height: 100vh;
    padding: 24px;
}

.arena-games-dark .arena-front-header {
    background: #1a1a2e;
    margin: -24px -24px 24px -24px;
    padding: 20px 24px;
    border-radius: 0 0 16px 16px;
}

.arena-games-dark .arena-back-link {
    color: rgba(255,255,255,0.8);
}

.arena-games-dark .arena-back-link:hover {
    color: #fff;
}

.arena-games-dark .arena-wallet,
.arena-games-dark .wallet-balance {
    color: #ffd700;
}

.mp-lobby,
.mp-table-view {
    font-family: var(--font-sans);
    max-width: 1000px;
    margin: 0 auto;
}

/* ─── Dark Lobby (Mockup) ───────────────────────────────────────── */
.mp-lobby-dark {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.08);
}

.mp-lobby-hero {
    text-align: center;
    margin-bottom: 28px;
}

.mp-lobby-hero h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.mp-lobby-hero p {
    margin: 0;
    font-size: 15px;
    color: rgba(255,255,255,0.65);
}

.mp-lobby-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.mp-lobby-tabs {
    display: flex;
    gap: 10px;
}

.mp-tab {
    padding: 10px 18px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
}

.mp-tab:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.mp-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.mp-create-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    transition: all 0.2s;
}

.mp-create-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

.mp-tables-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mp-table-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 24px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    transition: all 0.2s;
}

.mp-table-row:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.12);
}

.mp-table-game {
    font-weight: 700;
    min-width: 130px;
    color: #fff;
    font-size: 15px;
}

.mp-table-players {
    color: rgba(255,255,255,0.7);
    min-width: 70px;
}

.mp-table-min {
    color: rgba(255,255,255,0.6);
    min-width: 80px;
}

.mp-table-host {
    color: rgba(255,255,255,0.6);
    flex: 1;
}

.mp-join-btn {
    padding: 10px 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.mp-join-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.mp-loading,
.mp-empty {
    text-align: center;
    padding: 50px 20px;
    color: rgba(255,255,255,0.5);
    font-size: 16px;
}

/* Modals */
.mp-create-modal,
.mp-join-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.mp-modal-inner {
    background: #1a1a2e;
    padding: 28px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    border: 1px solid rgba(255,255,255,0.1);
}

.mp-modal-inner h3 {
    margin: 0 0 20px;
    color: #fff;
    font-size: 20px;
}

.mp-form-group {
    margin-bottom: 18px;
}

.mp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.mp-form-group input,
.mp-form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    font-size: 14px;
    background: rgba(0,0,0,0.3);
    color: #fff;
}

.mp-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.mp-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.mp-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    flex: 1;
}

.mp-btn-primary {
    background: var(--primary);
    color: #fff;
}

.mp-btn-secondary {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Table view */
.mp-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 4px;
}

.mp-back-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 600;
}

.mp-back-link:hover { color: #fff; }

.mp-leave-btn {
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.2);
    margin-left: auto;
    margin-right: 12px;
}

.mp-leave-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.mp-table-wallet {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffd700;
    font-weight: 700;
}

.mp-table-felt {
    min-height: 420px;
    background: radial-gradient(ellipse 120% 100% at 50% 30%, #0d5c36 0%, #052e1a 100%);
    border-radius: 24px;
    padding: 28px;
    position: relative;
    border: 8px solid #3d2817;
    box-shadow: inset 0 0 60px rgba(0,0,0,0.5);
}

.mp-dealer-zone,
.mp-center,
.mp-pot,
.mp-community {
    text-align: center;
    margin-bottom: 24px;
}

.mp-zone-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mp-cards,
.mp-seat-cards {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.mp-card {
    width: 52px;
    height: 72px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.mp-card-back {
    background: linear-gradient(135deg, #1a4a7c 0%, #0f3460 100%);
    color: #fff;
}

.mp-card-placeholder {
    color: rgba(255,255,255,0.4);
}

.mp-center {
    font-size: 20px;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.mp-pot {
    font-size: 22px;
    font-weight: 800;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.mp-players-zone {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.mp-seat {
    background: rgba(0,0,0,0.4);
    border-radius: 14px;
    padding: 14px 20px;
    text-align: center;
    border: 2px solid rgba(255,255,255,0.1);
}

.mp-seat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin: 0 auto 10px;
    font-size: 18px;
}

.mp-seat-name {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}

.mp-seat-chips {
    font-size: 14px;
    color: #ffd700;
    font-weight: 600;
}

.mp-table-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 24px;
}

.mp-action-btn {
    padding: 14px 28px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s;
}

.mp-action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.5);
}

.mp-action-btn-danger {
    background: #c62828 !important;
}

.mp-action-btn-danger:hover {
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.5) !important;
}

.mp-raise-input {
    width: 80px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 14px;
}

.mp-table-timer {
    text-align: center;
    margin-top: 12px;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}

.mp-error {
    color: #f87171;
    padding: 24px;
    text-align: center;
}

/* Game choice buttons - mockup style */
.mp-game-choice {
    display: flex;
    gap: 12px;
    margin: 14px 20px 20px;
}

.mp-game-choice .mp-btn-solo,
.mp-game-choice .mp-btn-multi,
.mp-game-choice .game-play-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    margin: 0 !important;
}

.mp-btn-solo {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.25);
    color: #fff;
}

.mp-btn-multi {
    background: var(--primary);
    border: 2px solid var(--primary);
    color: #fff !important;
}

a.mp-btn-multi,
a.game-play-btn.mp-btn-multi {
    text-decoration: none !important;
    pointer-events: auto;
}
