/* =============================================
   Individual Post Page
   ============================================= */

.post-page-wrap {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.post-wrap {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

/* --- Main content --- */
.post-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Navigation bar */
.post-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1a1a;
    padding: 8px 12px;
    margin-bottom: 4px;
    border-top: 4px solid #d5171b;
}

.post-nav-btn {
    color: #e8e8e8;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'changeling neo', sans-serif;
    font-weight: bold;
    padding: 4px 10px;
    border: 1px solid #444;
    border-radius: 3px;
    transition: all 0.15s;
    display: inline-block;
}

.post-nav-btn:hover {
    color: #fff;
    background: #d5171b;
    border-color: #d5171b;
    text-decoration: none;
}

.post-nav-disabled {
    color: #555;
    font-size: 0.9rem;
    font-family: 'changeling neo', sans-serif;
    font-weight: bold;
    padding: 4px 10px;
    border: 1px solid #2a2a2a;
    border-radius: 3px;
    cursor: default;
}

.post-nav-gallery {
    color: #aaa;
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.15s;
}

.post-nav-gallery:hover {
    color: #d5171b;
}

/* Image / video */
.post-image-wrap {
    width: 100%;
    background: #0d0d0d;
    display: flex;
    justify-content: center;
    align-items: center;
}

.post-image-link {
    display: block;
    width: 100%;
}

.post-media {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    margin: 0 auto;
    object-fit: contain;
}

/* Title + meta bar */
.post-meta-bar {
    background: #1a1a1a;
    padding: 10px 14px;
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.post-title {
    font-family: 'changeling neo', sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    color: #fff;
}

.post-meta-details {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: #aaa;
    flex-wrap: wrap;
    align-items: center;
}

.post-meta-details span {
    white-space: nowrap;
}

.post-cat-link {
    color: #d5171b;
    text-decoration: none;
    font-weight: bold;
}

.post-cat-link:hover {
    color: #ff4444;
}

/* Like button */
.post-like-wrap {
    padding: 12px 14px;
    background: #151515;
}

.like-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 5px;
    border: 2px solid #d5171b;
    padding: 14px 28px;
    font-size: 1.15rem;
    font-family: 'changeling neo', sans-serif;
    font-weight: bold;
    background-color: rgba(213,23,27,0.12);
    color: #e8e8e8;
    transition: all 0.2s;
    cursor: pointer;
    width: 100%;
    letter-spacing: 0.03em;
}

.like-button i {
    font-size: 1.2rem;
}

.like-button:hover {
    background-color: #d5171b;
    color: #fff;
    border-color: #d5171b;
}

.liked {
    background-color: #d5171b;
    color: #fff;
    border-color: #d5171b;
}

.liked:hover {
    background-color: rgba(213,23,27,0.12);
    color: #e8e8e8;
    border-color: #d5171b;
}


/* Description */
.post-description {
    padding: 14px;
    font-size: 0.92rem;
    color: #ddd;
    line-height: 1.6;
    background: #111;
    border-top: 1px solid #2a2a2a;
}

/* Tags */
.post-tags {
    padding: 10px 14px;
    font-size: 0.82rem;
    color: #aaa;
    background: #111;
    border-top: 1px solid #2a2a2a;
}

.post-tags-label {
    color: #d5171b;
    font-weight: bold;
}

/* --- Sidebar --- */
.post-sidebar {
    width: 240px;
    flex-shrink: 0;
}

.post-artist-card {
    background: #1a1a1a;
    border-top: 4px solid #d5171b;
    display: flex;
    flex-direction: column;
}

.post-artist-title {
    background: #d5171b;
    color: #fff;
    font-family: 'changeling neo', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    padding: 6px 12px;
}

.post-artist-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding-bottom: 0.5rem;
    transition: opacity 0.15s;
}

.post-artist-link:hover {
    opacity: 0.85;
}

.post-artist-avatar {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #111;
}

