
/* blogs.css - Blog and Forum layouts */

body {

    overflow-x: hidden;

}

html {

    overflow-x: hidden;

}

#blog-section .blog-layout {

    display: flex;
    gap: 24px;
    align-items: stretch;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0 16px 10px 0;
    box-sizing: border-box;

}

#blog-section .blog-article {

    flex: 0 0 60%;
    max-width: 900px;
    margin: 0;
    padding: 10px 0 10px 16px;
    overflow-wrap: break-word;
    word-wrap: break-word;

}

#blog-section .blog-article h1 {

    text-align: center;
    line-height: 1.4;
    margin: 18px 0 10px;

}

#blog-section .blog-article h2 {

    text-align: center;
    line-height: 1.4;
    margin: 18px 0 10px;

}

#blog-section .blog-article h3 {

    text-align: center;
    line-height: 1.4;
    margin: 18px 0 10px;

}

#blog-section .blog-article p {

    text-align: justify;
    line-height: 1.8;

}

#blog-section .blog-article li {

    text-align: justify;
    line-height: 1.8;

}

#blog-section .blog-article ul {

    text-align: justify;
    line-height: 1.8;

}

#blog-section .blog-article p {

    text-indent: 2em;
    margin-top: 0.85em;

}

#blog-section .blog-article pre {

    text-align: left;
    white-space: pre-wrap;
    background: #f8f8f8;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin: 16px auto;
    overflow-x: auto;
    max-width: 100%;

}

#blog-section .blog-article code {

    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

}

#blog-section .chat-bar {

    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    position: static;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 10px 16px 10px 12px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 80px);
    overflow-x: hidden;

}

.chat-bar h3 {

    margin: 0 0 10px;
    text-align: center;

}

.chat-messages {

    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: none;
    border-radius: 0;
    background: transparent;
    flex: 1 1 auto;
    margin-bottom: 10px;

}

.chat-msg {

    background: #ffffff;
    border-left: 3px solid #2978F0;
    padding: 8px 10px;
    font-size: 0.95rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    position: relative;

}

.chat-msg .delete-btn {

    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff5c5c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;

}

.chat-msg:hover .delete-btn {

    opacity: 1;

}

.chat-msg .delete-btn:hover {

    background: #cc0000;

}

.chat-meta {

    font-size: 0.75rem;
    color: #777;
    margin-bottom: 4px;

}

.chat-form {

    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;

}

.chat-form input {

    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.95rem;
    box-sizing: border-box;

}

.chat-form textarea {

    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.95rem;
    box-sizing: border-box;

}

.chat-form button {

    background: #2978F0;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 600;

}

.chat-form button:hover {
 background: #1a5fc4; 
}

.chat-form-input-row {

    display: flex;
    gap: 8px;
    align-items: flex-start;
    position: relative;

}

.chat-textarea {

    flex: 1;

}

.emoji-btn {

    width: 50px;
    height: 42px;
    font-size: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;

}

.emoji-picker {

    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    max-width: 440px;

}

.emoji-grid {

    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    font-size: 1.5rem;

}

.emoji-option {

    cursor: pointer;
    text-align: center;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;

}

.emoji-option:hover {

    background: #f0f0f0;

}
