/* Reset und Basis-Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #FF6600 0%, #FF8533 50%, #FFA366 100%);
    min-height: 100vh;
    color: #333333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5em;
    color: #FF6600;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.2em;
    color: #666666;
    font-weight: 300;
}

/* Grid Layout */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.charts-grid .stat-card {
    height: 400px;
}

.charts-grid canvas {
    max-height: 300px;
}

/* Stat Cards */
.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: box-shadow 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.stat-card.full-width {
    grid-column: 1 / -1;
}

.stat-card h3 {
    color: #333333;
    margin-bottom: 20px;
    font-size: 1.3em;
    border-bottom: 2px solid #FF6600;
    padding-bottom: 10px;
}

/* Stat Items */
.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-weight: 500;
    color: #666666;
}

.stat-value {
    font-weight: bold;
    font-size: 1.1em;
    color: #333333;
}

/* Player List */
.player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
}

.player-item:last-child {
    border-bottom: none;
}

.player-name {
    font-weight: 500;
}

.player-stats {
    color: #666666;
    font-size: 0.9em;
}

/* Game History */
.game-item {
    background: #F5F5F5;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #FF6600;
}

.game-date {
    font-weight: bold;
    color: #333333;
    margin-bottom: 5px;
}

.game-summary {
    color: #666666;
    font-size: 0.9em;
}

/* Top Players */
.top-player {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
}

.top-player:last-child {
    border-bottom: none;
}

.player-rank {
    background: #FF6600;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
}

.player-rank.gold {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
}

.player-rank.silver {
    background: linear-gradient(45deg, #c0c0c0, #e8e8e8);
    color: #333;
}

.player-rank.bronze {
    background: linear-gradient(45deg, #cd7f32, #daa520);
    color: white;
}

.player-rank.honorary {
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
    color: #333;
    font-size: 1.4em;
    width: 40px;
    height: 40px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4), 
                0 0 20px rgba(255, 215, 0, 0.2) inset;
    border: 2px solid rgba(255, 255, 255, 0.8);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4), 
                    0 0 20px rgba(255, 215, 0, 0.2) inset;
    }
    to {
        box-shadow: 0 4px 20px rgba(255, 215, 0, 0.6), 
                    0 0 30px rgba(255, 215, 0, 0.4) inset;
    }
}

.honorary-player {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.15) 0%, 
        rgba(255, 237, 78, 0.1) 50%, 
        rgba(255, 215, 0, 0.15) 100%);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-left: 5px solid #ffd700;
    border-radius: 12px;
    padding: 15px 18px;
    margin-bottom: 15px;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.honorary-player::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 70%);
    animation: shine 3s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.honorary-player:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    border-color: rgba(255, 215, 0, 0.8);
}

.honorary-player .player-name {
    font-weight: 700;
    font-size: 1.1em;
    color: #333;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
}

.honorary-text {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    font-weight: 700;
    font-size: 0.85em;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
}

/* Animations entfernt für bessere Performance */

/* Utility Classes */
.text-success {
    color: #00A651;
}

.text-warning {
    color: #FF6600;
}

.text-danger {
    color: #E74C3C;
}

.text-info {
    color: #FF6600;
}