.post-artist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.post-artist-name {
    width: 100%;
    padding: 0.6rem 1rem 0.25rem;
    font-family: 'changeling neo', sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
    color: #fff;
    text-align: center;
    word-break: break-word;
}

.post-artist-bio {
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
    color: #ccc;
    line-height: 1.5;
    border-top: 1px solid #333;
    word-break: break-word;
}

.post-artist-links-title {
    width: 100%;
    background: #d5171b;
    color: #fff;
    font-family: 'changeling neo', sans-serif;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 5px 12px;
}

.post-artist-links {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 1rem 1rem;
    gap: 4px;
}

.post-artist-links a {
    color: #e8e8e8;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.15s;
    word-break: break-all;
}

.post-artist-links a:hover {
    color: #d5171b;
    text-decoration: underline;
}

/* =============================================
   Responsive
   ============================================= */
@media only screen and (max-width: 900px) {
    .post-wrap {
        flex-direction: column-reverse;
    }
    .post-sidebar {
        width: 100%;
    }
    .post-artist-avatar {
        max-height: 260px;
        aspect-ratio: unset;
    }
    .post-artist-avatar img {
        max-height: 260px;
        object-fit: cover;
    }
    .post-artist-link {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        padding: 0.5rem;
    }
    .post-artist-avatar {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
        border-radius: 50%;
    }
    .post-artist-name {
        text-align: left;
        padding: 0;
    }
}

@media only screen and (max-width: 500px) {
    .post-meta-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .post-meta-details {
        gap: 8px;
    }
}

/* =============================================
   Comments Section
   ============================================= */

.post-comments-wrap {
    max-width: 900px;
    margin: 1.5rem auto 2.5rem;
    padding: 0 1rem;
}

.post-comments-title {
    background: #d5171b;
    color: #fff;
    font-family: 'changeling neo', sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 8px 14px;
    margin-bottom: 1rem;
}

.post-comments-count {
    font-size: 0.9rem;
    opacity: 0.8;
}

.post-comment-error {
    background: #3a1010;
    border: 1px solid #d5171b;
    color: #ff9090;
    padding: 8px 14px;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.post-comments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.post-comment {
    background: #1a1a1a;
    border-left: 3px solid #d5171b;
    padding: 10px 14px;
    border-radius: 0 4px 4px 0;
}

.post-comment-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 5px;
}

.post-comment-user {
    color: #d5171b;
    font-weight: bold;
    font-size: 0.9rem;
}

.post-comment-date {
    color: #555;
    font-size: 0.75rem;
}

