/**
 * TBB Forums Styles
 * Matches the TBB site design patterns from portal-style.css
 */

/* Body Background for Forum Pages */
body.single-tbb_forum,
body.single-tbb_forum_post {
    background: #f5f5f5;
}

/* CRITICAL: Override Astra theme flex layout to prevent sidebar display */
body.single-tbb_forum .site-content,
body.single-tbb_forum_post .site-content,
body.single-tbb_forum #content,
body.single-tbb_forum_post #content {
    display: block !important;
}

body.single-tbb_forum .site-content > .ast-container,
body.single-tbb_forum_post .site-content > .ast-container,
body.single-tbb_forum #content > .ast-container,
body.single-tbb_forum_post #content > .ast-container {
    display: block !important;
    flex-direction: column !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Ensure no elements try to float or flex side-by-side */
body.single-tbb_forum #primary,
body.single-tbb_forum_post #primary,
body.single-tbb_forum #secondary,
body.single-tbb_forum_post #secondary {
    width: 100% !important;
    flex: none !important;
    float: none !important;
}

/* New Simple Header Design */
.forum-page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 40px;
}

.forum-header-simple {
    background: #fff;
    padding: 30px 40px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #45a0ab;
}

.forum-header-content {
    max-width: 100%;
}

.forum-breadcrumb-simple {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.forum-breadcrumb-simple a {
    color: #45a0ab;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forum-breadcrumb-simple a:hover {
    color: #3d8e98;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #999;
}

.forum-title-simple {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.forum-stats-simple {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.forum-stats-simple span {
    font-weight: 500;
}

/* Action Bar with New Post Button */
.forum-action-bar {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.forum-new-post-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: #45a0ab;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(69, 160, 171, 0.3);
}

.forum-new-post-btn:hover {
    background: #3d8e98;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(69, 160, 171, 0.4);
}

.forum-new-post-btn .btn-icon {
    font-size: 20px;
}

.forum-login-prompt {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 30px;
    border: 2px dashed #e0e0e0;
}

.forum-login-prompt p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

.forum-login-prompt a {
    color: #45a0ab;
    font-weight: 600;
    text-decoration: none;
}

.forum-login-prompt a:hover {
    text-decoration: underline;
}

/* Modal Styles */
.tbb-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tbb-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.tbb-modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tbb-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #e0e0e0;
    background: #f9f9f9;
}

.tbb-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 22px;
    font-weight: 700;
}

.tbb-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tbb-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

.tbb-modal-body {
    padding: 30px 25px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

.tbb-modal .form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

.forum-cancel-btn {
    padding: 12px 25px;
    background: #f3f3f3;
    color: #666;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.forum-cancel-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.tbb-modal .required {
    color: #d32f2f;
    font-weight: 700;
}

/* Admin Controls */
.forum-admin-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-close-btn {
    background: #fff;
    color: #ff9800;
    border-color: #ff9800;
}

.admin-close-btn:hover {
    background: #ff9800;
    color: #fff;
}

.admin-merge-btn {
    background: #fff;
    color: #2196f3;
    border-color: #2196f3;
}

.admin-merge-btn:hover {
    background: #2196f3;
    color: #fff;
}

.admin-delete-btn {
    background: #fff;
    color: #f44336;
    border-color: #f44336;
}

.admin-delete-btn:hover {
    background: #f44336;
    color: #fff;
}

/* Comment Delete Button - Smaller inline style */
.admin-delete-comment-btn {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    background: #fff;
    color: #f44336;
    border: 1px solid #f44336;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.admin-delete-comment-btn:hover {
    background: #f44336;
    color: #fff;
}

.admin-delete-comment-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.forum-post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

/* Merge Modal */
#tbb-merge-modal .merge-post-selector {
    margin: 20px 0;
}

#tbb-merge-modal select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 15px;
    font-family: inherit;
}

#tbb-merge-modal .merge-warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    color: #856404;
}

#tbb-merge-modal .merge-warning strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

/* Forum Buttons on Welcome Page */
.tbb-forum-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
    justify-content: center;
}

.forum-button {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    background: #45a0ab;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 280px;
}

