/* bot_app/web_app/css/pages/profile.css */

/* Стили профиля */
#profile-page { border-top: 1px solid var(--secondary-color); padding-top: 15px; }
.profile-info { display: flex; align-items: center; background: none; padding: 0; margin-bottom: 20px; text-align: left; }
.avatar { width: 80px; height: 80px; border-radius: 50%; margin-right: 15px; }
.user-details h2 { margin: 0 0 5px 0; }
.user-details p { margin: 0; color: #aaa; }
.profile-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 20px; background: none; padding: 0; }
.profile-actions-row {
    display: flex;
    gap: 10px;
}
.profile-actions-row .profile-btn {
    flex: 1;
}
.profile-btn { padding: 12px; font-size: 16px; background-color: transparent; color: #8e8e93; border: 1px solid #8e8e93; border-radius: 10px; cursor: pointer; text-align: center; font-weight: 500; line-height: 24px; transition: color 0.2s, border-color 0.2s; }
.profile-btn:hover { color: #ffffff; border-color: #ffffff; }
.profile-btn.active { color: #28a745; border-color: #28a745; font-weight: bold; }

/* Стили для инвентаря и истории (ВОССТАНОВЛЕНО) */
#profile-display-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* Увеличил минимальную ширину */
    gap: 10px;
}

.inventory-item {
    background-color: var(--primary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Распределяет пространство */
    min-height: 150px; /* Минимальная высота для единообразия */
}

.inventory-item-image {
    width: 60px; /* Размер изображения */
    height: 60px;
    object-fit: contain; /* Сохраняет пропорции */
    margin-bottom: 4px; /* Уменьшил отступ */
}

.inventory-item-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.inventory-item-name {
    font-size: 13px;
    font-weight: 500;
    word-break: break-word; /* Перенос длинных названий */
    margin-bottom: 4px;
}

.inventory-item-price {
    font-size: 12px;
    color: #FFCA5A; /* Золотистый цвет для цены */
    font-weight: bold;
    display: flex; /* Для выравнивания иконки и текста */
    align-items: center;
    gap: 3px; /* Отступ между текстом и иконкой */
    margin-bottom: 8px;
}

.inventory-item .sell-btn {
    background-image: linear-gradient(to right, var(--success-color), #218838);
    color: white;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: auto;
}

.inventory-item .sell-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

.inventory-item .sell-btn.sold {
    background-image: none;
    background-color: var(--danger-color);
    cursor: not-allowed;
}

.stars-icon {
    width: 1em; /* Размер иконки соответствует размеру шрифта */
    height: 1em;
    fill: #FFCA5A; /* Золотистый цвет иконки */
}

/* Удаляем старые стили для emoji и date, так как они больше не используются */
.inventory-item-emoji { display: none; }
.inventory-item-date { display: none; }

.history-item {
    background-color: var(--primary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
}
.history-item-date {
    font-size: 11px;
    color: #aaa;
    align-self: flex-end;
}
