/* Web 1.0 Dark Theme */
* {
    box-sizing: border-box;
    border-radius: 0 !important; /* Forces strict square corners */
}

body {
    background-color: #0d0d0d;
    color: #c0c0c0;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 20px;
}

.site-banner {
    border: 2px solid #444;
    background-color: #1a1a1a;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.site-banner h1 {
    margin: 0 0 5px 0;
    color: #ffffff;
    font-size: 1.5rem;
}

.site-banner p {
    margin: 0;
    font-size: 0.85rem;
    color: #888;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.panel {
    border: 2px solid #444;
    background-color: #121212;
    padding: 15px;
    margin-bottom: 20px;
}

.panel h2 {
    margin-top: 0;
    font-size: 1rem;
    color: #fff;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.control-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

input, select, textarea, button {
    background-color: #000;
    color: #fff;
    border: 2px solid #555;
    padding: 8px 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
}

input:focus, select:focus, textarea:focus {
    border-color: #fff;
    outline: none;
}

#searchInput {
    flex: 1;
    min-width: 200px;
}

button, .retro-btn {
    background-color: #222;
    cursor: pointer;
    font-weight: bold;
}

button:hover, .retro-btn:hover {
    background-color: #444;
    border-color: #fff;
}

/* Post Card Feed Layout */
.posts-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-card {
    border: 2px solid #444;
    background-color: #121212;
}

.post-title-banner {
    background-color: #222;
    color: #fff;
    padding: 8px 12px;
    font-weight: bold;
    border-bottom: 2px solid #444;
    font-size: 1rem;
}

.post-content-wrapper {
    display: flex;
    gap: 15px;
    padding: 15px;
    flex-wrap: wrap;
}

.post-img-box {
    width: 150px;
    height: 150px;
    min-width: 150px;
    border: 2px dashed #555;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.75rem;
    color: #777;
    padding: 5px;
}

.post-text-body {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-text-body p {
    margin: 0 0 15px 0;
    line-height: 1.4;
    word-break: break-word;
}

.post-meta {
    font-size: 0.75rem;
    color: #777;
    border-top: 1px dotted #333;
    padding-top: 5px;
}

/* Create Post Modal Overlay */
.modal-overlay {
    display: none; /* Toggled open via JavaScript */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-box {
    background-color: #121212;
    border: 2px solid #fff;
    width: 90%;
    max-width: 600px;
    padding: 20px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.modal-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
}

#postForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#postForm label {
    font-size: 0.85rem;
    color: #bbb;
}

.form-hint {
    font-size: 0.7rem;
    color: #777;
    margin-top: -5px;
}

.char-count {
    font-size: 0.75rem;
    text-align: right;
    color: #777;
}
