/* ===============================
   MINI PROFILE POPUP
=============================== */
.mini-profile-popup {
    position: absolute;
    width: 220px;
    background: #1e1e1e;
    color: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    pointer-events: none;
}

.mini-profile-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mp-avatar {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    object-fit: cover;
}

.mp-info h4 {
    margin: 0;
    font-size: 14px;
}

.mp-info p {
    margin: 2px 0 0;
    font-size: 12px;
    opacity: 0.8;
}

/* ===============================
   MAIN CONTENT / LAYOUT
=============================== */
.main-content {
    flex: 1;
    min-width: 0;
    width: auto;
    margin: 0 auto;
    padding: 20px;
    margin-left: var(--left-width);
    margin-right: var(--right-width);
}

.home-main-content {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

.container-wrapper {
    max-width: 1380px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 24px;
}

/* ===============================
   SHARED PANELS
=============================== */
.write-post-container,
.post-container,
.sidebar-section {
    background: var(--bg-panel);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    border-radius: 24px;
    padding: 18px 22px;
    margin-bottom: 18px;
}

/* ===============================
   USER PROFILE / AVATARS
=============================== */
.user-profile {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.write-post-container .post-header-text p {
    margin: 0;
    font-weight: 700;
    color: var(--text-main);
}

.write-post-container .post-header-text small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--text-muted);
}

.user-profile img,
.write-post-container .user-profile img,
.write-post-container .user-profile img.avatar-small,
.avatar-small {
    width: 50px;
    height: 50px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}

.user-profile img,
.write-post-container .user-profile img {
    margin-right: 12px;
}

.user-profile p {
    margin: 0;
    font-weight: 700;
    color: var(--text-main);
}

.user-profile span,
.user-profile small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ===============================
   WRITE POST BOX
=============================== */
.write-post-container {
    background: linear-gradient(180deg, #ffffff 0%, #fcf9ff 100%);
    border: 1px solid rgba(195, 160, 253, 0.18);
    border-radius: 24px;
    box-shadow: 0 8px 18px rgba(120, 80, 180, 0.06);
    padding: 20px 22px;
    margin-bottom: 22px;

}

.write-post-container .user-profile {
    margin-bottom: 12px;
}

.post-input-container textarea {
    width: 100%;
    min-height: 96px;
    resize: vertical;
    padding: 14px 16px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--border-soft);
    color: var(--text-main);
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.post-input-container textarea:focus {
    border-color: rgba(212, 146, 253, 0.45);
    box-shadow: 0 0 0 3px rgba(212, 146, 253, 0.12);
}

.post-input-container button,
.add-post-links .post-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 8px 18px rgba(120, 80, 180, 0.18);
}

.post-input-container button:hover,
.add-post-links .post-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    box-shadow: 0 10px 22px rgba(120, 80, 180, 0.24);
}

.post-input-container button img,
.add-post-links .post-btn img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.add-post-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-top: 12px;
}

.mood-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
}

.mood-btn img.mood-icon {
    width: 18px;
    height: 18px;
}

.post-header-text span {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: #6f6a8a;
}

.post-header-text p {
    margin: 0;
}

