/* Posts */
.posts {
    margin-bottom: 16px;
}

/* Post cards */
.post-card {
    background: rgba(8, 12, 18, 0.6);
    border: 1px solid rgba(58, 212, 231, 0.12);
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.post-card:hover {
    border-color: rgba(58, 212, 231, 0.25);
}

.post-card-pinned {
    border-color: rgba(231, 170, 58, 0.25);
    border-left: 3px solid rgba(231, 170, 58, 0.5);
}

.post-card-pinned:hover {
    border-color: rgba(231, 170, 58, 0.4);
}

/* Header */
.post-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.post-title {
    color: #3ad4e7;
    font-family: 'Electrolize', Arial, sans-serif;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-card-pinned .post-title {
    color: #e7aa3a;
}

.post-pinned {
    font-family: 'Electrolize', Arial, sans-serif;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #e7aa3a;
    background: rgba(231, 170, 58, 0.1);
    border: 1px solid rgba(231, 170, 58, 0.25);
    border-radius: 3px;
    padding: 1px 6px;
}

/* Meta */
.post-meta {
    font-size: 11px;
    margin-bottom: 8px;
}

.post-author {
    color: #5a6a78;
    font-family: 'Electrolize', Arial, sans-serif;
}

.post-date {
    color: #3a4a58;
    margin-left: 10px;
    font-family: 'Roboto', Arial, sans-serif;
}

/* Body */
.post-body {
    color: #b8c4d0;
    font-size: 13px;
    line-height: 1.6;
    overflow: hidden;
}

.post-body p {
    margin: 0 0 8px;
}

.post-body p:last-child {
    margin-bottom: 0;
}

.post-body a {
    color: #3ad4e7;
}

.post-body a:hover {
    color: #fff;
}

/* Admin controls */
.post-controls {
    margin-left: auto;
    display: flex;
    gap: 8px;
    font-size: 11px;
    font-family: 'Electrolize', Arial, sans-serif;
}

.post-controls a {
    color: #3a4a58;
    text-decoration: none;
    transition: color 0.2s;
}

.post-controls a:hover {
    color: #3ad4e7;
}

.post-controls .post-delete {
    font-size: 16px;
    line-height: 1;
    padding: 0 4px;
}

.post-controls .post-delete:hover {
    color: #cc4444;
}

.post-empty {
    color: #3a4a58;
}

/* Admin form */
.post-form {
    background: rgba(8, 12, 18, 0.4);
    border: 1px solid rgba(58, 212, 231, 0.1);
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.post-form form {
    display: flex;
    flex-direction: column;
}

.post-input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(14, 20, 28, 0.8);
    color: #b8c4d0;
    border: 1px solid rgba(58, 212, 231, 0.18);
    border-radius: 4px;
    padding: 8px 10px;
    font-family: 'Electrolize', Arial, sans-serif;
    font-size: 14px;
    margin-bottom: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.post-input:focus {
    border-color: rgba(58, 212, 231, 0.5);
    box-shadow: 0 0 8px rgba(58, 212, 231, 0.12);
    outline: none;
}

.post-textarea {
    width: 100%;
    box-sizing: border-box;
    background: rgba(14, 20, 28, 0.8);
    color: #b8c4d0;
    border: 1px solid rgba(58, 212, 231, 0.18);
    border-radius: 4px;
    padding: 8px 10px;
    resize: vertical;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 13px;
    margin-bottom: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.post-textarea:focus {
    border-color: rgba(58, 212, 231, 0.5);
    box-shadow: 0 0 8px rgba(58, 212, 231, 0.12);
    outline: none;
}

.post-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-pin-label {
    color: #5a6a78;
    font-family: 'Electrolize', Arial, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
}

.button-cancel {
    background: rgba(14, 20, 28, 0.8);
    border-color: rgba(90, 106, 120, 0.3);
    color: #5a6a78;
}

.button-cancel:hover {
    border-color: rgba(90, 106, 120, 0.5);
    color: #b8c4d0;
}

/* Validation error highlight */
.post-field-error {
    border-color: rgba(204, 68, 68, 0.6) !important;
    box-shadow: 0 0 6px rgba(204, 68, 68, 0.2) !important;
}

/* Post images */
.post-body img {
    max-width: 100%;
    border-radius: 4px;
    border: 1px solid rgba(58, 212, 231, 0.12);
    margin: 4px 0;
}

/* Edit form inside card */
.post-edit-form {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(58, 212, 231, 0.08);
}

.post-edit-form form {
    display: flex;
    flex-direction: column;
}