.post-comment-body {
    color: #ddd;
    font-size: 0.9rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.post-comments-empty {
    color: #555;
    font-style: italic;
    padding: 8px 0;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.post-comment-form-wrap {
    background: #1a1a1a;
    padding: 14px;
    border-radius: 4px;
}

.post-comment-textarea {
    width: 100%;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    padding: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    min-height: 80px;
    box-sizing: border-box;
}

.post-comment-textarea:focus {
    outline: none;
    border-color: #d5171b;
}

.post-comment-textarea::placeholder { color: #555; }

.post-comment-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.post-comment-charcount {
    color: #555;
    font-size: 0.8rem;
}

.post-comment-charcount.near-limit { color: #e0a030; }
.post-comment-charcount.at-limit   { color: #d5171b; }

.post-comment-submit {
    background: #d5171b;
    color: #fff;
    border: none;
    padding: 8px 22px;
    font-family: 'changeling neo', sans-serif;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
}

.post-comment-submit:hover { background: #b01015; }

.post-comments-login {
    color: #777;
    font-size: 0.9rem;
    padding: 8px 0;
}

.post-comments-login a { color: #d5171b; }

/* Moderator comment controls */
.post-comment-mod-actions {
    display: inline-flex;
    gap: 4px;
    margin-left: auto;
}

.post-comment-mod-form {
    display: inline;
    margin: 0;
}

.post-mod-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: background 0.15s, border-color 0.15s;
    line-height: 1;
}

.post-mod-delete {
    color: #888;
}

.post-mod-delete:hover {
    color: #d5171b;
    border-color: #d5171b;
    background: rgba(213,23,27,0.1);
}

.post-mod-ban {
    color: #888;
}

.post-mod-ban:hover {
    color: #c77d00;
    border-color: #c77d00;
    background: rgba(199,125,0,0.1);
}

/* Moderator tag editor */
.post-mod-tag-editor {
    margin-top: 14px;
    padding: 12px 14px;
    background: #111;
    border: 1px solid #333;
    border-left: 3px solid #d5171b;
    border-radius: 4px;
}

.post-mod-tag-label {
    font-size: 0.75rem;
    color: #d5171b;
    font-family: 'changeling neo', sans-serif;
    font-weight: bold;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.post-mod-tag-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.post-mod-tag-row .bootstrap-tagsinput {
    flex: 1;
    background: #1a1a1a;
    border-color: #444;
    min-height: 36px;
}

.post-mod-tag-save {
    background: #d5171b;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    font-family: 'changeling neo', sans-serif;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    flex-shrink: 0;
}

.post-mod-tag-save:hover { background: #b01015; }

/* Header mod badge */
.mod-badge {
    display: inline-block;
    background: #d5171b;
    color: #fff;
    font-size: 0.65rem;
    font-weight: bold;
    border-radius: 10px;
    padding: 1px 6px;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 1.4;
}

/* Comment report button */
.post-comment-report {
    margin-top: 6px;
}

.post-report-toggle {
    font-size: 0.75rem;
    color: #555;
    text-decoration: none;
    transition: color 0.15s;
}

.post-report-toggle:hover { color: #d5171b; text-decoration: none; }

.post-report-form {
    margin-top: 6px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.post-report-form form {
    display: flex;
    gap: 6px;
    align-items: center;
    width: 100%;
}

.post-report-reason {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #ccc;
    font-size: 0.8rem;
    padding: 4px 8px;
}

.post-report-submit {
    background: transparent;
    border: 1px solid #555;
    color: #888;
    font-size: 0.78rem;
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s, color 0.15s;
}

.post-report-submit:hover { border-color: #d5171b; color: #d5171b; }

/* Mod panel page */
.mod-report-list { display: flex; flex-direction: column; gap: 1rem; }

.mod-report-card {
    background: #111;
    border: 1px solid #2a2a2a;
    border-left: 3px solid #d5171b;
    border-radius: 6px;
    padding: 16px 20px;
}

.mod-report-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 10px;
}

.mod-report-meta a { color: #d5171b; text-decoration: none; }
.mod-report-meta a:hover { text-decoration: underline; }

.mod-report-comment {
    background: #1a1a1a;
    border-radius: 4px;
    padding: 10px 14px;
    color: #ddd;
    font-size: 0.92rem;
    margin-bottom: 10px;
    white-space: pre-wrap;
    word-break: break-word;
}

.mod-report-flag {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 12px;
}

.mod-report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mod-action-form { margin: 0; }

.mod-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-family: 'changeling neo', sans-serif;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: opacity 0.15s;
}

.mod-action-btn:hover { opacity: 0.85; text-decoration: none; }

.mod-action-delete { background: rgba(213,23,27,0.15); border-color: #d5171b; color: #d5171b; }
.mod-action-ban    { background: rgba(180,90,0,0.15);   border-color: #c77d00; color: #c77d00; }
.mod-action-dismiss{ background: rgba(80,180,80,0.12);  border-color: #4a4;    color: #4a4;    }
.mod-action-view   { background: rgba(255,255,255,0.05);border-color: #444;    color: #aaa;    }

/* Post likers list (visible to post owner) */
.post-likers {
    font-size: 0.82rem;
    color: #888;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #222;
}

.post-likers-label {
    color: #d5171b;
    font-weight: bold;
    margin-right: 4px;
}

.post-liker {
    color: #ccc;
}
