* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f1f5e8;
    color: #222;
}

a {
    color: inherit;
    font-size: 10px;
    text-decoration: none;
}
.post-heading {
    font-weight: bold;
    margin: 8px 0;
    line-height: 1.25;
}

.post-heading-large {
    font-size: 2em;
}

.post-heading-medium {
    font-size: 1.5em;
}

.post-heading-small {
    font-size: 1.2em;
}

.post-mention {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.post-mention:hover {
    text-decoration: underline;
}
button {
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    opacity: 0.85;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    margin: 6px 0;
    border: 1px solid #bbb;
    border-radius: 10px;
    font-size: 15px;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* ==================================================
   NAVBAR
================================================== */

.navbar {
    background: #4b7f2c;
    color: white;
    padding: 14px 20px;
}

.navbar-inner {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

nav a {
    font-weight: bold;
}

/* ==================================================
   CONTAINER
================================================== */

.container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

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

.auth-section {
    display: flex;
    justify-content: center;
}

.auth-box {
    width: 100%;
    max-width: 500px;
    background: white;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* ==================================================
   POSTS
================================================== */

.create-post,
.post,
.people-section,
.telecom-section,
.chat-create,
.profile-card,
.profile-posts {
    background: white;
    padding: 20px;
    margin: 20px 0;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

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

.post-header span {
    color: #777;
}

.post-content {
    white-space: pre-wrap;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* ==================================================
   PEOPLE
================================================== */

.person {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    margin: 8px 0;
    border-radius: 12px;
    background: #f5f5f5;
}

.person:hover {
    background: #e8eee1;
}

.avatar,
.avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.avatar {
    object-fit: cover;
}

.avatar-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #d9e8c9;
    font-size: 25px;
}

/* ==================================================
   COMMENTS
================================================== */

.comments {
    margin-top: 15px;
    padding: 15px;
    background: #f4f6f1;
    border-radius: 12px;
}

.comment {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.comment:last-child {
    border-bottom: none;
}

.comment span {
    color: #777;
    font-size: 13px;
}

.comment p {
    margin-bottom: 0;
}

.comment-form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.comment-form input {
    margin: 0;
}

/* ==================================================
   PROFILE
================================================== */

.profile-card {
    text-align: center;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
}

.profile-bio {
    color: #666;
    max-width: 600px;
    margin: 15px auto;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.stat {
    background: #eef4e8;
    padding: 15px 25px;
    border-radius: 12px;
}

.stat strong,
.stat span {
    display: block;
}

.stat strong {
    font-size: 25px;
}

/* ==================================================
   TELECOM
================================================== */

.telecom-section {
    text-align: center;
}

.telecom-button {
    display: inline-block;
    background: #4b7f2c;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: bold;
}

/* ==================================================
   SHREKCHAT
================================================== */

.room {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px;
    margin: 10px 0;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.chat-messages {
    background: white;
    border-radius: 15px;
    padding: 15px;
    height: 500px;
    overflow-y: auto;
    margin: 15px 0;
}

.chat-message {
    padding: 10px;
    margin-bottom: 8px;
    background: #f1f5e8;
    border-radius: 10px;
}

.chat-message span {
    color: #777;
    font-size: 13px;
}

.chat-message p {
    margin: 5px 0 0;
}

.chat-input {
    display: flex;
    gap: 10px;
}

.chat-input input {
    margin: 0;
}

.empty-box,
.error-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
}

/* ==================================================
   MOBILE
================================================== */

@media (max-width: 700px) {

    .navbar-inner {
        flex-direction: column;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .comment-form,
    .chat-input {
        flex-direction: column;
    }

    .profile-stats {
        flex-direction: column;
    }
}

/* ==================================================
   SHREKBOOK MESSAGE POPUP
================================================== */

#shrekbook-message-popup {

    position: fixed;

    inset: 0;

    z-index: 999999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(0, 0, 0, 0.55);

}


.shrekbook-message-box {

    width:
        min(500px, 100%);

    background:
        white;

    border-radius:
        16px;

    padding:
        30px;

    text-align:
        center;

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, .35);

}


.shrekbook-message-box h2 {

    margin-top: 0;

}


.shrekbook-message-box p {

    font-size: 17px;

    line-height: 1.5;

    white-space: pre-wrap;

    overflow-wrap: anywhere;

}


.shrekbook-message-box button {

    margin-top: 15px;

    padding:
        10px 30px;

    border: none;

    border-radius:
        8px;

    cursor:
        pointer;

    font-size:
        16px;

}


/* ==========================================
   ONLINE STATUS
   ========================================== */

.online-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
    font-size: 13px;
    font-weight: normal;
    color: #28c840;
}

.offline-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
    font-size: 13px;
    font-weight: normal;
    color: #888;
}


/* ==========================================
   ONLINE STATUS
   ========================================== */

.person-avatar-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.person-avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.online-dot {
    position: absolute;

    width: 15px;
    height: 15px;

    right: 0;
    bottom: 0;

    border-radius: 50%;

    border: 3px solid white;

    box-sizing: border-box;
}

.online-dot.online {
    background: #22c55e;
}

.online-dot.offline {
    background: #9ca3af;
}