/* ==========================================================================
   SHELTERGRAM: UNIFIED STYLES
   ========================================================================== */

/* --- 1. МОДАЛЬНЫЕ ОКНА (Пост и Комментарий) --- */
.sg-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}
.sg-modal-box {
    background: #fff;
    width: 450px;
    border-radius: 12px;
    padding: 25px;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    box-sizing: border-box;
}
.sg-modal-close {
    position: absolute;
    top: 15px; right: 15px;
    cursor: pointer;
    color: #8e8e8e;
    font-size: 20px;
    transition: 0.2s;
}
.sg-modal-close:hover { color: #262626; }
.sg-modal-title {
text-transform: lowercase;
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #262626;
    text-align: center;
    border-bottom: 1px solid #efefef;
    padding-bottom: 15px;
}
.sg-input-group {
    display: flex; gap: 10px; margin-bottom: 10px;
}
.sg-input, .sg-textarea {
    width: 100%;
    padding: 8px!important;
    border: 1px solid #dbdbdb!important;
    border-radius: 4px!important;
    font-size: 13px!important;
    box-sizing: border-box;
    font-family: inherit;
}
.sg-input { margin-bottom: 5px; }
.sg-input.mb-15 { margin-bottom: 15px; }
.sg-textarea { margin-bottom: 10px; resize: vertical; }
.sg-input-label {
    display: block; margin: 15px 0 5px 0; font-size: 12px; color: #8e8e8e; font-weight: bold;
}

/* --- 2. КНОПКИ --- */
.sg-btn-primary {
    width: 100%;
    padding: 12px;
    background: #2e2e2e;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
    text-align: center;
    box-sizing: border-box;
    user-select: none;
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: lowercase;
}
.sg-btn-primary:hover { background: #000000; }

.sg-open-post-btn {
    background: #2e2e2e;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
text-transform: lowercase;

}
.sg-open-post-btn:hover { background: #000000; }
.sg-open-post-wrap {
    display: flex; justify-content: flex-end; margin-bottom: 20px; width: 100%; box-sizing: border-box;
}

.sg-reply-btn {
    background: transparent;
    color: #2e2e2e;
    text-transform: uppercase;
    margin-bottom: 15px;
    border: 1px solid #2e2e2e;
    padding: 6px 15px;
    border-radius: 6px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
    user-select: none;
}
.sg-reply-btn:hover { background: #2e2e2e; color: #fff; }
.sg-reply-wrap {
    margin-top: 15px; display: flex; justify-content: flex-end;
}
/* --- 3. ГЕНЕ АТО  П ОФИЛЯ (sns_header.js) --- */
.sg-generator-box {
width: 99%;
    background: #fafafa;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    font-family: 'Segoe UI', sans-serif;
}
.sg-generator-title {
    margin: 0 0 20px 0;
    font-size: 16px;
    text-transform: uppercase;
    color: #262626;
    letter-spacing: 1px;
    border-bottom: 1px solid #efefef;
    padding-bottom: 10px;
}
.sg-generator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sg-generator-subtitle { display: block; margin-bottom: 10px; color: #2e2e2e; font-weight: bold; }
.sg-gen-btn { margin-top: 25px; }

/* Динамическая кнопка подписки внутри профиля */
.insltractionbtn {
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; font-weight: bold; transition: 0.2s;
    padding: 8px 0; width: 100%; border-radius: 4px;
}
.insltractionbtn.following { background: #efefef; color: #262626; border: 1px solid #dbdbdb; }
.insltractionbtn.following:hover { background: #e0e0e0; }
.insltractionbtn:not(.following) { background: #111; color: #fff; border: 1px solid #111; }
.insltractionbtn:not(.following):hover { background: #333; }

/* --- 4. ЛЕМЕНТЫ ЛЕНТЫ (feed_test.js) --- */
.sg-filter-box {
    width: 100%; max-width: 540px; padding: 15px 20px; background: #fff; 
    margin-bottom: 20px; border-radius: 8px; border: 1px solid #dbdbdb; 
    display: flex; justify-content: space-between; align-items: center; box-sizing: border-box;
}
.sg-filter-title { font-size: 14px; font-weight: bold; color: #262626; }
.sg-filter-tag { color: #2e2e2e; }
.sg-filter-reset {
    background: #efefef; border: none; padding: 6px 12px; border-radius: 4px; 
    cursor: pointer; font-size: 12px; font-weight: bold; color: #262626; transition: 0.2s;
}
.sg-filter-reset:hover { background: #e0e0e0; }

.sg-new-prof-header {
    width: 100%; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; 
    box-sizing: border-box; border-bottom: 1px solid #efefef;
}
.sg-new-prof-label { font-size: 11px; color: #8e8e8e; text-transform: uppercase; font-weight: bold; letter-spacing: 0.5px; }
.sg-new-prof-link { font-size: 12px; color: #00376b; text-decoration: none; font-weight: bold; transition: 0.2s; }
.sg-new-prof-content { padding: 20px; width: 100%; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; }
.sg-new-prof-info { display: flex; align-items: center; gap: 15px; }
.sg-new-prof-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 1px solid #dbdbdb; padding: 2px; }
.sg-new-prof-name { font-size: 14px; font-weight: bold; color: #262626; margin-bottom: 3px; display: flex; align-items: center; }
.sg-new-prof-desc { font-size: 13px; color: #8e8e8e; }
.sg-like-col { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sg-like-count-small { font-size: 11px; font-weight: bold; color: #8e8e8e; }

.sg-post-author-wrap { text-decoration: none; color: inherit; display: flex; align-items: center; gap: 8px; }
.sg-post-author-img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 1px solid #efefef; }
.sg-post-tags span { cursor: pointer; color: #00376b; transition: 0.2s; }
.sg-post-tags span:hover { color: #2e2e2e; }
.sg-big-heart-icon { font-family: 'Material Symbols Rounded'; font-size: 80px; color: #fff; user-select: none; text-shadow: 0 4px 15px rgba(0,0,0,0.3); }

/* Комментарии в ленте */
.sg-comments-wrap { width: 100%; border-top: 1px solid #efefef; padding: 15px 25px; box-sizing: border-box; background: #fafafa; }
.sg-comments-title { font-size: 12px; font-weight: bold; color: #8e8e8e; text-transform: uppercase; }
.sg-subcomments-wrap { margin-left: 20px; border-left: 2px solid #efefef; padding-left: 15px; margin-top: 15px; }
.sg-comment-box { margin: 15px 0 0 0; width: 100%; box-sizing: border-box; background: transparent; }
.sg-comment-quote { color: #dbdbdb; }
.sg-comment-text { font-size: 13px; margin: 0 0 10px 0; color: #262626; }
.sg-comment-div { background: #efefef; }
.sg-comment-footer { display: flex; justify-content: space-between; align-items: center; }
.sg-comment-user { display: flex; align-items: center; gap: 10px; }
.sg-comment-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid #dbdbdb; }
.sg-comment-name { font-size: 12px; font-weight: bold; color: #262626; }
.sg-comment-role { font-size: 11px; color: #8e8e8e; }
.sg-comment-like-wrap { display: flex; align-items: center; gap: 6px; }
.sg-comment-like-count { font-size: 12px; font-weight: bold; color: #8e8e8e; }
.sg-comment-like-btn { cursor: pointer; display: flex; align-items: center; }
.sg-comment-like-icon { font-family: var(--font-symbol, 'Material Symbols Outlined'); font-size: 16px; color: #8e8e8e; user-select: none; transition: 0.2s; }