/* =========================================================
   ZINTZO FORUMS
   Main stylesheet
   ========================================================= */


/* =========================================================
   1. GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

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

img {
    max-width: 100%;
}

a {
    color: #333;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

/* =========================================================
   NOTIFICATIONS
   ========================================================= */

.notification-title {
    width: 900px;
    max-width: calc(100% - 20px);
    margin: 20px auto;
}

.notification-title h1 {
    margin: 0;
    color: #3b6ea5;
}

.notification-count {
    vertical-align: middle;
    font-size: 16px;1
}

.notification {
    display: flex;
    align-items: flex-start;
    gap: 15px;

    width: 900px;
    max-width: calc(100% - 20px);

    margin: 15px auto;
    padding: 15px;

    background: white;

    border: 1px solid #cfcfcf;
    border-left: 5px solid #3b6ea5;

    border-radius: 6px;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);

    cursor: pointer;
}

.notification:hover {
    background: #f8fbff;
}

.notification-profile {
    flex-shrink: 0;
}

.notification .avatar {
    width: 64px;
    height: 64px;

    object-fit: cover;

    border: 3px solid #3b6ea5;
    border-radius: 8px;
    padding: 3px;
}

.notification .info {
    min-width: 0;
}

.notification .username {
    display: inline-block;

    margin: 0 0 5px;

    color: #3b6ea5;
    font-size: 18px;
    font-weight: bold;

    text-decoration: none;
}

.notification .username:hover {
    text-decoration: underline;
}

.notification .message {
    margin: 5px 0;
}

.notification .date {
    color: gray;
}


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

@media (max-width: 600px) {

    .notification-title {
        width: auto;
    }

    .notification {
        width: auto;
        max-width: none;

        margin: 10px 8px;
        padding: 10px;
    }

    .notification .avatar {
        width: 48px;
        height: 48px;
    }

    .notification .username {
        font-size: 16px;
    }

}
/* =========================================================
   2. TOP BAR / NAVIGATION
   ========================================================= */

.topbar {
    padding: 10px;
    background: #424242;
    color: white;
}

.topbar a,
.link {
    color: white;
    text-decoration: none;
    margin-left: 10px;
}

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


/* =========================================================
   3. FORUM BANNER
   ========================================================= */

.banner {
    padding: 15px;
    background: white;
    border-bottom: 1px solid #cccccc;
}

.banner img {
    vertical-align: middle;
}


/* =========================================================
   4. GENERAL PAGE CONTAINER
   ========================================================= */

.page {
    max-width: 900px;
    margin: auto;
    padding: 15px;
}


/* =========================================================
   5. POSTS
   ========================================================= */

.post {
    width: 900px;
    max-width: calc(100% - 20px);
    margin: 20px auto;

    background: white;
    border: 1px solid #cccccc;
}

.post-body {
    display: flex;
}


/* ---------------------------------------------------------
   Post user section
   --------------------------------------------------------- */

.user {
    width: 180px;
    flex-shrink: 0;
    padding: 10px;
    text-align: center;
}

.user img {
    width: 120px;
    height: 120px;
    object-fit: cover;

    border: 2px solid #cccccc;
}

.user h3 {
    margin: 5px;
    color: #3b6ea5;
}

.user small {
    color: gray;
}


/* ---------------------------------------------------------
   Post content section
   --------------------------------------------------------- */

.content {
    flex: 1;
    min-width: 0;
    border-left: 1px solid #dddddd;
}

.post-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;

    padding: 10px;

    background: #fafafa;
    border-bottom: 1px solid #dddddd;
}

.post-text {
    min-height: 120px;
    padding: 15px;

    max-width: 100%;
    overflow: hidden;
}


/* ---------------------------------------------------------
   Post buttons
   --------------------------------------------------------- */

.buttons {
    padding: 10px;
    border-top: 1px solid #dddddd;
}

