/* ...existing code... */

/* Обновленная структура профиля с более современным дизайном */

.profile-header {

    position: relative;

    padding-bottom: 0;

    background-color: #f8f9fa;

    border-radius: 8px 8px 0 0;

    overflow: hidden;

}



.profile-content {

    display: flex;

    flex-wrap: wrap;

}



.profile-left-column {

    width: 240px;

    padding: 20px;

    box-sizing: border-box;

    background-color: #f8f9fa;

}



.profile-right-column {

    flex: 1;

    min-width: 300px;

    padding: 20px;

    box-sizing: border-box;

    overflow: hidden;

    width: 100%;

}



/* Уменьшаем размер обложки */

.profile-cover {

    width: 100%;

    height: 150px;
    /* Уменьшенная высота */

    overflow: hidden;

    position: relative;

    border: none;

    box-shadow: none;

    margin-bottom: 0;

}



.profile-cover img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}



.profile-name {

    font-size: 1.6rem;

    color: #333;

    font-weight: 600;

    margin: 0 0 8px 0;

    line-height: 1.2;

}

.profile-main-info-block,
.social-links-container,
.user-stats-container,
.subscription-stats-container,
.profile-actions-edit {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 10px;
    margin-bottom: 10px; /* Отступ между блоками */
}

.profile-main-info-block:last-child,
.social-links-container:last-child,
.user-stats-container:last-child,
.subscription-stats-container:last-child,
.profile-actions-edit:last-child {
    margin-bottom: 0; /* Отменить отступ для последнего элемента */
}

/* Стили для адаптивности на мобильных */
@media (max-width: 768px) {
    .profile-main-info-block,
    .social-links-container,
    .user-stats-container,
    .subscription-stats-container,
    .profile-actions-edit {
        margin-bottom: 15px; /* Немного уменьшаем отступ на мобильных */
    }
}

.user-custom-status {

    font-style: italic;

    color: #6c757d;

    font-size: 0.95rem;

    display: block;

    position: relative;

    line-height: 1.4;

}

.user-status-area {
	min-height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;

}



.user-custom-status-edit {

    margin-left: 5px;

    opacity: 0.6;

    transition: opacity 0.2s;

    font-size: 14px;

    vertical-align: middle;

    cursor: pointer;

    text-decoration: none;

    background: none;

    border: none;

    padding: 4px;

}



.user-custom-status-edit:hover {

    opacity: 1;

}



.profile-avatar {

    margin: 12px 0; /* Сохраняем отступ сверху/снизу */

}



.profile-avatar img.avatar-large {

    width: 100px;

    height: 100px;

    border-radius: 50%;

    object-fit: cover;

    object-position: top;

    border: 0 solid #ffffff;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

    transition: transform 0.2s ease;

}



.profile-avatar img.avatar-large:hover {

    transform: scale(1.05);

}



.user-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    margin: 5px 0 12px; /* Сохраняем отступы */
    font-weight: 500;
    background-color: #f9f9f9;
    color: #495057;
    align-self: flex-start;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}



.user-status.active {

    background-color: #d4edda;

    color: #155724;

}



.user-status.inactive {

    background-color: #f8d7da;

    color: #721c24;

}



.user-status.new {

    background-color: #cce5ff;

    color: #004085;

}



.user-stats-item {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: #6c757d;

    font-size: 14px;

    background-color: #f9f9f9;

    padding: 3px 8px;

    border-radius: 4px;

    transition: background-color 0.2s;

    text-decoration: none;
    /* Добавляем для ссылок */

    flex-direction: column;

}



.profile-actions {

    margin-top: 15px;

    display: flex;

    flex-direction: column;

    gap: 8px;

}

/* Более специфичные стили для кнопок действий внутри .profile-main-info-block */
.profile-main-info-block .profile-actions-dm,
.profile-main-info-block .profile-actions-subscribe {
    margin: 8px 0; /* Возвращаем отступ для этих кнопок внутри нового блока */
}

/* Стили для кнопок редактирования/администрирования в отдельном блоке */
.profile-actions-edit {
    margin-top: 0; /* Отменить общий margin-top для этого блока, так как родительский контейнер имеет margin-bottom */
    /* Дополнительные стили, если нужны */
}

