/**
 * Forum Content Fix - Ensures that all forum content displays properly without truncation
 */

/* Core content fixes */
.topic-body, 
.reply-content,
.forum-content-container .entry-content,
.forum-content p,
.topic-content p,
.reply-content p {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    box-sizing: border-box;
}

/* Container fixes */
.topic-content, 
.reply,
.forum-content-container {
    width: 100%;
    box-sizing: border-box;
}

/* Ensure all text elements break properly */
.forum-content-container h1,
.forum-content-container h2,
.forum-content-container h3,
.forum-content-container h4,
.forum-content-container h5,
.forum-content-container h6,
.forum-content-container p,
.forum-content-container li,
.forum-content-container blockquote,
.forum-content-container pre,
.forum-content-container code {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

/* Fix any absolute positioned elements */
.forum-content-container * {
    max-width: 100%;
}

/* Ensure images don't break layout */
.forum-content-container img {
    max-width: 100%;
    height: auto;
}

/* Long words/URLs fix */
.forum-content-container a {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Prevent overflow from pre/code blocks */
.forum-content-container pre,
.forum-content-container code {
    white-space: pre-wrap;
    max-width: 100%;
    overflow-x: auto;
}

/* Fix for long words in titles */
.topic-title {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}