/* =====================================================
   PROFILE.CSS - Стили профиля, истории пополнений и покупок, статистики
   ===================================================== */

/* ------------------- 1. КОНТЕЙНЕР ПРОФИЛЯ ------------------- */
.profile-container {
    display: flex;
    color: #fff;
    margin: 20px;
    overflow: hidden;
    gap: 20px;
    box-sizing: border-box;
    width: 100%;
}

/* ------------------- 2. ЛЕВАЯ ПАНЕЛЬ ПРОФИЛЯ (САЙДБАР) ------------------- */
.profile-sidebar {
    width: 250px;
    background-color: #22242D;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 10px;
}

/* Аватар пользователя */
.profile-avatar img {
    width: 200px;
    height: 200px;
    border-radius: 20%;
    object-fit: cover;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.profile-avatar img:hover {
    transform: scale(1.05);
}

/* Имя пользователя */
.profile-username {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
}

/* Навигация в профиле */
.profile-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-item {
    width: 80%;
    margin-bottom: 10px;
}

.nav-item a {
    display: block;
    text-decoration: none;
    color: #fff;
    background: #15171C;
    padding: 12px;
    border-radius: 5px;
    text-align: center;
    transition: background 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.nav-item a:hover {
    background: #1E2026;
}

/* Кнопка выхода в профиле */
.profile-sidebar .logout-btn {
    margin-top: 20px;
    display: block;
    text-decoration: none;
    color: #fff;
    background: #E53935;
    text-align: center;
    padding: 12px;
    border-radius: 5px;
    width: 80%;
    transition: background 0.3s;
}

.profile-sidebar .logout-btn:hover {
    background: #D32F2F;
}

/* ------------------- 3. ПРАВАЯ ЧАСТЬ ПРОФИЛЯ (КОНТЕНТ) ------------------- */
.profile-content {
    text-align: center;
    flex: 1;
    background-color: #22242D;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 10px;
}

.profile-content h2 {
    margin-top: 0;
    font-size: 28px;
    margin-bottom: 20px;
    color: #fff;
}

/* ------------------- 4. ИНФОРМАЦИЯ О ПОЛЬЗОВАТЕЛЕ ------------------- */
.profile-info {
    background-color: #15171C;
    padding: 20px;
    border-radius: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    color: #fff;
    margin-bottom: 0;
}

.info-row:not(:last-child) {
    border-bottom: 2px solid #1E2026;
}

.info-label {
    font-weight: bold;
    white-space: nowrap;
}

.info-value {
    color: #E53935;
}

/* Промокод строка */
.promo-row {
    width: 100%;
    margin-top: 20px;
    font-size: 18px;
}

.promo-input {
    display: flex;
    margin-top: 10px;
    width: 100%;
    padding-left: 20px;
}

.promo-input input {
    background-color: #1E2026;
    border: none;
    color: #fff;
    padding: 10px;
    border-radius: 3px 0 0 3px;
    flex: 1;
    font-size: 16px;
}

.promo-input input:focus {
    outline: none;
}

/* ------------------- 5. ИСТОРИЯ ПОПОЛНЕНИЙ ------------------- */
.history-container {
    background-color: #15171C;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    box-sizing: border-box;
}

.history-table {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.history-row {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 15px 10px;
    color: #fff;
    box-sizing: border-box;
}

.history-row.header {
    background-color: #22242D;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 2px solid #1E2026;
}

.history-row:not(.header) {
    background-color: #1E2026;
    border-bottom: 2px solid #22242D;
}

.history-row:last-child:not(.header) {
    border-bottom: none;
}

.history-cell {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 5px;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.page-info {
    color: #fff;
}

/* ------------------- 6. СТАТИСТИКА ИГРОКА ------------------- */
.stats-container {
    background-color: #15171C;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stats-block {
    background-color: #1E2026;
    border-radius: 10px;
    padding: 15px;
    box-sizing: border-box;
}

.stats-block h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #fff;
    text-align: left;
    font-weight: bold;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    color: #fff;
    border-bottom: 1px solid #22242D;
    box-sizing: border-box;
}

.stats-row:last-child {
    border-bottom: none;
}

.stats-label {
    font-weight: normal;
    color: #fff;
}

.stats-value {
    color: #E53935;
}