/* style.css */
.banner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background-color: #f1f1f1;
    padding: 2px;
    font-family: Arial, Helvetica, sans-serif;
    width: 98%;
    margin-left: auto;
    margin-right: auto;
}

.login-text {
    text-align: left;
    background-color: #677a4c;
    padding: 6px;
    opacity: 0.7;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    border-radius: 8px;
    margin: 2px;
}

.login-text a {
    text-decoration: none;
    color: #add8e6;
}

.nav {
    background-color: #677a4c;
    text-align: center;
    padding: 2px;
    font-family: Arial, Helvetica, sans-serif;
    width: 98%;
    margin-left: auto;
    margin-right: auto;
}

.nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

body {
    background-color: #0f0f0f;
    background-image: url('bg_test.png');
    background-repeat: repeat;
    background-attachment: fixed;

    color: white;
    font-family: Arial, Helvetica, sans-serif;
    -webkit-text-size-adjust: 100%;
    /* Prevent font scaling in landscape */
}

.container {
    font-family: Arial, Helvetica, sans-serif;
    width: 98%;
    margin-left: auto;
    margin-right: auto;
    padding: 3px;
    margin-top: 5px;
}

.subforum-container {
    background: #565c4b;
    border-color: #99d160;
    border-radius: 12px;
    border-style: solid;

    padding: 4px;
    margin-top: 12px;
}

.subforum-container a {
    color: white;
}

/* Add your styles here */
.lock-icon {
    color: gray;
}

.pin-icon {
    color: black;
}

.pinned-thread {
    color: yellow;
}

.locked-thread {
    color: grey;
}


.subforum-item {
    background: #1c1c1b;
    border-color: black;
    border-radius: 6px;
    border-style: solid;
    border-width: 1px;
    justify-content: space-between;

    padding: 6px;
    margin-bottom: 2px;
}

.subforum-item .subforum-title a {
    padding: 0;
    margin: 4px;
    font-size: 22px;
    text-decoration: none;
    color: white;
}

.subforum-item .description {
    background-color: grey;
    color: white;
    font-size: small;
    padding: 6px;
    border-radius: 15px;
    border-style: solid;
    border-width: 2px;
}

.subforum-item a {
    text-decoration: underline;
    color: #a7db74;
    padding: 2px;
}

.subforum-item a:hover {
    text-decoration: none;
    color: #c7fa96;
    padding: 2px;
}

.disclaimer {
    color: #ff0000;
    /* Red color */
    font-size: small;
}

.quote {
    font-size: 12px;
    color: grey;
    background-color: black;
    padding: 6px;
    margin-left: 6px;
    border-radius: 6px;
    display: inline-block;
    /* This will make the div act more like an inline element, fitting its content */
    width: auto;
    /* This will make the width match the content, although it's likely not necessary with inline-block */
}

.quote-title {
    font-size: 12px;
    color: white;

    display: inline-block;
    /* This will make the div act more like an inline element, fitting its content */
    width: auto;
    /* This will make the width match the content, although it's likely not necessary with inline-block */
}



.online-badge {
    background-color: green;
    color: white;
}

#subforum-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 4px;
    padding-top: 14px;
    align-items: start;
    /* Add this line */
}

/* --- Consolidated Styles from Header & Index --- */

:root {
    --header-bg: #1a1a1a;
    --header-border: #444;
    --nav-bg: #2c2c2c;
    --accent-color: #99d160;
    --text-primary: #ffffff;
    --text-secondary: #a7db74;
    --online-color: #2ecc71;
    --offline-color: #95a5a6;
    --notification-bg: #4e1d61;
    --verification-bg: #6f5d1b;
    --bg-content: #1a1a1a;
    --border-color: #444;
    --bg-main: #0f0f0f;
    --bg-card: #2c2c2c;
    --text-muted: #888;
}

/* Notification & Verification Banners */
.notification-banner {
    background-color: var(--notification-bg);
    color: var(--text-primary);
    text-align: center;
    padding: 8px;
    font-size: 0.9em;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 15px auto 0 auto;
    border-radius: 8px;
    width: 98%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.notification-banner .dismiss-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2em;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.notification-banner .dismiss-btn:hover {
    opacity: 1;
}

.verification-banner {
    background-color: var(--verification-bg);
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 0.95em;
    font-weight: bold;
    margin: 15px auto 0 auto;
    border-radius: 8px;
    width: 98%;
}

.verification-banner a {
    color: #fff;
    font-weight: bold;
    text-decoration: underline;
}

.verification-banner a:hover {
    color: #eee;
}

/* Header Styles */
.site-header {
    background-color: var(--header-bg);
    background-image: url('header_bg.png');
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid var(--accent-color);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.site-header .logo-area a {
    font-size: 2em;
    font-weight: bold;
    color: var(--text-primary);
    text-decoration: none;
    text-shadow: 2px 2px 4px #000;
}

.site-header .user-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
}

.user-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-menu-toggle .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--header-border);
}