/* ===============================
   FEED
=============================== */
.post-container {
    background: linear-gradient(180deg, #ffffff 0%, #fcf9ff 100%);
    border: 1px solid rgba(195, 160, 253, 0.18);
    border-radius: 24px;
    box-shadow: 0 8px 18px rgba(120, 80, 180, 0.06);
    padding: 20px 22px;
    margin-bottom: 22px;
}

.post-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.user-profile {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.user-profile img,
.post-avatar {
    width: 50px;
    height: 50px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}

.post-header-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
}

.post-header-text p {
    margin: 0;
    line-height: 1.2;
}

.post-username,
.username-link {
    color: #1f2240;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    word-break: break-word;
}

.post-date,
.post-header-text span,
.user-profile span,
.user-profile small {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.3;
    color: #6f6489;
}

.post-text {
    margin: 12px 0 14px 0;
    font-size: 15px;
    line-height: 1.5;
    color: #2c2c2c;
    word-break: break-word;
}

.post-img {
    display: block;
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    margin-top: 8px;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 10px;
    font-size: 14px;
    color: #8e79b7;
}

.activity-icons {
    display: flex;
    align-items: center;
    gap: 18px;
}

.activity-icons div {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6f6489;
}

.activity-icons div img {
    display: block;
    width: 18px;
    height: 18px;
}

.post-menu-btn {
    background: none;
    border: none;
    color: #8f7caf;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
    padding: 0;
}

.post-menu-btn:hover {
    opacity: 0.8;
}

.post-container .post-container {
    background: transparent;
    border: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
}

/* ===============================
   LINKS
=============================== */
.username-link {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
    cursor: pointer;
}

.username-link:hover {
    opacity: 0.92;
    text-decoration: none;
}

/* ===============================
   ACTIONS / ICONS
=============================== */
.post-menu-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #8e79b7;
    line-height: 1;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 12px;
    font-size: 14px;
    color: #8e79b7;
}

.like-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
}

.like-btn:hover {
    color: var(--accent-2);
}

.activity-icons {
    display: flex;
    align-items: center;
    gap: 18px;
}

.activity-icons div {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6f6489;
}

.activity-icons div img {
    display: block;
    width: 18px;
    height: 18px;
}

/* ===============================
   COMMENTS
=============================== */
.comment-dropdown {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(195, 160, 253, 0.18);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.comment,
.comment-item {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--text-main);
}

.comment-content {
    max-width: 85%;
    padding: 8px 11px;
    border-radius: 14px;
    background: #f7f2ff;
    color: #444;
}

.comment-username {
    display: inline;
    margin-right: 4px;
    color: #54316f;
    font-weight: 800;
}

.comment-text {
    display: inline;
    line-height: 1.4;
}

.comment-form {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.comment-form input {
    flex: 1;
    min-width: 0;
    padding: 8px 11px;
    border: 1px solid rgba(195, 160, 253, 0.35);
    border-radius: 999px;
    background: #fff;
    color: var(--text-main);
    font-size: 13px;
    outline: none;
}

.comment-form input:focus {
    border-color: rgba(212, 146, 253, 0.55);
    box-shadow: 0 0 0 3px rgba(212, 146, 253, 0.11);
}

.comment-form button {
    padding: 8px 13px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.comment-form button:hover {
    opacity: 0.9;
}

/* ===============================
   SIDEBAR
=============================== */
.sidebar-section {
    border-radius: 18px;
    padding: 15px;
}

/* ===============================
   BOT POST
=============================== */
.bot-post {
    background-color: #f9f9f9;
    border: 1px solid #eee;
}

.bot-post .post-username {
    color: #1876f2;
    font-weight: 600;
}

/* ===============================
   GUEST CONSTRUCTION
=============================== */
.guest-home {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
}

.construction-container {
    position: relative;
    width: 100%;
    max-width: 800px;
}

.construction-img {
    display: block;
    width: 100%;
    border-radius: 10px;
}

.guest-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
}

.guest-overlay h2 {
    margin-bottom: 15px;
    font-size: 32px;
}

.guest-overlay p {
    margin-bottom: 20px;
    font-size: 16px;
}

.guest-overlay .btn {
    padding: 12px 25px;
    border-radius: 6px;
    background: #41db51;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

.guest-overlay .btn:hover {
    background: #2fa737;
}

.post-menu {
    position: relative;
}

.post-menu-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #777;
}

.post-menu-dropdown {
    position: absolute;
    right: 0;
    top: 28px;
    display: none;
    min-width: 150px;
    padding: 6px;
    background: #fff;
    border: 1px solid rgba(195,160,253,0.4);
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    z-index: 80;
}

.post-menu.show .post-menu-dropdown {
    display: block;
}

.post-menu-item {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 9px 11px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #4f4f4f;
    font-size: 13px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.post-menu-item:hover {
    background: #f6efff;
    color: #6b3f91;
}

.post-menu-item.danger {
    color: #a8325d;
    font-weight: 800;
}