/* ============================ */
/* ONLINE PLAYERS STYLES */
/* ============================ */

.online-section {
    background: rgba(40, 35, 30, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #5d4c3a;
    margin-bottom: 1rem;
}

.online-section h2 {
    color: #d4b483;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Players List */
.players-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.player-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(53, 44, 37, 0.6);
    min-height: 54px;
}

.player-item:hover {
    background: rgba(139, 115, 85, 0.2);
}

/* Player Content */
.player-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Левая часть: Имя, Класс, Локация */
.player-info-left {
    display: flex;
    align-items: center;
    gap: 2rem; /* Одинаковое расстояние между всеми элементами */
    flex: 1;
}

.player-name {
    color: #d4b483;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    min-width: 140px;
}

.class-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #8b7355;
    object-fit: cover;
}

.player-location {
    color: #d4b483;
    font-size: 1rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Правая часть: Уровень и Раса */
.player-info-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-level {
    color: #d4b483;
    font-size: 1.1rem;
    font-weight: bold;
    background: rgba(139, 115, 85, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 50%;
    border: 1px solid rgba(139, 115, 85, 0.5);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.race-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #8b7355;
    object-fit: cover;
}

/* Empty and Error States */
.empty-state,
.error-state {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(53, 44, 37, 0.7);
    border-radius: 12px;
    border: 2px dashed #5d4c3a;
}

.empty-icon,
.error-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.empty-state h3,
.error-state h3 {
    color: #d4b483;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.empty-state p,
.error-state p {
    color: #b8ab95;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.error-details {
    background: rgba(58, 37, 37, 0.5);
    color: #e74c3c;
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid #5d3a3a;
    font-family: monospace;
    font-size: 0.9rem;
}

.retry-action {
    margin-top: 1.5rem;
}

.btn-retry {
    background: linear-gradient(135deg, #8b7355, #6d5c46);
    color: #1e1914;
    border: 1px solid #d4b483;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-retry:hover {
    background: linear-gradient(135deg, #9c8464, #7d6c56);
}

/* ============================ */
/* MOBILE RESPONSIVE STYLES */
/* ============================ */

@media (max-width: 768px) {
    .online-section {
        padding: 1.5rem;
    }

    .online-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .player-item {
        padding: 0.7rem 0.9rem;
        min-height: 50px;
    }

    .player-info-left {
        gap: 0.8rem; /* Одинаковое расстояние на мобильных */
    }

    .player-name {
        font-size: 1.1rem;
        min-width: 120px;
    }

    .class-icon {
        width: 28px;
        height: 28px;
    }

    .player-location {
        font-size: 0.9rem;
    }

    .player-info-right {
        gap: 0.8rem;
    }

    .player-level {
        font-size: 1rem;
        width: 32px;
        height: 32px;
    }

    .race-icon {
        width: 32px;
        height: 32px;
    }

    .empty-state,
    .error-state {
        padding: 2rem 1rem;
    }

    .empty-icon,
    .error-icon {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .online-section {
        padding: 1rem;
    }

    .player-item {
        padding: 0.6rem 0.8rem;
        min-height: 46px;
    }

    .player-info-left {
        gap: 0.6rem; /* Одинаковое расстояние на маленьких экранах */
    }

    .player-name {
        font-size: 1rem;
        min-width: 100px;
    }

    .class-icon {
        width: 26px;
        height: 26px;
    }

    .player-location {
        font-size: 0.85rem;
    }

    .player-info-right {
        gap: 0.6rem;
    }

    .player-level {
        font-size: 0.9rem;
        width: 30px;
        height: 30px;
    }

    .race-icon {
        width: 30px;
        height: 30px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
    .player-content {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .player-info-left {
        width: 100%;
        justify-content: flex-start;
        gap: 0.6rem;
    }

    .player-info-right {
        width: 100%;
        justify-content: flex-end;
        gap: 0.6rem;
    }
}

