/* Ogólny reset */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

.header {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.server-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.server-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-left: 10px solid #999; /* Domyślny kolor, będzie dynamicznie zmieniany */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.server-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.server-name {
    font-size: 18px;
    font-weight: bold;
}

.server-players {
    font-size: 14px;
    color: #666;
}

.team-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.team-badge {
    display: flex;
    justify-content: space-between;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

.team-badge.empty {
    color: transparent; /* Ukryj liczbę graczy, gdy jest 0 */
}

/* Pop-up */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    background-color: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    padding: 20px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}

.popup-close:hover {
    color: #000;
}

#popup-details {
    font-size: 16px;
}

#popup-details h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

#popup-details p {
    margin: 5px 0 15px;
    color: #666;
}

#popup-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#popup-details li {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    margin: 5px 0;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

/* Stylizacja wierszy w popupie */
.team-row {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 4px;
    font-weight: bold;
    color: #fff;
    text-align: center;
}