.buttons img {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.reply {
    float: right;
    color: #333;
}


/* =========================================================
   6. POST IMAGES / QUILL
   ========================================================= */

.post img,
.post-text img,
.mini-post-content img,
.ql-editor img {
    max-width: 100% !important;
    max-height: 500px;

    width: auto !important;
    height: auto !important;

    border-radius: 8px;
    cursor: pointer;
}

.postImage {
    max-width: 100%;
    border-radius: 8px;
    cursor: pointer;

    transition: transform 0.15s;
}

.postImage:hover {
    transform: scale(1.02);
}


/* =========================================================
   7. MINI POSTS / PROFILE POSTS
   ========================================================= */

.mini-post {
    min-height: 100px;
    margin: 12px 0;

    background: white;
    border: 1px solid #999;
}

.mini-post-header {
    padding: 8px 10px;

    background: #f5f5f5;
    border-bottom: 1px solid #bbb;
}

.mini-post-user {
    font-weight: bold;
}

.mini-post-title {
    margin-left: 10px;
}

.mini-post-content {
    min-height: 55px;
    padding: 12px;

    max-width: 100%;
    overflow: hidden;
}

.mini-post-footer {
    padding: 6px 10px;

    border-top: 1px solid #ddd;
    font-size: 13px;
}


/* =========================================================
   8. PROFILE
   ========================================================= */

.profile {
    padding: 15px;

    background: white;
    border: 1px solid #aaa;
}

.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.profile-picture {
    width: 120px;
    height: 120px;

    object-fit: cover;

    border: 1px solid #777;
}

.profile-name {
    margin: 5px 0;
    font-size: 24px;
}

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

.bio {
    margin-top: 15px;
}

.bio-title {
    font-weight: bold;
}

.posts-title {
    margin-top: 25px;
}


/* =========================================================
   9. STATUS
   ========================================================= */

.status {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-top: 15px;
}

.status img {
    width: 55px;
    height: 55px;

    object-fit: cover;

    border: 1px solid #777;
}

.status-message {
    position: relative;

    min-height: 35px;
    padding: 10px;

    background: #f8f8f8;
    border: 1px solid #aaa;
}

/* Speech bubble */

.status-message::before {
    content: "";

    position: absolute;
    left: -8px;
    top: 15px;

    width: 14px;
    height: 14px;

    background: #f8f8f8;

    border-left: 1px solid #aaa;
    border-bottom: 1px solid #aaa;

    transform: rotate(45deg);
}


/* =========================================================
   10. SETTINGS
   ========================================================= */

.settings {
    max-width: 700px;
    margin: 20px;
    padding: 15px;

    background: #f8fbff;
    border: 3px solid #3b6ea5;
    border-radius: 4px;
}

.settings h2 {
    margin-top: 0;
    color: #3b6ea5;
}

.section {
    margin-top: 20px;
    padding: 12px;

    background: white;
    border: 1px solid #cccccc;
}

.section h3 {
    margin-top: 0;
}

.field {
    margin-bottom: 14px;
}

.field label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
}

.settings input,
.settings select {
    width: 100%;
    max-width: 400px;

    padding: 7px;

    border: 1px solid #999;
    border-radius: 3px;

    font-size: 14px;
}

.settings input[type="file"] {
    border: none;
    padding-left: 0;
}


/* =========================================================
   11. BUTTONS
   ========================================================= */

button {
    cursor: pointer;
}

.save {
    margin-top: 10px;
    padding: 7px 14px;

    background: #3b6ea5;
    color: white;

    border: 1px solid #234d78;
    border-radius: 3px;
}

.save:hover {
    background: #315d8c;
}


/* =========================================================
   12. SPECIAL BUTTONS
   ========================================================= */

.danger {
    background: #fff5f5;
    border-color: #aa3333;
}

.back {
    display: inline-block;
    margin-bottom: 10px;

    color: #333;
    text-decoration: none;
}

.back:hover {
    text-decoration: underline;
}

hr {
    border: 0;
    border-top: 1px solid #999;
}


/* =========================================================
   13. NOTIFICATIONS
   ========================================================= */

.badge {
    display: inline-block;

    margin-left: 4px;
    padding: 2px 6px;

    background: red;
    color: white;

    border-radius: 10px;

    font-size: 12px;
}


/* =========================================================
   14. ADS
   ========================================================= */

.ad-post {
    background: white;
}

.ad-content {
    padding: 15px;
    text-align: center;
}


/* =========================================================
   15. LOADING SCREEN
   ========================================================= */

#loadingScreen {
    position: fixed;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background: white;

    z-index: 9999;
}

#loadingScreen img {
    width: 32px;
    height: 32px;
}


/* =========================================================
   16. PIXEL MEMBER COUNTER
   ========================================================= */

.pixel-counter {
    font-family: "Pixelify Sans", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.counterDigit {
    width: 20px !important;
    height: 30px !important;

    vertical-align: middle;
}


/* =========================================================
   17. TEXTAREA / WRITE POST
   ========================================================= */

textarea {
    border-radius: 4px;
    resize: none;
}

.write-post {
    border: 4px solid gray;
    border-radius: 6px;
}

.write-post textarea,
.write-post input,
.write-post button {
    border-radius: 8px;
}


/* =========================================================
   18. COLORS / UTILITY CLASSES
   ========================================================= */

.gray {
    background: #424242;
    color: white;
}


/* =========================================================
   19. MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .page {
        padding: 8px;
    }

    .post {
        width: 100%;
        max-width: 100%;
    }

    .post-body {
        flex-direction: column;
    }

    .user {
        width: 100%;
        border-bottom: 1px solid #ddd;
    }

    .content {
        border-left: none;
    }

    .profile-header {
        gap: 10px;
    }

    .profile-picture {
        width: 90px;
        height: 90px;
    }

    .profile-name {
        font-size: 20px;
    }
}