/* Стили для вкладки статей в профиле */

.tab-pane {

    padding: 0;

}



.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: flex;

    align-items: center;

    gap: 16px;

}



.search-wrapper {

    flex: 1;

}



.filter-search {

    width: 100%;

    padding: 10px 16px;

    border: 1px solid #e5e7eb;

    border-radius: 4px;

    font-size: 0.95rem;

    color: #374151;

    transition: all 0.2s;
    min-width: 150px;


}



.filter-search:focus {

    border-color: #6366f1;

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

    outline: none;

}



.sort-wrapper {

    min-width: 200px;

}



.filter-select {

    width: 100%;

    padding: 10px 16px;

    border: 1px solid #e5e7eb;

    border-radius: 4px;

    font-size: 0.95rem;

    color: #374151;

    background: #fff;

    cursor: pointer;

}



.articles-list {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;

}



.user-article {

    background: #fff;

    border: 1px solid #e5e7eb;

    border-radius: 8px;

    padding: 15px;

    transition: all 0.3s ease;

}



.user-article:hover {

    transform: translateY(-3px);

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

}



.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 a {

    color: #1f2937;

    text-decoration: none;

    transition: color 0.2s;

}



.article-header a:hover {

    color: #6366f1;

}



.article-status-info {
    margin-left: 8px;
    font-size: 0.9rem;
    color: #f59e0b;
    opacity: 0.7;
    cursor: help;
}



.delete-article {

    padding: 8px;

    background: none;

    border: none;

    color: #ef4444;

    cursor: pointer;

    border-radius: 4px;

    transition: all 0.2s;

}



.delete-article:hover {

    background: #fee2e2;

}



.article-meta {

    display: flex;

    gap: 12px;

    color: #6b7280;

    font-size: 0.9rem;

}



.article-actions {

    margin-top: 16px;

    display: flex;

    gap: 8px;
    align-items: center;

}



/* Стили пагинации - делаем более заметными */

.pagination {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 8px;

    /* margin: 0; */

    padding: 0;

    background: #f9fafb;

    border-radius: 4px;

    border: 0 dashed #e5e7eb;
    /* Временно для отладки */

}



.pagination-btn,

.pagination-link {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 12px 16px;
    /* Увеличиваем размер */

    border: 2px solid #e5e7eb;

    border-radius: 4px;

    color: #374151;

    text-decoration: none;

    transition: all 0.2s;

    min-width: 44px;

    font-weight: 500;

}



.pagination-btn:hover,

.pagination-link:hover {

    border-color: #6366f1;

    color: #6366f1;

    background: #f8fafc;

    transform: translateY(-1px);

}



.pagination-current {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 12px 16px;

    background: #6366f1;

    color: #fff;

    border-radius: 4px;

    font-weight: 600;

    min-width: 44px;

    border: 2px solid #6366f1;

}



.button-primary,

.button-secondary {

    display: inline-flex;

    align-items: center;

    padding: 4px 8px;

    border-radius: 4px;

    font-size: 0.95rem;

    font-weight: 500;

    text-decoration: none;

    transition: all 0.2s;

    border: 1px solid transparent;
    width: auto;

}



.button-primary {

    background-color: #2563eb;

    color: #ffffff !important;

}



.button-primary:hover {

    background-color: #1d4ed8;

    color: #ffffff !important;

}



.button-secondary {

    background-color: #f3f4f6;

    color: #374151 !important;

    border-color: #e5e7eb;

}



.button-secondary:hover {

    background-color: #e5e7eb;

    color: #1f2937 !important;



}



/* Стили для тегов */

.tag-list {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 20px;

}



.tag {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 6px 12px;

    background: #f3f4f6;

    border-radius: 20px;

    color: #374151;

    font-size: 0.9rem;

    transition: all 0.2s;

    text-decoration: none;

}



.tag:hover {

    background: #e5e7eb;

    transform: translateY(-2px);

}



.tag-hash {

    color: #6366f1;

    font-weight: 500;

}



.tag-count {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 20px;

    height: 20px;

    padding: 0 6px;

    background: #6366f1;

    color: #fff;

    font-size: 0.75rem;

    border-radius: 10px;

}



.tag-card {

    background: #fff;

    border: 1px solid #e5e7eb;

    border-radius: 4px;

    padding: 20px;

    transition: all 0.3s ease;

}



.tag-card:hover {

    transform: translateY(-3px);

    box-shadow: 0 10px 20px -8px rgba(99, 102, 241, 0.15);

    border-color: #6366f1;

}



.tag-card-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    margin-bottom: 16px;

}



.tag-name {

    font-size: 1.1rem;

    font-weight: 500;

    color: #1f2937;

    text-decoration: none;

}



.tag-name:hover {

    color: #6366f1;

}



.tag-stats {

    display: flex;

    align-items: center;

    gap: 4px;

    color: #6b7280;

    font-size: 0.875rem;

}



.tag-content {

    background: #f8fafc;

    border-radius: 4px;

    padding: 16px;

}



