/* Current Rankings Page Styles */
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); 
    color: #e4e4e7; 
    margin: 0; 
    padding: 20px; 
    min-height: 100vh;
}

h1 { 
    text-align: center; 
    color: #ffffff; 
    font-size: 3em; 
    margin-bottom: 15px; 
    text-shadow: 0 4px 8px rgba(0,0,0,0.4);
    font-weight: 200;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 20px 0;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.nav { 
    text-align: center; 
    margin: 30px 0; 
}

.nav a { 
    margin: 0 15px; 
    padding: 12px 24px; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
    text-decoration: none; 
    border-radius: 8px; 
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.nav a:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

table { 
    margin: auto; 
    border-collapse: collapse; 
    background: rgba(30, 41, 59, 0.9); 
    border-radius: 12px; 
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

th, td { 
    padding: 16px 20px; 
    border-bottom: 1px solid rgba(148, 163, 184, 0.1); 
}

th { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: #fff; 
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9em;
}

tr:nth-child(even) { 
    background: rgba(51, 65, 85, 0.3); 
}

tr:hover { 
    background: rgba(102, 126, 234, 0.1); 
    transition: background 0.3s ease;
}

td { 
    border-bottom: 1px solid rgba(148, 163, 184, 0.1); 
}

.team-cell {
    border-left: 4px solid var(--team-color, #333333);
    position: relative;
}

.team-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--team-color, #333333) 0%, transparent 10%);
    opacity: 0.1;
    pointer-events: none;
}

.rank { 
    font-weight: bold; 
    color: #fbbf24; 
    font-size: 1.1em;
}

.team-name { 
    font-weight: 600; 
    color: #f1f5f9;
}

.team-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.team-link:hover {
    color: var(--team-color, #ffffff);
    text-decoration: underline;
}

.elo-score { 
    font-weight: 500; 
    color: #94a3b8; 
    font-family: 'Courier New', monospace;
}

img.logo { 
    height: 36px; 
    vertical-align: middle; 
    margin-right: 12px; 
    border-radius: 4px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Responsive design */
@media (max-width: 900px) {
    .nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin: 20px 0;
        padding: 0 10px;
    }
    
    .nav a {
        margin: 0;
        padding: 12px;
        font-size: 0.9em;
        text-align: center;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2em;
        letter-spacing: 1px;
        padding: 15px 0;
    }
    
    h1::after {
        width: 100px;
        height: 2px;
    }
    
    .nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin: 20px 0;
        padding: 0 10px;
    }
    
    .nav a {
        margin: 0;
        padding: 14px 8px;
        font-size: 0.85em;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .nav a {
        padding: 16px 12px;
        font-size: 0.9em;
    }
}