/* ===============================
   Base
================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #050505;
    color: #e9e9f0;
    font-family: Arial, sans-serif;
}

/* Remove visited purple */

a,
a:visited,
a:active {
    color: #e9e9f0;
    text-decoration: none;
}

a:hover {
    color: #ff2e88;
}

/* ===============================
   Fixed Header
================================= */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    padding: 0 60px;
    background: #050505;
    border-bottom: 1px solid #141418;

    display: flex;
    align-items: center;
    z-index: 1000;
}

.brand {
    flex: 1;
}

.brand a {
    font-weight: bold;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 28px;
}

.nav a {
    font-size: 14px;
    color: #6d6d78;
    transition: 0.2s ease;
}

.nav a:hover {
    color: #ff2e88;
}

/* ===============================
   Layout
================================= */

.page {
    max-width: 880px;
    margin: 90px auto 60px auto; /* just below fixed header */
    padding: 0 40px;
}


/* ===============================
   Feed
================================= */

.feed-title {
    font-size: 22px;
    margin-bottom: 60px;
}

/* ===============================
   Cards
================================= */

.feed-card {
    background: #0c0c0f;
    border: 1px solid #141418;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 90px;
    transition: 0.3s ease;
}

.feed-card:hover {
    border-color: #ff2e88;
    box-shadow: 0 0 30px rgba(255, 46, 136, 0.15);
}

/* ===============================
   Post Header
================================= */

.post-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 25px;
}

.post-info {
    flex: 1;
}

.post-author a {
    font-weight: bold;
    font-size: 15px;
}

.post-date {
    font-size: 12px;
    color: #6d6d78;
    margin-top: 4px;
}

.danger-link {
    font-size: 12px;
    color: #ff4d6d;
    opacity: 0.6;
}

.danger-link:hover {
    opacity: 1;
}

/* ===============================
   Post Content
================================= */

.post-title {
    font-size: 18px;
    margin-bottom: 20px;
}

.post-content {
    font-size: 15px;
    line-height: 1.7;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    margin: 20px 0;
}

/* ===============================
   Comments
================================= */

.comments-section {
    margin-top: 40px;
    border-top: 1px solid #141418;
    padding-top: 30px;
}

.comment {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.comment-body {
    flex: 1;
}

.comment-top {
    display: flex;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 5px;
}

.comment-date {
    font-size: 11px;
    color: #6d6d78;
}

.comment-content {
    font-size: 14px;
    line-height: 1.6;
}

/* Comment Form */

.comment-form textarea {
    width: 100%;
    background: #111116;
    border: 1px solid #141418;
    border-radius: 12px;
    padding: 10px;
    color: #e9e9f0;
    resize: none;
    margin-bottom: 8px;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #ff2e88;
}

.comment-form button {
    background: transparent;
    border: 1px solid #ff2e88;
    color: #ff2e88;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.2s ease;
}

.comment-form button:hover {
    background: #ff2e88;
    color: #000;
}

/* ===============================
   Avatars
================================= */

.avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #141418;
}

.avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1a1a20;
}

/* ===============================
   Profile
================================= */

.profile-wrapper {
    max-width: 700px;
    margin: 100px auto 80px auto;
    padding: 0 40px;
}

.profile-card {
    background: #0c0c0f;
    border: 1px solid #141418;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    transition: 0.3s ease;
}

.profile-card:hover {
    border-color: #ff2e88;
    box-shadow: 0 0 25px rgba(255, 46, 136, 0.15);
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #141418;
    margin-bottom: 20px;
}

.profile-username {
    font-size: 22px;
    margin-bottom: 15px;
}

.profile-edit-btn {
    display: inline-block;
    padding: 6px 18px;
    border: 1px solid #ff2e88;
    border-radius: 20px;
    color: #ff2e88;
    margin: 5px;
    transition: 0.2s ease;
}

.profile-edit-btn:hover {
    background: #ff2e88;
    color: #000;
}

.profile-meta-item {
    font-size: 14px;
    color: #6d6d78;
    margin-bottom: 6px;
}

.profile-status {
    margin-bottom: 20px;
    padding: 10px;
    background: #111116;
    border: 1px solid #141418;
    border-radius: 12px;
}

.profile-bio {
    font-size: 14px;
    line-height: 1.6;
    color: #cfcfda;
}

/* Titles */

.profile-title {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.title-member {
    background: #111116;
    border-color: #222;
    color: #888;
}

.title-director {
    background: rgba(255, 46, 136, 0.15);
    border-color: #ff2e88;
    color: #ff2e88;
    box-shadow: 0 0 12px rgba(255, 46, 136, 0.2);
}

/* ===============================
   Inbox
================================= */

.inbox-wrapper {
    max-width: 600px;
    margin: 100px auto;
}

.inbox-item {
    display: block;
    padding: 15px;
    border: 1px solid #141418;
    border-radius: 12px;
    margin-bottom: 10px;
    background: #0c0c0f;
    transition: 0.2s ease;
}

.inbox-item:hover {
    border-color: #ff2e88;
}

/* ===============================
   Chat
================================= */

.chat-wrapper {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 140px);
    max-width: 800px;
    margin: 0 auto;
    background: #0c0c0f;
    border: 1px solid #141418;
    border-radius: 20px;
    overflow: hidden;
}

.chat-header {
    padding: 18px 20px;
    border-bottom: 1px solid #141418;
    font-weight: bold;
    background: #0f0f13;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.chat-message {
    max-width: 65%;
    padding: 10px 14px;
    border-radius: 18px;
    margin-bottom: 12px;
    font-size: 14px;
    word-wrap: break-word;
}

.chat-message.mine {
    background: #ff2e88;
    color: #000;
    align-self: flex-end;
}

.chat-message.theirs {
    background: #1a1a20;
    align-self: flex-start;
}

#chatForm {
    display: flex;
    padding: 15px;
    border-top: 1px solid #141418;
    background: #0f0f13;
}

#chatForm input {
    flex: 1;
    background: #111116;
    border: 1px solid #141418;
    color: #fff;
    padding: 12px;
    border-radius: 20px;
    outline: none;
}

#chatForm input:focus {
    border-color: #ff2e88;
}

#chatForm button {
    margin-left: 10px;
    padding: 10px 18px;
    border-radius: 20px;
    border: 1px solid #ff2e88;
    background: transparent;
    color: #ff2e88;
    cursor: pointer;
    transition: 0.2s ease;
}

#chatForm button:hover {
    background: #ff2e88;
    color: #000;
}

/* ===============================
   Footer
================================= */

.footer {
    text-align: center;
    padding: 60px 0;
    border-top: 1px solid #141418;
    font-size: 12px;
    color: #444;
}

/* Remove page spacing for chat page */

    .chat-page .page {
    margin: 70px 0 0 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