/* Восстановленные стили для кнопок */
.button-primary {

    display: inline-block;

    padding: 8px 12px;

    background-color: #28a745;

    color: #ffffff;

    border-radius: 4px;

    text-decoration: none;

    font-weight: 500;

    transition: all 0.2s ease;

    border: none;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);

    text-align: center;

    font-size: 0.9rem;

}



.button-primary:hover {

    background-color: #218838;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);

}



.button-admin {

    display: inline-block;

    padding: 8px 12px;

    background-color: #6f42c1;

    color: #ffffff;

    border-radius: 4px;

    text-decoration: none;

    font-weight: 500;

    transition: all 0.2s ease;

    border: none;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);

    text-align: center;

    font-size: 0.9rem;

}



.button-admin:hover {

    background-color: #5a32a3;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);

}



/* Стили для адаптивности на мобильных */

@media (max-width: 768px) {

    .profile-content {

        flex-direction: column;

    }



    .profile-left-column {

        width: 100%;

        text-align: center;

    }



    .profile-right-column {

        padding: 12px;

        width: 100%;

        overflow: hidden;

        margin: 0;

    }



    .profile-avatar {

        display: flex;

        justify-content: center;

    }



    .user-status {

        margin: 5px auto 12px;

    }



    .profile-actions {

        align-items: center;

    }



    .tags-section {

        margin: 0;

        padding: 0;

        width: 100%;

    }



    .tags-wrapper {

        padding: 8px;

        margin: 0;

        width: 100%;

    }



    .tag-card {

        margin: 0;

        width: 100%;

        max-width: 100%;

        box-sizing: border-box;

    }

}



/* Стили для очень маленьких экранов */

@media (max-width: 360px) {

    .profile-right-column {

        padding: 8px;

    }

	}



/* Стили для формы редактирования статуса */

.status-display {

    display: flex;

    align-items: center;

    gap: 5px;

}



.status-edit-form {

    display: none;

    margin-top: 5px;

}



.status-edit-input {

    padding: 4px 8px;

    border: 1px solid #ddd;

    border-radius: 4px;

}



.status-save-btn,

.status-cancel-btn {

    background: none;

    border: none;

    cursor: pointer;

    padding: 4px;

    font-size: 16px;

}



.user-custom-status-container {

    display: inline-flex;

    align-items: center;

    gap: 8px;

}



.user-custom-status-wrapper {

    display: inline-flex;

    align-items: center;

    gap: 8px;

}



.edit-status-btn {

    background: none;

    border: none;

    cursor: pointer;

    padding: 0;

    font-size: 16px;

}



.status-block {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 5px;

}



.status-edit-btn {

    background: none;

    border: none;

    cursor: pointer;

    padding: 4px;

    opacity: 0.6;

    transition: opacity 0.2s;

}



.status-edit-btn:hover {

    opacity: 1;

}



.status-input {

    padding: 4px 8px;

    border: 1px solid #ddd;

    border-radius: 4px;

    min-width: 200px;

}



.status-save,

.status-cancel {

    background: none;

    border: none;

    cursor: pointer;

    padding: 4px;

    font-size: 16px;

}



.profile-status {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin: 10px 0;

}



.profile-status button {

    background: none;

    border: none;

    cursor: pointer;

    padding: 4px;

    font-size: 16px;

}



.profile-status input {

    padding: 4px 8px;

    border: 1px solid #ddd;

    border-radius: 4px;

    min-width: 200px;

}



/* Стили для фильтрации статей */

.tab-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 24px;

}



.articles-filters {

    background: #fff;

    border: 1px solid #e5e7eb;

    border-radius: 4px;

    padding: 16px;

    margin-bottom: 20px;

}



.filters-group {

    display: grid;

    grid-template-columns: 1fr auto;

    gap: 12px;

    align-items: center;

}



.filter-search {

    width: 100%;

    padding: 10px 16px;

    border: 1px solid #e5e7eb;

    border-radius: 4px;

    font-size: 0.95rem;

    color: #374151;

    transition: border-color 0.2s;

}



