/* Основные стили для личного кабинета */
.user-account {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Верхняя панель */
.account-header {
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.account-avatar {
    width: 150px;
    height: 150px;
    margin-right: 30px;
    flex-shrink: 0; /* Предотвращаем сжатие аватара */
    position: relative; /* Для позиционирования псевдоэлемента */
}

.account-avatar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.account-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: #f0f0f0; /* Фон для случая, когда изображение еще не загрузилось */
}

.account-info {
    flex: 1;
}

.account-info h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
}

.telegram-username {
    color: #0088cc;
    font-size: 16px;
    margin: 0 0 10px 0;
}

.points-info {
    font-size: 18px;
    margin: 0;
    color: #666;
}

.points-info strong {
    color: #28a745;
}

/* Вкладки */
.account-tabs {
    margin-top: 20px;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.tab-button {
    padding: 10px 20px;
    border: none;
    background: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: #0088cc;
}

.tab-button.active {
    color: #0088cc;
    border-bottom: 2px solid #0088cc;
    margin-bottom: -12px;
}

/* Содержимое вкладок */
.tab-content {
    display: none;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    margin: 0 0 20px 0;
    color: #333;
}

/* Список маршрутов */
.routes-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.route-item {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.route-item h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.route-item p {
    margin: 5px 0;
    color: #666;
}

/* Информация профиля */
.profile-info, .security-info {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

.info-group {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.info-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-group label {
    width: 150px;
    color: #666;
    font-weight: 500;
}

.info-group span {
    flex: 1;
    color: #333;
}

.verified {
    color: #28a745;
    font-weight: 500;
}

/* Кнопки действий */
.security-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.button {
    padding: 10px 20px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.button:hover {
    background: #c82333;
}

/* Адаптивность */
@media (max-width: 768px) {
    .account-header {
        flex-direction: column;
        text-align: center;
    }

    .account-avatar {
        margin: 0 0 20px 0;
    }

    .tab-buttons {
        flex-wrap: wrap;
    }

    .info-group {
        flex-direction: column;
    }

    .info-group label {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* Сообщение для неавторизованных пользователей */
.user-account--guest {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
} 