.user-menu-toggle .username {
    font-weight: bold;
    position: relative;
    padding-right: 15px;
}

.user-menu-toggle .username::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--offline-color);
    border: 1px solid #000;
}

.user-menu-toggle .username.online::after {
    background-color: var(--online-color);
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    background-color: var(--nav-bg);
    border: 1px solid var(--header-border);
    border-radius: 5px;
    min-width: 180px;
    z-index: 1000;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.user-menu.active .user-menu-dropdown {
    display: block;
}

.user-menu-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.user-menu-dropdown a:hover {
    background-color: var(--header-border);
}

.header-login-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.header-login-form .input-group {
    display: flex;
    flex-direction: column;
}

.header-login-form input[type="text"],
.header-login-form input[type="password"] {
    padding: 5px;
    border-radius: 3px;
    border: 1px solid var(--header-border);
    background-color: #333;
    color: var(--text-primary);
    font-size: 0.9em;
    width: 150px;
}

.header-login-form .login-button {
    padding: 5px 10px;
    border-radius: 3px;
    border: none;
    background-color: var(--accent-color);
    color: #000;
    font-weight: bold;
    cursor: pointer;
}

.login-links {
    margin-top: 5px;
    font-size: 0.8em;
    text-align: right;
}

.login-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

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

/* Navigation */
.site-nav {
    background-color: var(--nav-bg);
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 8px 8px;
    flex-wrap: wrap;
}

.site-nav .nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 15px 10px;
    display: inline-block;
    transition: color 0.2s ease;
}

.site-nav .nav-link-dynamic {
    padding: 15px 10px;
    display: inline-block;
    transition: opacity 0.2s ease;
    text-decoration: none;
    font-weight: bold;
}

.site-nav .nav-link-dynamic:hover {
    opacity: 0.8;
    color: inherit !important;
}

.site-nav .nav-link-dynamic[style*="background-color"]:hover {
    color: #FFF !important;
    opacity: 0.9;
}

.nav-active {
    border-bottom: 2px solid var(--accent-color) !important;
}

.site-nav .nav-links a:hover {
    color: var(--accent-color);
}

.site-nav .rss-feed a {
    color: #ff9800;
    text-decoration: none;
}

@media (max-width: 800px) {

    .site-header,
    .site-nav {
        justify-content: center;
        padding: 10px;
    }

    .header-login-form {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 280px;
        /* Slightly wider */
        background-color: rgba(0, 0, 0, 0.2);
        /* Background for contrast */
        padding: 10px;
        border-radius: 5px;
    }

    .header-login-form .input-group {
        width: 100%;
        margin-bottom: 5px;
    }

    .header-login-form input {
        width: 100%;
        box-sizing: border-box;
        padding: 8px;
        /* Larger touch target */
        font-size: 16px;
        /* Prevent zoom on focus */
    }

    .header-login-form .login-button {
        width: 100%;
        padding: 8px;
        margin-top: 5px;
    }

    .login-links {
        text-align: center;
        margin-top: 8px;
    }

    /* Adjust header text size for mobile */
    .site-header .logo-area a {
        font-size: 1.5em;
    }
}

/* Layout & Grid */
.landing-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    padding: 20px;
    align-items: start;
}

@media (max-width: 1024px) {
    .landing-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        margin-top: 30px;
    }
}

