body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #ececec;
    color: #1f2f46;
}

/* =========================
   AUTH PAGE
========================= */

.auth-body {
    background: #ececec;
}

.login-page {
    max-width: 1280px;
    margin: 36px auto;
    padding: 0 24px;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
}

.auth-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    min-height: 330px;
    box-sizing: border-box;
}

.login-card,
.register-card {
    width: 430px;
    padding: 28px 26px;
}

.logo-card {
    width: 380px;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.login-card h1,
.register-card h1 {
    margin: 0 0 22px;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #24364d;
}

.login-card form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-card input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #d2d2d2;
    border-radius: 6px;
    font-size: 16px;
    background: #fff;
    color: #333;
}

.login-card input:focus {
    outline: none;
    border-color: #8fb6e8;
    box-shadow: 0 0 0 2px rgba(110, 168, 254, 0.15);
}

.login-card button {
    margin-top: 2px;
    padding: 12px 14px;
    border: none;
    border-radius: 5px;
    background: #4caf50;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.login-card button:hover {
    background: #449d48;
}

.logo-image-wrap {
    width: 100%;
    height: 100%;
}

.logo-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.disabled-register-box,
.login-error {
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 15px;
    text-align: center;
    background: #f8d7da;
    color: #b94a48;
}

.login-error {
    margin-bottom: 14px;
}

/* =========================
   MAIN SITE
========================= */

.site-body {
    background: #ececec;
    color: #24364d;
}

.topbar {
    background: #ffffff;
    border-bottom: 1px solid #dcdcdc;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-inner {
    max-width: 1380px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-brand a {
    color: #24364d;
    text-decoration: none;
    font-size: 28px;
    font-weight: 700;
}

.topbar-search {
    flex: 1;
}

.topbar-search input {
    width: 100%;
    max-width: 420px;
    padding: 11px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 24px;
    font-size: 15px;
    box-sizing: border-box;
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar-nav a {
    color: #24364d;
    text-decoration: none;
    font-weight: 600;
}

.topbar-nav a:hover {
    text-decoration: underline;
}

.site-main {
    max-width: 1380px;
    margin: 24px auto;
    padding: 0 24px 32px;
}

.social-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 280px;
    gap: 22px;
    align-items: start;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 18px;
    box-sizing: border-box;
}

.left-sidebar,
.feed-column,
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-summary-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.avatar-placeholder {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #24364d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
}

.profile-summary-text h2 {
    margin: 0 0 6px;
    font-size: 22px;
}

.profile-summary-text p {
    margin: 0;
    color: #5d6d80;
    word-break: break-word;
}

.profile-summary-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 15px;
}

.sidebar-card h3,
.create-post-card h2 {
    margin-top: 0;
    margin-bottom: 14px;
    color: #24364d;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 10px;
}

.sidebar-list a {
    color: #24364d;
    text-decoration: none;
    font-weight: 600;
}

.sidebar-list a:hover {
    text-decoration: underline;
}

.create-post-card textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    padding: 14px;
    border: 1px solid #d2d2d2;
    border-radius: 10px;
    font-size: 15px;
    box-sizing: border-box;
    font-family: inherit;
}

.create-post-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.create-post-actions button,
.post-footer button {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: #4caf50;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.create-post-actions button:hover,
.post-footer button:hover {
    background: #449d48;
}

.post-card {
    padding: 18px;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.post-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #24364d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.post-author {
    font-weight: 700;
    font-size: 17px;
    color: #24364d;
}

.post-meta {
    font-size: 13px;
    color: #6e7b8c;
    margin-top: 3px;
}

.post-body p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #27374c;
    word-break: break-word;
}

.post-footer {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #ececec;
}

.comments-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #ececec;
}

.comments-section h4 {
    margin: 0 0 14px;
    font-size: 18px;
    color: #24364d;
}

.comment-error {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #f8d7da;
    color: #b94a48;
    font-size: 14px;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
}

.comment-node {
    display: block;
}

.comment-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #24364d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.comment-content-wrap {
    flex: 1;
    min-width: 0;
}

.comment-bubble {
    background: #f3f5f8;
    border-radius: 12px;
    padding: 10px 12px;
}

.comment-author {
    font-weight: 700;
    color: #24364d;
    margin-bottom: 4px;
}

.comment-text {
    color: #27374c;
    line-height: 1.5;
    word-break: break-word;
}

.comment-meta {
    margin-top: 5px;
    font-size: 12px;
    color: #6e7b8c;
}

.no-comments {
    margin: 0 0 14px;
    color: #6e7b8c;
}

.comment-form textarea {
    width: 100%;
    min-height: 72px;
    resize: vertical;
    padding: 12px;
    border: 1px solid #d2d2d2;
    border-radius: 10px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
}

.comment-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.comment-actions button {
    padding: 9px 14px;
    border: none;
    border-radius: 8px;
    background: #4caf50;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.comment-actions button:hover {
    background: #449d48;
}

.reply-list {
    margin-top: 12px;
    margin-left: 18px;
    padding-left: 14px;
    border-left: 2px solid #e2e7ee;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reply-form {
    margin-top: 12px;
}

.reply-form textarea,
.comment-form textarea {
    width: 100%;
    min-height: 64px;
    resize: vertical;
    padding: 11px 12px;
    border: 1px solid #d2d2d2;
    border-radius: 10px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
}

.reply-avatar {
    width: 32px;
    height: 32px;
    font-size: 13px;
}

.reply-bubble {
    background: #eef2f7;
}

@media (max-width: 1150px) {
    .login-page {
        flex-direction: column;
        align-items: center;
    }

    .login-card,
    .register-card,
    .logo-card {
        width: 100%;
        max-width: 520px;
    }

    .logo-card {
        min-height: 320px;
    }

    .social-layout {
        grid-template-columns: 1fr;
    }

    .topbar-inner {
        flex-wrap: wrap;
    }

    .topbar-search {
        order: 3;
        width: 100%;
    }
}