/* === Стили для страницы детального профиля (Profile Page) === */

.profile-page-container {
    display: flex;
    flex-direction: row;
    /* <-- Вот исправление! */
    gap: var(--grid-gap);
    align-items: flex-start;
}

.profile-sidebar {
    flex: 0 0 280px;
    background-color: var(--common-second-bg-color);
    padding: var(--container-padding);
    border-radius: var(--border-radius-main);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    color: var(--common-text-color);
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--common-third-color-bg);
}

.social-link-card {
    background-color: var(--common-third-color-bg);
    padding: 15px;
    border-radius: var(--border-radius-small);
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.social-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.social-platform-name {
    display: block;
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 5px;
    text-transform: capitalize;
}

.social-username {
    display: block;
    font-size: 0.9rem;
    color: var(--link-text-color);
    word-break: break-all;
}

.social-username:hover {
    color: var(--link-hover-text-color);
}

.profile-main-content {
    flex: 1;
    background-color: var(--common-second-bg-color);
    padding: var(--container-padding);
    border-radius: var(--border-radius-main);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    min-height: 500px;
}

.profile-main-content h2,
.profile-main-content h3 {
    color: var(--common-text-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--common-third-color-bg);
}

.profile-main-content h2 {
    font-size: 1.4rem;
    font-weight: var(--font-weight-bold);
}

.profile-main-content h3 {
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    margin-top: 25px;
}

.profile-main-content p {
    margin-bottom: 10px;
    line-height: 1.7;
    color: var(--common-text-color);
}

.profile-main-content p strong {
    color: #bdbdbd;
    margin-right: 5px;
}

.group-status-container {
    margin-top: 1rem;
    background-color: var(--common-second-bg-color);
    padding: 20px;
    border: 1px solid #52525b;
    border-radius: 15px;
}

.profile-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.group-status-title {
    color: var(--common-text-color);
    margin: 0px;
    padding-bottom: 10px;
    border-bottom: 1px solid #52525b;
    text-align: center;
}

.status-indicator {
    padding: 3px 8px;
    border-radius: var(--border-radius-icon);
    font-size: 0.85rem;
    font-weight: var(--font-weight-bold);
}

.status-indicator.active {
    background-color: #22c55e;
    color: #fff;
}

.status-indicator.inactive {
    background-color: #ef4444;
    color: #fff;
}

/* === Адаптивность для страницы профиля === */
@media (max-width: 992px) {
    .profile-page-container {
        flex-direction: column;
    }

    .profile-sidebar {
        flex: 1 1 auto;
        width: 100%;
        margin-bottom: var(--grid-gap);
    }
}

@media (max-width: 768px) {
    .profile-sidebar {
        flex-basis: auto;
    }

    .profile-main-content h2 {
        font-size: 1.3rem;
    }

    .profile-main-content h3 {
        font-size: 1rem;
    }

    .news-modal {
        padding: 15px;
    }

    .news-modal-content {
        padding: 25px;
    }
}

/* User Modal Styles (based on news-modal) */
.user-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.user-modal-content {
    background: #232326;
    color: #fff;
    border-radius: 18px;
    padding: 40px 48px 36px 48px;
    max-width: 700px;
    width: 90vw;
    min-width: 340px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    position: relative;
    animation: modalShow 0.25s cubic-bezier(.4, 2, .6, 1) both;
    font-size: 1.08rem;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .user-modal-content {
        max-width: 98vw;
        padding: 24px 8vw;
    }
}

@keyframes modalShow {
    from {
        transform: translateY(40px) scale(0.98);
        opacity: 0;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

.user-modal-close-btn {
    position: absolute;
    top: 18px;
    right: 24px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 2;
}

.user-modal-close-btn:hover {
    color: #ff5c5c;
}

.user-modal-content hr {
    border: none;
    border-top: 1px solid #39393b;
    margin: 18px 0 14px 0;
}

.user-modal-content p {
    margin: 0 0 10px 0;
    word-break: break-word;
}

.user-modal-content strong {
    color: #e0e0e0;
    font-weight: 600;
}

.user-modal-content .section-title {
    font-size: 1.13rem;
    font-weight: 700;
    margin: 18px 0 8px 0;
    color: #fff;
}

/* Кастомный скроллбар */
.user-modal-content::-webkit-scrollbar {
    width: 8px;
    background: transparent;
}

.user-modal-content::-webkit-scrollbar-thumb {
    background: #39393b;
    border-radius: 6px;
}

.user-modal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.user-modal-content {
    scrollbar-width: thin;
    scrollbar-color: #39393b #232326;
}

.show-full-info-btn {
    background: var(--link-text-color);
    color: var(--common-bg-color);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: background 0.2s ease-in-out;
    font-weight: var(--font-weight-bold);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .user-modal {
        padding: 15px;
    }

    .user-modal-content {
        padding: 25px;
    }
}