.tag-articles {

    list-style: none;

    padding: 0;

    margin: 0;

}



.tag-articles li {

    padding: 8px 0;

    border-bottom: 1px dashed #e5e7eb;

}



.tag-articles li:last-child {

    border-bottom: none;

}



.tag-articles a {

    color: #4b5563;

    text-decoration: none;

    transition: color 0.2s;

}



.tag-articles a:hover {

    color: #6366f1;

}



/* Стили для списка избранных статей */

.bookmarks-list {

    display: flex;

    flex-direction: column;

    gap: 20px;

    margin: 20px 0;

}



.bookmark-card {

    background: #fff;

    border: 1px solid #e5e7eb;

    border-radius: 8px;

    padding: 15px;

    transition: all 0.3s ease;

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

    position: relative;

    overflow: hidden;

}



.bookmark-card:not(:last-child)::after {

    content: '';

    position: absolute;

    bottom: -10px;

    left: 24px;

    right: 24px;

    height: 1px;

    background: repeating-linear-gradient(to right,

            #d1d5db 0,

            #d1d5db 8px,

            transparent 8px,

            transparent 16px);

}



.bookmark-card:hover {

    transform: translateY(-3px);

    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);

    border-color: #f59e0b;

}



.bookmark-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    margin-bottom: 16px;

    gap: 16px;

}



.bookmark-article-info {

    flex: 1;

}



.bookmark-label {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    font-size: 0.75rem;

    color: #f59e0b;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    font-weight: 600;

    margin-bottom: 6px;

    padding: 4px 8px;

    background: rgba(245, 158, 11, 0.1);

    border-radius: 8px;

}



.bookmark-label::before {

    content: '⭐';

    font-size: 0.8rem;

}



.bookmark-title {

    margin: 0;

    font-size: 1.2rem;

    line-height: 1.4;

}



.bookmark-title a {

    color: #1f2937;

    text-decoration: none;

    transition: color 0.2s;

}



.bookmark-title a:hover {

    color: #f59e0b;

}



.bookmark-actions {

    display: flex;

    gap: 8px;

}



.remove-bookmark-btn {

    padding: 8px;

    background: rgba(245, 158, 11, 0.1);

    border: none;

    border-radius: 4px;

    color: #f59e0b;

    cursor: pointer;

    transition: all 0.2s;

    font-size: 1rem;

}



.remove-bookmark-btn:hover {

    background: #f59e0b;

    color: white;

    transform: scale(1.1);

}



.bookmark-excerpt {

    color: #6b7280;

    line-height: 1.6;

    margin-bottom: 20px;

    font-size: 0.95rem;

    background: #f8fafc;

    padding: 16px;

    border-radius: 4px;

    border-left: 4px solid #f59e0b;

    min-height: 60px;

    display: flex;

    align-items: flex-start;

}



.bookmark-excerpt em {

    color: #9ca3af;

    font-style: italic;

}



.bookmark-meta {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 16px;

    padding-top: 16px;

    border-top: 1px solid #f3f4f6;
    flex-wrap: wrap;

}



.bookmark-stats {

    display: flex;

    gap: 16px;

}



.meta-item {

    display: flex;

    align-items: center;

    gap: 4px;

    color: #6b7280;

    font-size: 0.875rem;

}



.meta-item i {

    font-size: 0.8rem;

}



.bookmark-date {

    display: flex;

    align-items: center;

    gap: 6px;

    color: #9ca3af;

    font-size: 0.8rem;

    white-space: nowrap;

}



.bookmark-date i {

    color: #f59e0b;

    font-size: 0.75rem;

}



/* Плейсхолдер для пустого избранного */

.no-bookmarks-placeholder {

    text-align: center;

    padding: 80px 20px;

    color: #6b7280;

}



.no-bookmarks-placeholder i {

    font-size: 4rem;

    margin-bottom: 20px;

    color: #f59e0b;

    opacity: 0.6;

}



.no-bookmarks-placeholder h4 {

    margin: 0 0 12px 0;

    color: #9ca3af;

    font-size: 1.5rem;

}



.no-bookmarks-placeholder p {

    margin: 0 0 24px 0;

    font-size: 1rem;

    max-width: 500px;

    margin-left: auto;

    margin-right: auto;

    line-height: 1.6;

}



.browse-articles-btn {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 12px 24px;

    background: #f59e0b;

    color: white;

    text-decoration: none;

    border-radius: 4px;

    font-weight: 500;

    transition: all 0.2s;

}



.browse-articles-btn:hover {

    background: #d97706;

    transform: translateY(-1px);

    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);

}



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

.comments-list {

    display: flex;

    flex-direction: column;

    gap: 0px;

    margin: 2px 0;

}



.comment-card {

    background: #fff;

    border: 1px solid #e5e7eb;

    border-radius: 8px;

    padding: 15px;

    transition: all 0.3s ease;

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

    position: relative;
    margin-bottom: 15px;

}



