/* General Forum Page Layout */
#forum-page .hero {
    text-align: center;
    padding: 40px 0 20px 0;
}

#forum-page main.container {
    max-width: 900px;
}

/* Create Post Section */
#create-post-section {
    background-color: rgba(10, 25, 47, 0.7);
    padding: 25px;
    border: 2px solid var(--neon-cyan);
    border-radius: 10px;
    margin-bottom: 40px;
}

#login-for-posting-prompt p {
    text-align: center;
    font-size: 1.1em;
    color: var(--light-text);
}

#login-for-posting-prompt a {
    color: var(--neon-magenta);
    text-decoration: underline;
    cursor: pointer;
}

#create-post-form h3 {
    text-align: center;
    color: var(--neon-magenta);
    font-family: 'VT323', monospace;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

#create-post-form input,
#create-post-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background-color: var(--dark-bg);
    border: 1px solid var(--neon-green);
    color: var(--light-text);
    border-radius: 5px;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
}

#create-post-form button {
    width: 100%;
    padding: 12px;
    background-color: var(--neon-magenta);
    color: var(--dark-bg);
    border: none;
    border-radius: 5px;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}

#create-post-form button:hover {
    background-color: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan);
}

/* Posts Section */
#posts-section h2 {
    text-align: center;
    font-family: 'VT323', monospace;
    font-size: 2.5rem;
    color: var(--neon-magenta);
    margin-bottom: 30px;
}

.post-item {
    background-color: var(--grungy-blue);
    border: 1px solid var(--neon-green);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.post-item .post-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.6rem;
    color: var(--neon-cyan);
}

.post-item .post-meta {
    font-size: 0.9em;
    color: #8892b0;
    margin-bottom: 15px;
}

.post-item .post-content p {
    white-space: pre-wrap; /* Respects line breaks in textarea */
    color: #ccc;
    line-height: 1.6;
}

.post-item .post-content a {
    color: var(--neon-magenta);
    word-break: break-all;
}

/* Comments Section */
.comments-section {
    border-top: 1px solid var(--neon-green);
    padding-top: 15px;
    margin-top: 20px;
}

.comments-section h4 {
    color: var(--neon-green);
    margin-bottom: 15px;
}

.comment-form {
    display: flex;
    margin-bottom: 20px;
}

.comment-form input {
    flex-grow: 1;
    padding: 10px;
    background-color: var(--dark-bg);
    border: 1px solid var(--neon-cyan);
    color: var(--light-text);
    border-radius: 5px 0 0 5px;
}

.comment-form button {
    padding: 10px 15px;
    background-color: var(--neon-cyan);
    color: var(--dark-bg);
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.comment-item {
    border-bottom: 1px solid #304a69;
    padding: 10px 0;
    font-size: 0.95em;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-meta {
    font-size: 0.8em;
    color: #8892b0;
    margin-bottom: 5px;
}
.comment-meta strong {
    color: var(--neon-green);
}

.comment-body {
    color: #ccc;
}

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

.post-meta,
.comment-meta {
    flex-grow: 1;
}

.delete-post-btn,
.delete-comment-btn {
    margin-left: 15px;
    padding: 3px 8px;
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    flex-shrink: 0;
}

.delete-post-btn:hover,
.delete-comment-btn:hover {
    background-color: #cc0000;
}

.comment-item .comment-header {
    margin-bottom: 4px; /* Tighter spacing for comments */
}

#forum-page-body {
    position: relative;
    overflow: hidden; /* To contain the pseudo-element */
}

/* CRT Scanlines Effect */
#forum-page-body::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0) 50%,
        rgba(0, 255, 0, 0.1) 50%
    );
    background-size: 100% 4px;
    animation: scanlines 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes scanlines {
    from { background-position: 0 0; }
    to { background-position: 0 100vh; }
}

#create-post-container {
    padding: 2rem;
    border: 1px solid var(--neon-blue);
    border-radius: 8px;
    box-shadow: 0 0 15px var(--neon-blue-faded);
    margin-bottom: 2rem;
    background: rgba(10, 10, 10, 0.4);
}

#create-post-container h2 {
    text-align: center;
    color: var(--neon-pink);
    margin-bottom: 1.5rem;
}

#create-post-form input[type="text"],
#create-post-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    background-color: #111;
    border: 1px solid var(--neon-blue);
    color: var(--neon-green);
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    border-radius: 4px;
}

#create-post-form button {
    width: 100%;
    padding: 12px;
    background-color: var(--neon-green);
    color: #000;
    border: none;
    border-radius: 4px;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#create-post-form button:hover {
    background-color: #fff;
    box-shadow: 0 0 15px var(--neon-green);
}

.post-item h3 {
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green-faded);
    margin-bottom: 5px;
} 