.filter-search:focus {

    outline: none;

    border-color: #6366f1;

    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);

}



.filter-select {

    padding: 10px 32px 10px 16px;

    border: 1px solid #e5e7eb;

    border-radius: 4px;

    font-size: 0.95rem;

    color: #374151;

    background: #fff url("data:image/svg+xml,...") no-repeat right 12px center;

    background-size: 16px;

    cursor: pointer;

    appearance: none;

    min-width: 180px;

}



.filter-select:focus {

    outline: none;

    border-color: #6366f1;

}



/* Стили для списка статей */

.user-articles {

    margin-top: 10px;

}



.user-article:hover {

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);

    transform: translateY(-2px);

}



.article-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 16px;

    margin-bottom: 12px;

}



.article-header h4 {

    margin: 0;

    font-size: 1.1rem;

}



.article-header h4 a {

    color: #1f2937;

    text-decoration: none;

}



.article-meta {

    display: flex;

    gap: 16px;

    color: #6b7280;

    font-size: 0.9rem;

}



/* Стили пагинации */

.pagination {

    margin: 20px 0 30px 0;

    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    position: relative;

    z-index: 3;

}



.pagination a,

.pagination span {

    padding: 4px 6px;

    border: 1px solid #ddd;

    color: #333;

    border-radius: 4px;

    text-decoration: none;

    display: inline-block;

    min-width: 40px;

    text-align: center;

}



.pagination a:hover {

    background-color: #f5f5f5;

}



.pagination .pagination-current {

    background-color: #4e73df;

    color: white;

    border-color: #4e73df;

}



.pagination .pagination-btn {

    background-color: #f8f9fc;

    min-width: auto;

}



/* Стили для поля ввода номера страницы */

.pagination-goto-form {

    margin: 0 5px;

}



.pagination-goto {

    display: flex;

    align-items: center;

}



.pagination-goto-input {

    width: 60px;

    height: 32px;

    border: 1px solid #ddd;

    border-radius: 4px 0 0 4px;

    text-align: center;

    padding: 0 5px;

}



.pagination-goto-button {

    height: 32px;

    background-color: #4e73df;

    color: white;

    border: none;

    border-radius: 0 4px 4px 0;

    padding: 0 10px;

    cursor: pointer;

}



.pagination-goto-button:hover {

    background-color: #3a5fc9;

}



/* Исправление позиционирования элементов относительно футера */

.container {

    position: relative;

    z-index: 1;

    margin-bottom: 5px;
    /* Добавляем отступ снизу для контейнера */

}



footer,
.site-footer {

    position: relative;

    z-index: 2;

    margin-top: 30px;
    /* Добавляем отступ сверху для футера */

}



/* Адаптивность */

@media (max-width: 768px) {

    .filters-group {

        grid-template-columns: 1fr;

    }

    .profile-left-column {
        padding: 0px;
    }

    .filter-select {

        width: 100%;

        min-width: 100%;

    }

    .article-meta {

        flex-direction: column;

        gap: 8px;

    }

    .tab-content {
        padding: 10px 0;
    }

    .tab-content>.tab-pane.active>.tab-header>a.button-primary {
        width: auto;
    }

}

@media (max-width: 360px) {
    .tab-content>.tab-pane.active>.tab-header>a.button-primary {
        width: 100%;
    }
}


/* Стили для данных пользователя с пунктирными линиями */
.data-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 15px;
    padding-bottom: 8px;
    position: relative;
}

.data-row::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    border-bottom: 1px dashed #d0d0d0;
}

.data-row:last-child {
    margin-bottom: 0;
}

.data-row:last-child::after {
    display: none;
}

.data-label {
    /* width: 180px; */
    font-weight: 600;
    color: #555;
    padding-right: 10px;
}

.data-value {
    flex: 1;
    text-align: right;
    color: #333;
    font-weight: normal;
    word-break: break-word;
}

/* Стили для значка передачи прав статей */
.transfer-pending-badge {
    margin-left: 8px;
    font-size: 1.1em;
    opacity: 0.8;
    vertical-align: middle;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}