.forum-button:hover {
    background: var(--e-global-color-astglobalcolor4);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.forum-button .forum-icon {
    font-size: 36px;
    line-height: 1;
}

.forum-button .forum-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.forum-button .forum-info strong {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.forum-button .forum-info small {
    font-size: 13px;
    opacity: 0.9;
    color: #fff;
}

/* Forums List Grid */
.forums-list-container {
    margin: 40px 0;
}

.forums-grid .forum-card {
    text-align: center;
    padding: 30px 20px;
    transition: all 0.3s ease;
}

.forums-grid .forum-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.forum-card-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.forum-card-stats {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

/* Forum Container */
.forum-container {
    width: 100%;
    max-width: 1200px;
    margin: -40px auto 60px;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

main.forum-main,
main.forum-post-main {
    background: transparent;
    padding: 40px 0 60px;
}

.forum-back-link {
    margin-bottom: 20px;
}

.back-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #f3f3f3;
    color: #45a0ab;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #45a0ab;
    color: #fff;
    transform: translateY(-1px);
}

/* Forum Header Stats */
.forum-stats-header {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
}

.forum-stats-header span {
    font-size: inherit;
}

/* New Post Form */
.forum-new-post-section {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #45a0ab;
}

.forum-new-post-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 22px;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
}

.forum-new-post-section h3:before {
    content: "💬 ";
    margin-right: 8px;
    font-size: 20px;
}

.forum-post-form .form-group {
    margin-bottom: 20px;
}

.forum-post-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.forum-post-form input[type="text"],
.forum-post-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.forum-post-form input[type="text"]:focus,
.forum-post-form textarea:focus {
    outline: none;
    border-color: #45a0ab;
    box-shadow: 0 0 0 3px rgba(69, 160, 171, 0.1);
}

.forum-submit-btn {
    padding: 12px 30px;
    background: #45a0ab;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.forum-submit-btn:hover {
    background: #3d8e98;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(69, 160, 171, 0.3);
}

.forum-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Forum Message Notifications */
.forum-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 5px;
    display: none;
}

.forum-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    display: block;
}

.forum-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: block;
}

/* Forum Posts List */
.forum-posts-section {
    margin: 40px 0;
}

.forum-posts-section h3 {
    color: #333;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
}

.forum-posts-section h3:before {
    content: "📋 ";
    font-size: 20px;
}

.forum-posts-section h3 .post-count {
    font-size: 18px;
    opacity: 0.7;
    font-weight: normal;
}

.forum-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.forum-post-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 3px solid #45a0ab;
}

.forum-post-item:hover {
    box-shadow: 0 3px 10px rgba(69, 160, 171, 0.12);
    transform: translateY(-1px);
    border-left-color: #3d8e98;
}

.forum-post-item.post-closed {
    opacity: 0.75;
    border-left-color: #999;
}

.forum-post-item.post-closed:hover {
    border-left-color: #666;
}

.forum-post-avatar {
    flex-shrink: 0;
}

.forum-post-avatar img {
    border-radius: 50%;
}

.forum-post-content {
    flex: 1;
}

.forum-post-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.forum-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forum-post-title a:hover {
    color: #45a0ab;
}

.closed-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #ffebee;
    color: #d32f2f;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid #ffcdd2;
}

.forum-post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.forum-post-meta .post-author strong {
    color: #45a0ab;
}

.forum-post-excerpt {
    color: #555;
    line-height: 1.6;
}

