/* Файл: assets/css/profile.css (Baseline v2.5 - Рестайлинг ЛК) */

.profile-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    align-items: start;
    margin-top: 20px;
}

/* ЛЕВАЯ КОЛОНКА: АВАТАР И ИНФО */
.profile-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-avatar-container {
    background: #1a1a2e;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #363377;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.avatar-frame {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    margin: 0 auto 15px auto;
    overflow: hidden;
    background: #0c0c14;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-avatar-icon {
    font-size: 5rem;
    color: #334;
}

/* Кнопка загрузки аватара (Фирменный стиль 4px) */
.button-primary-styled {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: #121212;
    font-weight: bold;
    border-radius: 4px; /* Прямоугольная 4px */
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
    border: none;
    width: 100%;
}
.button-primary-styled:hover {
    background-color: #d1a9ff;
    transform: translateY(-2px);
}

/* ПРАВАЯ КОЛОНКА: БЛОКИ С ЗОЛОТЫМИ КРАЯМИ */
.profile-right {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.profile-section-box {
    background-color: #1a1a2e;
    padding: 25px;
    border-radius: 8px;
    border-left: 2px solid #ffc107;
    border-right: 2px solid #ffc107;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.profile-section-box h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #fff;
    font-size: 1.2rem;
    border-bottom: 1px solid #282845;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Награды (Winnings) */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.award-card {
    background: #11111e;
    border: 1px solid #334;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
}
.award-card:hover { border-color: #ffc107; transform: translateX(5px); }
.award-icon { font-size: 2rem; }
.award-details { flex-grow: 1; }
.award-title { display: block; color: #eee; font-weight: bold; font-size: 0.9rem; }
.award-amount { color: #28a745; font-weight: bold; font-size: 1rem; margin-top: 3px; }

/* История покупок и таблицы */
.history-table-wrapper {
    overflow-x: auto;
    background: #0f0f1a;
    border-radius: 4px;
    border: 1px solid #222;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.admin-table th, .admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #222;
}
.admin-table th { background: #222; color: #888; text-transform: uppercase; font-size: 0.75rem; }
.admin-table td { color: #ccc; }

/* Адаптивность */
@media (max-width: 900px) {
    .profile-grid { grid-template-columns: 1fr; }
    .profile-left { max-width: 400px; margin: 0 auto; width: 100%; }
}

@media (max-width: 500px) {
    .profile-section-box { padding: 15px; }
    .admin-table th, .admin-table td { padding: 8px; font-size: 0.8rem; }
}