/* Widgets & Cards */
.widget,
.preview-card {
    background-color: var(--bg-content, #1a1a1a);
    border: 1px solid var(--border-color, #444);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.main-content-area .welcome-text {
    margin-bottom: 30px;
    text-align: center;
}

.main-content h1,
.main-content-area h1 {
    font-size: 2.5em;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--accent-color, #99d160);
}

.main-content-area .welcome-text p {
    font-size: 1.05em;
    line-height: 1.6;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto;
}

.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .content-split {
        grid-template-columns: 1fr;
    }
}

.content-split h2,
.main-content-area h2 {
    font-size: 1.6em;
    border-bottom: 2px solid var(--border-color, #444);
    padding-bottom: 10px;
    margin: 0 0 20px 0;
    color: var(--text-primary);
}

.content-split h2 i,
.main-content-area h2 i {
    margin-right: 10px;
    color: var(--accent-color);
}

.preview-card {
    padding: 0;
    transition: all 0.3s ease;
}

.preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.preview-card-content {
    padding: 15px 20px;
}

.preview-card .card-title a {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-secondary, #a7db74);
    text-decoration: none;
}

.preview-card .card-meta {
    font-size: 0.85em;
    color: var(--text-muted, #888);
    margin-top: 5px;
}

.preview-card .card-meta a {
    font-weight: bold;
    text-decoration: none;
}

.preview-card .card-excerpt {
    color: #ccc;
    margin-top: 10px;
    font-size: 0.9em;
}

.preview-card .stats {
    font-size: 0.85em;
    color: var(--text-muted, #888);
    margin-top: 8px;
}

.preview-card .stats span {
    margin-right: 15px;
}

.preview-card .stats i {
    margin-right: 5px;
}

/* Sidebar */
.sidebar .widget {
    padding: 20px;
}

.sidebar h3 {
    margin-top: 0;
    font-size: 1.2em;
    color: var(--accent-color, #99d160);
    border-bottom: 2px solid var(--border-color, #444);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.stats-widget {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item .stat-number {
    font-size: 1.5em;
    font-weight: bold;
}

.stat-item .stat-label {
    font-size: 0.9em;
    color: var(--text-muted, #888);
}

.online-users-widget {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.online-user {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.online-user .avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.online-user .username {
    font-weight: bold;
    font-size: 0.9em;
}

.cta-widget p {
    font-size: 0.9em;
    color: var(--text-muted, #888);
    text-align: center;
    line-height: 1.5;
    margin-top: 0;
}

.cta-button {
    display: inline-block;
    width: auto;
    padding: 12px 25px;
    margin-top: 15px;
    background-color: var(--accent-color, #99d160);
    border: none;
    border-radius: 5px;
    color: #000;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-widget {
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(153, 209, 96, 0.2);
}

/* Comments & Feed */
.comment-post-box {
    background-color: var(--bg-content, #1a1a1a);
    border: 1px solid var(--border-color, #444);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.comment-post-box-inner {
    display: flex;
    gap: 15px;
}

.comment-post-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-post-main {
    flex-grow: 1;
}

.comment-post-box textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    background-color: var(--bg-main, #0f0f0f);
    border: 1px solid var(--border-color, #444);
    border-radius: 5px;
    color: var(--text-primary, #fff);
    font-size: 1em;
    resize: vertical;
    box-sizing: border-box;
}

.comment-post-box .submit-button {
    padding: 10px 20px;
    background-color: var(--accent-color, #99d160);
    border: none;
    border-radius: 5px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.verification-notice {
    padding: 20px;
    text-align: center;
    color: var(--text-muted, #888);
}

.verification-notice a {
    color: var(--text-secondary, #a7db74);
    font-weight: bold;
}

.comment-list {
    margin-top: 20px;
}

.comment-card {
    background-color: var(--bg-content, #1a1a1a);
    border: 1px solid var(--border-color, #444);
    border-radius: 8px;
    display: flex;
    gap: 15px;
    padding: 20px;
    margin-bottom: 15px;
}

.comment-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-main {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-author .username a {
    font-weight: bold;
    text-decoration: none;
}

.comment-author .timestamp {
    font-size: 0.85em;
    color: var(--text-muted, #888);
}

.feed-comment-header {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 8px;
}

.feed-comment-header a {
    text-decoration: none;
}

.feed-comment-header .fa-caret-right {
    font-size: 0.9em;
    color: var(--text-muted);
    margin: 0 5px;
}

.comment-delete-form {
    margin: 0;
}

.delete-comment-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9em;
}

.delete-comment-btn:hover {
    color: #e74c3c;
}

.comment-body {
    line-height: 1.6;
    color: #ccc;
    word-wrap: break-word;
}

.comment-body img {
    max-width: 100%;
    max-height: 400px;
    height: auto;
    border-radius: 5px;
    margin-top: 10px;
}

.comment-body .responsive-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 10px;
}

.comment-body .responsive-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.comment-body blockquote {
    border-left: 4px solid var(--accent-color, #99d160);
    margin-left: 0;
    padding-left: 15px;
    background-color: var(--bg-card, #2c2c2c);
    border-radius: 0 5px 5px 0;
    font-style: italic;
}

.comment-body pre code {
    display: block;
    color: white;
    background-color: #222;
    padding: 15px;
    border-radius: 5px;
    font-family: Courier, monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.comment-footer {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 15px;
}

.vote-form {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.vote-btn {
    background: none;
    border: 1px solid var(--border-color, #444);
    color: var(--text-muted);
    border-radius: 5px;
    padding: 3px 8px;
    cursor: pointer;
}

.vote-btn:hover {
    background-color: var(--bg-card, #2c2c2c);
}

.vote-btn.liked {
    color: #2ecc71;
    border-color: #2ecc71;
}

.vote-btn.disliked {
    color: #e74c3c;
    border-color: #e74c3c;
}

.vote-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.vote-count {
    font-size: 0.9em;
    color: var(--text-muted);
}