/* Poker Championship Manager - Public Styles */

.pcm-leaderboard {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pcm-leaderboard h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.pcm-leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.pcm-leaderboard-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.pcm-leaderboard-table th {
    padding: 12px;
    text-align: left;
    font-weight: bold;
}

.pcm-leaderboard-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.pcm-leaderboard-table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.pcm-leaderboard-table tbody tr:hover {
    background-color: #f0f0f0;
}

.pcm-leaderboard-table .rank {
    font-weight: bold;
    color: #667eea;
    font-size: 16px;
}

.pcm-leaderboard-table .player-name {
    font-weight: 500;
}

/* Tournaments List */
.pcm-tournaments-list {
    padding: 20px;
}

.pcm-tournaments-list h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tournament-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s, transform 0.3s;
}

.tournament-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.tournament-card h4 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
}

.tournament-card p {
    margin: 10px 0;
    font-size: 14px;
    color: #666;
}

.tournament-card p strong {
    color: #333;
    font-weight: 600;
}

.tournament-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 10px;
}

.tournament-status.badge-draft {
    background-color: #f0f0f0;
    color: #666;
}

.tournament-status.badge-open {
    background-color: #d1ecf1;
    color: #0c5460;
}

.tournament-status.badge-active {
    background-color: #d4edda;
    color: #155724;
}

.tournament-status.badge-closed {
    background-color: #f8d7da;
    color: #721c24;
}

/* Tournament Details */
.pcm-tournament-details {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pcm-tournament-details h2 {
    color: #333;
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
}

.tournament-info {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.tournament-info p {
    margin: 10px 0;
    font-size: 15px;
}

.tournament-description {
    margin: 20px 0;
    padding: 15px;
    background: #f0f5ff;
    border-left: 4px solid #667eea;
    border-radius: 4px;
}

.tournament-rankings {
    margin-top: 30px;
}

.pcm-rankings-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.pcm-rankings-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.pcm-rankings-table th {
    padding: 12px;
    text-align: left;
    font-weight: bold;
}

.pcm-rankings-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.pcm-rankings-table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.pcm-rankings-table .position {
    font-weight: bold;
    color: #667eea;
    font-size: 16px;
}

.pcm-rankings-table .prize {
    color: #28a745;
    font-weight: 600;
}

/* Player Stats */
.pcm-player-stats {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pcm-player-stats h2 {
    color: #333;
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
}

.player-statistics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stat-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.pcm-player-tournaments {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 15px;
}

.pcm-player-tournaments thead {
    background: #f5f5f5;
    border-bottom: 2px solid #667eea;
}

.pcm-player-tournaments th {
    padding: 12px;
    text-align: left;
    font-weight: bold;
    color: #333;
}

.pcm-player-tournaments td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.pcm-player-tournaments tbody tr:hover {
    background-color: #f9f9f9;
}

/* Responsive */
@media (max-width: 768px) {
    .tournaments-grid {
        grid-template-columns: 1fr;
    }
    
    .player-statistics {
        grid-template-columns: 1fr;
    }
    
    .pcm-leaderboard-table,
    .pcm-rankings-table,
    .pcm-player-tournaments {
        font-size: 12px;
    }
    
    .pcm-leaderboard-table th,
    .pcm-leaderboard-table td,
    .pcm-rankings-table th,
    .pcm-rankings-table td,
    .pcm-player-tournaments th,
    .pcm-player-tournaments td {
        padding: 8px;
    }
}
