/* Poker Platform - Public Styles - Dark Theme */

:root {
    --poker-bg-primary: #1a1d29;
    --poker-bg-secondary: #242837;
    --poker-bg-card: #2d3142;
    --poker-bg-hover: #363a4f;
    --poker-accent: #4ecca3;
    --poker-accent-hover: #45b88e;
    --poker-text-primary: #ffffff;
    --poker-text-secondary: #a0a3bd;
    --poker-border: #3a3f5c;
    --poker-danger: #ee6c4d;
    --poker-warning: #f0c33c;
    --poker-success: #4ecca3;
}

* {
    box-sizing: border-box;
}

.poker-platform-container {
    background: var(--poker-bg-primary);
    min-height: 100vh;
    color: var(--poker-text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header */
.poker-header {
    background: var(--poker-bg-secondary);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--poker-border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.poker-logo {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: var(--poker-text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.poker-icon {
    color: var(--poker-accent);
    font-size: 32px;
}

.poker-header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.poker-balance-display {
    background: var(--poker-bg-card);
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--poker-border);
}

.poker-balance-label {
    color: var(--poker-text-secondary);
    font-size: 14px;
}

.poker-balance-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--poker-accent);
}

/* User Menu */
.poker-user-menu {
    position: relative;
}

.poker-user-avatar {
    background: var(--poker-bg-card);
    border: 1px solid var(--poker-border);
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--poker-text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.poker-user-avatar:hover {
    background: var(--poker-bg-hover);
    border-color: var(--poker-accent);
}

.poker-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--poker-bg-card);
    border: 1px solid var(--poker-border);
    border-radius: 8px;
    min-width: 200px;
    display: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    z-index: 1000;
}

.poker-dropdown-menu.active {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.poker-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--poker-text-primary);
    text-decoration: none;
    transition: background 0.2s;
}

.poker-dropdown-item:hover {
    background: var(--poker-bg-hover);
}

.poker-dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.poker-dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

/* Navigation */
.poker-main-nav {
    background: var(--poker-bg-secondary);
    padding: 0 40px;
    border-bottom: 1px solid var(--poker-border);
}

.poker-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 5px;
}

.poker-nav-item {
    padding: 18px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--poker-text-secondary);
    transition: all 0.3s;
    position: relative;
}

.poker-nav-item:hover {
    color: var(--poker-text-primary);
    background: var(--poker-bg-hover);
}

.poker-nav-item.active {
    color: var(--poker-accent);
    background: var(--poker-bg-primary);
}

.poker-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--poker-accent);
}

.poker-nav-icon {
    font-size: 20px;
}

.poker-nav-text {
    font-weight: 600;
    font-size: 15px;
}

/* Content */
.poker-content {
    padding: 40px;
}

.poker-section {
    display: none;
}

.poker-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.poker-section-header {
    margin-bottom: 30px;
}

.poker-section-header h2 {
    font-size: 32px;
    margin: 0 0 10px 0;
    color: var(--poker-text-primary);
}

.poker-section-header p {
    color: var(--poker-text-secondary);
    font-size: 16px;
    margin: 0;
}

/* Tables Grid */
.poker-tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.poker-table-card {
    background: var(--poker-bg-card);
    border: 1px solid var(--poker-border);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
}

.poker-table-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(78, 204, 163, 0.15);
    border-color: var(--poker-accent);
}

.poker-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--poker-border);
}

.poker-table-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--poker-text-primary);
}

.poker-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.poker-badge-featured {
    background: rgba(78, 204, 163, 0.2);
    color: var(--poker-accent);
}

.poker-table-info {
    margin-bottom: 20px;
}

.poker-info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.poker-info-label {
    color: var(--poker-text-secondary);
    font-size: 14px;
}

.poker-info-value {
    color: var(--poker-text-primary);
    font-weight: 600;
    font-size: 14px;
}

.poker-table-footer {
    margin-top: 20px;
}

/* Buttons */
.poker-button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--poker-text-primary);
}

.poker-button-primary {
    background: var(--poker-accent);
    color: #1a1d29;
    width: 100%;
    justify-content: center;
}

.poker-button-primary:hover {
    background: var(--poker-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(78, 204, 163, 0.4);
}

.poker-button-secondary {
    background: var(--poker-bg-hover);
    color: var(--poker-text-primary);
}

.poker-button-secondary:hover {
    background: var(--poker-border);
}

.poker-button-small {
    padding: 8px 16px;
    font-size: 13px;
}

/* Empty State */
.poker-empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--poker-text-secondary);
}

.poker-empty-state h3 {
    color: var(--poker-text-primary);
    margin-bottom: 10px;
}

/* Cards */
.poker-card {
    background: var(--poker-bg-card);
    border: 1px solid var(--poker-border);
    border-radius: 12px;
    padding: 25px;
}

.poker-card h3 {
    margin-top: 0;
    color: var(--poker-text-primary);
}

/* Cashier */
.poker-cashier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.poker-balance-big {
    font-size: 48px;
    font-weight: 700;
    color: var(--poker-accent);
    margin: 20px 0;
}

.poker-balance-subtitle {
    color: var(--poker-text-secondary);
    font-size: 14px;
}

/* Profile */
.poker-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.poker-profile-info p {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--poker-text-secondary);
}

.poker-stats-list {
    margin-top: 15px;
}

.poker-stat-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.poker-stat-label {
    color: var(--poker-text-secondary);
}

.poker-stat-value {
    color: var(--poker-text-primary);
    font-weight: 600;
}

/* Modal */
.poker-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.poker-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.poker-modal-content {
    background: var(--poker-bg-card);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--poker-border);
    animation: slideUp 0.3s ease;
}

.poker-modal-header {
    padding: 25px;
    border-bottom: 1px solid var(--poker-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.poker-modal-header h3 {
    margin: 0;
    color: var(--poker-text-primary);
}

.poker-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--poker-text-secondary);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.poker-modal-close:hover {
    background: var(--poker-bg-hover);
    color: var(--poker-text-primary);
}

.poker-modal-body {
    padding: 25px;
}

.poker-modal-footer {
    padding: 25px;
    border-top: 1px solid var(--poker-border);
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.poker-form-group {
    margin: 20px 0;
}

.poker-form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--poker-text-primary);
    font-weight: 600;
}

.poker-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--poker-bg-primary);
    border: 1px solid var(--poker-border);
    border-radius: 8px;
    color: var(--poker-text-primary);
    font-size: 16px;
    transition: all 0.3s;
}

.poker-input:focus {
    outline: none;
    border-color: var(--poker-accent);
    box-shadow: 0 0 0 3px rgba(78, 204, 163, 0.1);
}

.poker-help-text {
    margin-top: 8px;
    font-size: 13px;
    color: var(--poker-text-secondary);
}

/* Login Required */
.poker-login-required {
    text-align: center;
    padding: 100px 20px;
    background: var(--poker-bg-card);
    border-radius: 12px;
    margin: 40px auto;
    max-width: 500px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .poker-header,
    .poker-main-nav,
    .poker-content {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .poker-tables-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .poker-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .poker-nav-list {
        flex-wrap: wrap;
    }
    
    .poker-nav-text {
        display: none;
    }
    
    .poker-tables-grid {
        grid-template-columns: 1fr;
    }
    
    .poker-section-header h2 {
        font-size: 24px;
    }
}

/* Player Cards Positioning */
.player-cards {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
    justify-content: center;
}

.player-cards .poker-card-back {
    width: 25px;
    height: 35px;
    background-size: cover;
    border-radius: 2px;
}

/* Dashicons Support */
.dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}