.forum-no-posts {
    text-align: center;
    padding: 50px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.forum-no-posts p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.forum-no-posts p:before {
    content: "📝 ";
    font-size: 28px;
    display: block;
    margin-bottom: 12px;
}

/* Single Forum Post Detail */
.forum-post-detail {
    background: #fff;
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border-left: 4px solid #45a0ab;
}

.forum-post-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.post-author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.post-author-info img,
.reply-author-info img {
    border-radius: 50%;
    border: 2px solid #e0e0e0;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.author-details strong {
    font-size: 18px;
    color: #333;
}

.author-details .post-time {
    font-size: 14px;
    color: #666;
}

.forum-post-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

/* Forum Replies */
.forum-replies-section {
    margin-top: 30px;
    background: #fff;
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #45a0ab;
}

.forum-replies-section h3 {
    color: #333;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
}

.forum-replies-section h3:before {
    content: "💬 ";
    margin-right: 8px;
    font-size: 20px;
}

/* Replies List */
.forum-replies-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.forum-reply {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid #45a0ab;
    margin-bottom: 20px;
}

.reply-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.reply-author-info .author-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reply-author-info .author-details strong {
    color: #333;
    font-size: 16px;
}

.reply-author-info .reply-time {
    color: #999;
    font-size: 13px;
}

.reply-content {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.reply-content p {
    margin: 0 0 10px 0;
}

.reply-content p:last-child {
    margin-bottom: 0;
}

.reply-actions {
    margin-top: 10px;
}

.reply-actions a {
    color: #45a0ab;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.reply-actions a:hover {
    color: #3d8e98;
    text-decoration: underline;
}

/* Nested Replies */
.forum-replies-list .children {
    list-style: none;
    margin-left: 40px;
    margin-top: 15px;
    padding-left: 0;
}

.forum-replies-list .children .forum-reply {
    background: #fff;
    border-left-color: #999;
}

/* Comment Navigation */
.forum-comment-navigation {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 2px solid #f0f0f0;
}

.forum-comment-navigation a {
    color: #45a0ab;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.forum-comment-navigation a:hover {
    color: #3d8e98;
    text-decoration: underline;
}

/* Ensure WordPress default comment classes work */
li.comment,
li.pingback,
li.trackback,
.forum-reply-item {
    list-style: none;
}

.forum-reply {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #45a0ab;
}

.forum-reply .reply-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.forum-reply .reply-author-info img {
    border-radius: 50%;
}

.forum-reply .author-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.forum-reply .author-details strong {
    color: #45a0ab;
    font-size: 15px;
}

.forum-reply .author-details .reply-time {
    font-size: 13px;
    color: #666;
}

.forum-reply .reply-content {
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
}

.forum-reply .reply-actions a {
    color: #45a0ab;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.forum-reply .reply-actions a:hover {
    text-decoration: underline;
}

/* Nested Replies */
.children {
    margin-left: 40px;
    margin-top: 15px;
}

.children .forum-reply {
    background: #fff;
    border-left-color: #999;
}

/* Comment Form Styling */
.comment-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    margin-top: 30px;
}

.comment-form h3 {
    color: #333;
    margin-top: 0;
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.comment-form h3:before {
    content: "✍️ ";
    margin-right: 8px;
    font-size: 16px;
}

/* Login Required Message */
.must-log-in,
.comments-closed {
    text-align: center;
    padding: 30px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    margin-top: 30px;
    font-size: 16px;
    color: #856404;
}

.must-log-in a {
    color: #45a0ab;
    font-weight: 600;
    text-decoration: underline;
}

.must-log-in a:hover {
    color: #3d8e98;
}

.comment-form-comment label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.comment-form-comment textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.comment-form-comment textarea:focus {
    outline: none;
    border-color: #45a0ab;
    box-shadow: 0 0 0 3px rgba(69, 160, 171, 0.1);
}

.form-submit {
    margin-bottom: 0;
}

.form-submit .submit {
    padding: 12px 30px;
    background: #45a0ab;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-submit .submit:hover {
    background: #3d8e98;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(69, 160, 171, 0.3);
}

/* Pagination */
.forum-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.forum-pagination a,
.forum-pagination .current {
    padding: 10px 15px;
    background: #f3f3f3;
    color: #45a0ab;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.forum-pagination a:hover,
.forum-pagination .current {
    background: #45a0ab;
    color: #fff;
}

/* Access Denied Messages */
.forum-access-denied,
.forum-access-denied-page,
.forum-login-required,
.forum-no-access {
    text-align: center;
    padding: 60px 40px;
    background: #fff;
    border-radius: 8px;
    margin: 40px auto;
    max-width: 600px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #d32f2f;
}

.forum-access-denied h1,
.forum-access-denied-page h1 {
    color: #d32f2f;
    margin-bottom: 20px;
    font-size: 32px;
}

.forum-access-denied h1:before,
.forum-access-denied-page h1:before {
    content: "🚫 ";
    display: block;
    font-size: 48px;
    margin-bottom: 15px;
}

.forum-access-denied p,
.forum-access-denied-page p,
.forum-login-required p,
.forum-no-access p {
    color: #666;
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .forum-container,
    .forum-page-wrapper {
        padding: 0 30px;
    }
}

@media (max-width: 1024px) {
    .forum-container,
    .forum-page-wrapper {
        padding: 0 25px;
    }
}

@media (max-width: 768px) {
    .forum-page-wrapper {
        padding: 20px 15px;
    }
    
    .forum-header-simple {
        padding: 20px;
    }
    
    .forum-title-simple {
        font-size: 24px;
    }
    
    .forum-replies-list .children {
        margin-left: 20px;
    }
    
    .forum-reply {
        padding: 15px;
    }
    
    .forum-new-post-section,
    .forum-post-detail,
    .forum-replies-section {
        padding: 25px 20px;
    }
    
    .tbb-forum-buttons {
        flex-direction: column;
    }
    
    .forum-button {
        width: 100%;
        justify-content: center;
    }
    
    .forum-post-item {
        flex-direction: column;
        padding: 20px;
    }
    
    .forum-new-post-section,
    .forum-post-detail,
    .forum-replies-section {
        padding: 25px 20px;
        border-radius: 8px;
    }
    
    .forum-description {
        padding: 20px;
    }
    
    .forum-new-post-section h3,
    .forum-posts-section h3,
    .forum-replies-section h3 {
        font-size: 20px;
    }
    
    .children {
        margin-left: 15px;
    }
    
    .forum-post-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .forum-stats-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .forum-stats-header span {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .forum-container,
    .forum-page-wrapper {
        margin: -25px auto 40px;
        padding: 0 20px;
    }
    
    main.forum-main,
    main.forum-post-main {
        padding: 30px 0 40px;
    }
    
    .forum-access-denied,
    .forum-access-denied-page {
        padding: 40px 20px;
        margin: 30px 15px;
    }
    
    .forum-post-title {
        font-size: 18px;
    }
    
    .forum-submit-btn,
    .form-submit .submit {
        width: 100%;
        padding: 12px 25px;
    }
    
    .must-log-in,
    .comments-closed {
        padding: 20px;
        font-size: 15px;
    }
    
    .forum-post-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .forum-admin-controls {
        width: 100%;
        justify-content: flex-start;
    }
    
    .admin-btn {
        font-size: 12px;
        padding: 7px 12px;
    }
    
    .tbb-modal-content {
        width: 95%;
    }
    
    .tbb-modal-body {
        padding: 20px;
    }
    
    .tbb-modal .form-actions {
        flex-direction: column;
    }
    
    .tbb-modal .form-actions button {
        width: 100%;
    }
}

/* Additional mobile adjustments */
@media (max-width: 480px) {
    .forum-container,
    .forum-page-wrapper {
        padding: 0 15px;
        margin: -20px auto 30px;
    }
    
    .forum-header-simple {
        padding: 18px;
    }
    
    .forum-title-simple {
        font-size: 19px;
    }
    
    .forum-breadcrumb-simple {
        font-size: 11px;
    }
    
    .forum-stats-simple {
        font-size: 11px;
        gap: 8px;
    }
    
    .forum-new-post-section,
    .forum-post-detail,
    .forum-replies-section {
        padding: 18px;
    }
    
    .forum-reply {
        padding: 12px;
    }
    
    .forum-submit-btn,
    .form-submit .submit {
        font-size: 14px;
    }
    
    .forum-new-post-btn {
        font-size: 14px;
        padding: 12px 24px;
    }
    
    .forum-new-post-btn .btn-icon {
        font-size: 18px;
    }
    
    .tbb-modal-header h3 {
        font-size: 18px;
    }
    
    .admin-btn {
        font-size: 11px;
        padding: 6px 10px;
    }
}

@media (min-width: 1025px) {
    .forums-grid ul.members_list.category_list li {
        max-width: calc(33.33% - 30px * 2 / 3);
    }
}

/* Removed - using new container styles */

.forum-description {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 30px;
    background: #f9f9f9;
    border-radius: 6px;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    border: 1px solid #e0e0e0;
}

/* Loading States */
.forum-loading {
    text-align: center;
    padding: 40px;
    color: #45a0ab;
}

.forum-loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Character Counter */
.char-counter {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

