/* Grundlegende Stile für den gesamten Körper der Seite */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a2a3a;
    color: #e0e6ed;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

/* Titel-Styling */
h1 {
    color: #f7d046;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: 1.5px;
}

/* Container für den Countdown-Timer */
#season-countdown-container {
    background-color: #2b3e50;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #e0e6ed;
    text-align: center;
    border: 1px solid #4a6a8a;
    margin-bottom: 30px;
    width: 100%;
    max-width: 600px;
}

#season-countdown-container h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #f7d046;
    text-align: center;
}

#countdown-timer {
    font-size: 1.2rem;
    font-weight: bold;
    color: #f7d046;
}

/* Container für die gesamte Rangliste */
#rankings-container {
    width: 100%;
    max-width: 700px;
    background-color: #2b3e50;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid #4a6a8a;
}

/* Stil für jeden einzelnen Spieler */
.player-ranking {
    display: flex;
    flex-direction: column;
    padding: 20px;
    margin-bottom: 15px;
    background-color: #3b4f62;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    cursor: pointer; /* Zeigt an, dass das Element anklickbar ist */
}

.player-ranking:last-child {
    margin-bottom: 0;
}

.player-ranking:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background-color: #4a6a8a;
}

/* Header-Bereich für Name und Position */
.player-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

/* Rang-Position-Styling */
.rank-position {
    font-size: 1.8rem;
    font-weight: 700;
    color: #f7d046;
    margin-right: 15px;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

/* Spieler-Name-Styling */
.player-ranking h3 {
    margin: 0;
    color: #aaddff;
    font-size: 1.6rem;
    font-weight: 600;
}

/* Details-Bereich für Rang und Win/Loss */
.player-details {
    padding-left: 55px;
}

/* Allgemeine Text-Styling innerhalb der Spieler-Box */
.player-ranking p {
    margin: 5px 0;
    font-size: 1.1rem;
    color: #c0c7d4;
}

/* Spezifisches Styling für Rang */
.player-ranking p .rank-info-text {
    color: #e74c3c;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Styling für den Live-Match-Status */
.in-game-status {
    color: #27ae60;
    font-weight: bold;
}

.not-in-game-status {
    color: #e74c3c;
    font-weight: bold;
}

/* --- NEUE STYLES FÜR DAS DROPDOWN-MENÜ --- */

/* Container für die Spielhistorie */
.match-history {
    display: none; /* Standardmäßig ausgeblendet */
    padding-left: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}

/* Stil für einzelne Match-Ergebnisse */
.match-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.match-result:last-child {
    border-bottom: none;
}

.match-status-win {
    color: #27ae60;
    font-weight: bold;
}

.match-status-loss {
    color: #e74c3c;
    font-weight: bold;
}

/* Stil für Ladezustand des Dropdown-Menüs */
.loading-message {
    font-style: italic;
    color: #aaddff;
}

/* Responsives Design für kleinere Bildschirme */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    h1 {
        font-size: 2.2rem;
    }
    #rankings-container {
        padding: 15px;
    }
    .player-ranking {
        padding: 15px;
    }
    .player-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .rank-position {
        margin-right: 0;
        margin-bottom: 5px;
    }
    .player-details {
        padding-left: 0;
    }
    #season-countdown-container {
        position: static;
        margin-bottom: 20px;
    }
}
