/* Основные стили для страницы профиля */
.user-profile-container, .user-content-section {
    padding: 10px;
    padding-top: 20px;
}

.user-profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
    max-width: 800px;
    margin: auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Стили для аватара */
.preview-avatar-container {
    text-align: center;
}

.preview-avatar-container .image {
    display: inline-block;
    border-radius: 50%;
    overflow: hidden;
    width: 150px;
    height: 150px;
    border: 5px solid #f8f9fa;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.preview-avatar-container .image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

/* Стили для информации пользователя */
.user-info {
    width: 100%;
}

.user-name {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-align: center;
}

.user-about {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    text-align: left;
    overflow: hidden;
}

/* Стили для кнопок */
.user-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout {
    background: #e74c3c;
    color: white;
}

.btn-logout:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

.btn-edit {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-edit:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

/* Стили для контентных секций */
.user-content-section h2 {
    text-align: center;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 10px;
}

.user-content {
    max-width: 92%;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

/* Стили для таблиц */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.table th {
    font-weight: 600;
    color: #2c3e50;
    background-color: #f8f9fa;
}

.table th a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.table th a:hover {
    color: #3498db;
}

.table tr:hover {
    background-color: #f8f9fa;
}

/* Адаптивность */
@media (max-width: 768px) {
    .user-profile-container {
        padding: 25px 20px;
        margin: 10px;
    }

    .user-profile-header {
        gap: 20px;
    }

    .user-name {
        font-size: 2rem;
    }

    .user-about {
        font-size: 1rem;
        padding: 20px;
    }

    .preview-avatar-container .image {
        width: 120px;
        height: 120px;
    }

    .user-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .user-content {
        max-width: 100%;
        padding: 20px 15px;
        margin: 0 10px;
    }

    .table {
        font-size: 14px;
    }

    .table th,
    .table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .user-profile-container {
        padding: 20px 15px;
    }

    .user-name {
        font-size: 1.7rem;
    }

    .user-about {
        padding: 15px;
        font-size: 0.95rem;
    }

    .preview-avatar-container .image {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }

    .user-content-section h2 {
        font-size: 1.5rem;
    }
}