.comment-card:not(:last-child)::after {

    content: '';

    position: absolute;

    bottom: -12px;

    left: 20px;

    right: 20px;

    height: 0;

    background: repeating-linear-gradient(to right,

            #d1d5db 0,

            #d1d5db 8px,

            transparent 8px,

            transparent 16px);

}



.comment-card:hover {

    transform: translateY(-2px);

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

    border-color: #6366f1;

}



.comment-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    margin-bottom: 12px;

    gap: 16px;

}



.comment-article-info {
    flex: 1;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}


.article-label {

    font-size: 0.8rem;

    color: #6b7280;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    margin-bottom: 2px;

    display: block;

}



.article-title {

    margin: 0;

    font-size: 1.05rem;

    line-height: 1.3;

}



.article-title a {

    color: #1f2937;

    text-decoration: none;

    transition: color 0.2s;

}



.article-title a:hover {

    color: #6366f1;

}



.comment-meta {

    display: flex;

    align-items: center;

    gap: 6px;

    color: #6b7280;

    font-size: 0.8rem;

    white-space: nowrap;

}



.comment-meta i {

    font-size: 0.7rem;

}



.comment-content {

    margin-bottom: 16px;

}



.comment-text {

    color: #374151;

    line-height: 1.6;

    font-size: 0.95rem;

    background: #f8fafc;

    padding: 14px;

    border-radius: 4px;

    border-left: 4px solid #6366f1;

}



.comment-footer {

    border-top: 1px solid #f3f4f6;

    padding-top: 12px;

    display: flex;

    justify-content: flex-end;

}



.view-comment-btn {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 4px 8px;

    background: #f3f4f6;

    color: #6b7280;

    text-decoration: none;

    border-radius: 4px;

    font-size: 0.875rem;

    font-weight: 500;

    transition: all 0.2s;

}



.view-comment-btn:hover {

    background: #6366f1;

    color: white;

    transform: translateY(-1px);

}



.view-comment-btn i {

    font-size: 0.75rem;

}



/* Плейсхолдер для пустого состояния комментариев */

.no-comments-placeholder {

    text-align: center;

    padding: 60px 20px;

    color: #6b7280;

}



.no-comments-placeholder i {

    font-size: 3rem;

    margin-bottom: 16px;

    color: #d1d5db;

}



.no-comments-placeholder h4 {

    margin: 0 0 8px 0;

    color: #9ca3af;

    font-size: 1.25rem;

}



.no-comments-placeholder p {

    margin: 0;

    font-size: 0.95rem;

    max-width: 400px;

    margin: 0 auto;

}



/* Обновляем адаптивность */

@media (max-width: 992px){
			.main-content-grid > .content-section > .articles-list {
				display: grid;
				grid-template-columns: repeat(1, 1fr);
				gap: 15px;}
}

@media (max-width: 768px) {

    .bookmark-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 5px;
        padding-top: 10px;
        border-top: 1px solid #f3f4f6;
        flex-wrap: wrap;
    }

    .bookmarks-list>.bookmark-card>.bookmark-content {
        padding: 0;
    }

    .pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 2px;
        margin: 0;
        padding: 0;
        background: #f9fafb;
        border-radius: 4px;
        border: 0 dashed #e5e7eb;
        font-size: 12px;
    }

    .filters-group {

        flex-direction: column;

    }



    .search-wrapper,

    .sort-wrapper {

        width: 100%;

    }



    .articles-list {

        grid-template-columns: 1fr;
        gap: 10px
    }



    .article-meta {

        flex-direction: column;

        gap: 8px;

    }



    .pagination {

        flex-wrap: wrap;

    }



    .tag-card-header {

        flex-direction: column;

        gap: 12px;

    }



    .tag-stats {

        width: 100%;

        justify-content: flex-start;

    }



    .bookmarks-list {

        grid-template-columns: 1fr;

        gap: 15px;

        padding: 12px 0;

    }



    .bookmark-card {

        flex-direction: column;

        min-height: auto;
        padding: 10px;

    }



    .bookmark-image {

        width: 100%;

        height: 140px;

    }



    .bookmark-content {

        padding: 12px 16px;

    }



    .bookmark-title {

        font-size: 1rem;

        -webkit-line-clamp: 3;

        line-clamp: 3;

    }



    .bookmark-excerpt {

        -webkit-line-clamp: 3;

        line-clamp: 3;

    }



    .bookmark-actions {

        opacity: 1;

        background: rgba(255, 255, 255, 0.95);

        padding: 4px;

        border-radius: 4px;

        top: 12px;

        right: 12px;

    }



    .comment-header {

        flex-direction: column;

        align-items: flex-start;

        gap: 8px;

    }



    .comment-meta {

        align-self: flex-start;

    }



    .comment-card {

        padding: 10px;
        margin-bottom: 10px;

    }



    .comment-card:not(:last-child)::after {

        left: 16px;

        right: 16px;

    }



    .comment-text {

        padding: 12px;

    }

}

@media (max-width: 480px) {

    .pagination {
        display: flex;
        align-items: center;
        font-size: 12px;
        justify-content: space-between;
    }

}