.post-page {
    max-width: 720px;
    margin: 0 auto;
}

.post-detail {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 1rem;
}

.post-detail-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.post-detail-author {
    font-weight: 600;
    font-size: 0.9375rem;
}

.post-detail-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.post-detail-time {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-left: auto;
    padding-left: 0.75rem;
    line-height: 1.5;
}

.post-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.post-detail-content {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 0.625rem;
    margin-bottom: 1rem;
}

.post-detail-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.comments-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

.comments-section h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.comment {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 0;
    position: relative;
}

.comment-replies {
    margin-top: 0.75rem;
    padding-left: 0.5rem;
    border-left: 2px solid var(--border);
}

.comment-votes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 32px;
}

.comment-vote-btn {
    padding: 0.25rem;
    color: var(--text-muted);
    font-size: 0.8125rem;
    transition: color 0.2s;
}

.comment-vote-btn:hover {
    color: var(--accent);
}

.comment-vote-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
}

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

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.comment-author {
    font-size: 0.8125rem;
    font-weight: 600;
}

.comment-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.comment-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.comment-actions {
    display: flex;
    gap: 0.5rem;
}

.comment-action-btn {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.comment-action-btn:hover {
    color: var(--text-secondary);
    background: var(--bg-card-hover);
}

.comment-form {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    align-items: center;
}

.comment-form > a {
    flex-shrink: 0;
    line-height: 0;
}

.comment-form textarea {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    max-height: 120px;
}

.comment-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    flex-shrink: 0;
}

.comment-form-actions button {
    padding: 0.375rem 0.5rem;
    font-size: 1rem;
    line-height: 1;
    color: var(--text-muted);
    background: none;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: color 0.2s;
}

.comment-form-actions button:hover {
    color: var(--text-primary);
}

button.comment-form-submit {
    padding: 0.375rem 0.5rem;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.8125rem;
    line-height: 1.4;
}

button.comment-form-submit:hover {
    background: var(--accent-hover);
}

.post-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.post-action-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-secondary);
}

.post-action-btn.vote-up {
    color: var(--accent);
}

.post-action-btn.vote-down {
    color: var(--danger);
}

.post-votes {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
}

.post-vote-count {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    min-width: 1.25rem;
    text-align: center;
}

.comment-thread-line {
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

@media (max-width: 480px) {
    .post-detail {
        padding: 0.75rem;
    }

    .post-detail-header {
        gap: 0.5rem;
    }

    .post-detail-actions {
        flex-wrap: wrap;
        gap: 0.375rem;
    }

    .comments-section {
        padding: 0.75rem;
    }

    .comment {
        gap: 0.5rem;
    }

    .comment-votes {
        min-width: 28px;
    }

    .comment-replies {
        padding-left: 0.25rem;
    }
}

@media (max-width: 360px) {
    .comment-form {
        flex-wrap: wrap;
    }

    .comment-form > a {
        display: none;
    }

    .comment-form textarea {
        min-width: 100%;
    }
}
