/* ELO Matchmaking Plugin Styles */

.elo-matchmaking-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.elo-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.elo-header h1 {
    margin: 0 0 20px 0;
    font-size: 2.5em;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Navigation */
.elo-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid transparent;
}

.nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    color: white;
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
}

/* Dashboard Layout */
.elo-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-top: 30px;
}

.elo-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.elo-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Cards */
.player-status,
.quick-stats,
.active-lobbies,
.recent-games,
.lobby-card,
.profile-content,
.lobbies-content,
.leaderboard-content {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #e1e8ed;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.player-status:hover,
.quick-stats:hover,
.lobby-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.player-status h3,
.quick-stats h3,
.active-lobbies h2,
.recent-games h2 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

/* Player Info */
.player-info-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.player-name {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
}

.player-rank {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.player-points {
    font-size: 1.1em;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

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

.btn-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Ready Controls */
.ready-controls {
    margin-top: 15px;
}

#ready-btn {
    width: 100%;
    font-size: 16px;
    padding: 15px;
}

.ready-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
}

.ready-status.ready {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ready-status.not-ready {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: currentColor;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.stat-value {
    font-size: 1.5em;
    font-weight: 700;
    color: #2c3e50;
    display: block;
}

.stat-label {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 5px;
}

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

.lobby-card {
    position: relative;
    overflow: hidden;
}

.lobby-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.lobby-name {
    font-size: 1.2em;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.lobby-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

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

.lobby-description {
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.5;
}

.lobby-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.lobby-info-item {
    display: flex;
    justify-content: space-between;
}

.lobby-actions {
    display: flex;
    gap: 10px;
}

.lobby-actions .btn {
    flex: 1;
}

/* Queue Players */
.queue-players {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.queue-players h4 {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.queue-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.queue-player {
    background: #e9ecef;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    color: #495057;
}

/* Games */
.games-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.game-card {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.2s ease;
}

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.game-id {
    font-weight: 600;
    color: #2c3e50;
}

.game-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

.game-status.completed {
    background: #d4edda;
    color: #155724;
}

.game-status.in-progress {
    background: #fff3cd;
    color: #856404;
}

.game-teams {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.team {
    padding: 15px;
    border-radius: 8px;
    background: #f8f9fa;
}

.team-header {
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.team.winner {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
}

.team-players {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.team-player {
    font-size: 0.9em;
    color: #495057;
}

.team-player.captain {
    font-weight: 600;
    color: #2c3e50;
}

/* Leaderboard */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.leaderboard-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    position: sticky;
    top: 0;
}

.leaderboard-table tr:hover {
    background: #f8f9fa;
}

.rank-position {
    font-weight: 700;
    font-size: 1.1em;
    color: #2c3e50;
}

.rank-position.top-3 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.player-rank-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    color: white;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Login Required */
.elo-login-required {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.elo-login-required h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.elo-login-required p {
    color: #6c757d;
    margin-bottom: 25px;
}

/* Responsive */
@media (max-width: 768px) {
    .elo-content {
        grid-template-columns: 1fr;
    }
    
    .elo-nav {
        justify-content: center;
    }
    
    .nav-link {
        flex: 1;
        text-align: center;
        min-width: 120px;
    }
    
    .lobbies-grid {
        grid-template-columns: 1fr;
    }
    
    .game-teams {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .elo-header {
        padding: 20px;
        text-align: center;
    }
    
    .elo-header h1 {
        font-size: 2em;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    max-width: 300px;
}

.notification.success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
}

.notification.error {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
}

.notification.info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

