.post-header {
    padding: 2rem 0;
    border-bottom: 2px solid rgba(138, 43, 226, 0.3);
    margin-bottom: 2rem;
}

.post-header h1 {
    color: #bb86fc;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.post-meta {
    color: #888;
    font-size: 0.95rem;
}

.post-content {
    color: #e0e0e0;
    line-height: 1.8;
}

.post-content h2 {
    color: #7fa3d4;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.post-content h3 {
    color: #7fa3d4;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.post-content p {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.post-content ul, .post-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content code {
    background: rgba(138, 43, 226, 0.2);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    color: #bb86fc;
}

.post-content pre {
    background: rgba(79, 134, 247, 0.08);
    border: 1px solid #4f86f7;
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.post-content pre code {
    background: none;
    padding: 0;
}

.post-content blockquote {
    background: rgba(138, 43, 226, 0.05);
    border-left: 4px solid #bb86fc;
    padding: 0.5rem 1.5rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.post-content img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 2rem;
    border: 2px solid #bb86fc;
    text-align: center;
    display: block;
    margin: 0 auto;
}

.post-content video {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 2rem;
    border: 2px solid #bb86fc;
    display: block;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: #7fa3d4;
    text-decoration: none;
    transition: all 0.1s ease;
}

.back-link:hover {
    color: #bb86fc;
    transform: translateX(-5px);
}

/* Comments section */
#comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(138, 43, 226, 0.3);
}

#comments-section h2 {
    color: #bb86fc;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

#username-setup, #comment-form-container {
    background: rgba(138, 43, 226, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid rgba(138, 43, 226, 0.2);
}

#username-setup p, #comment-form-container p {
    color: #e0e0e0;
    margin-bottom: 1rem;
}

#username-form, #comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

#username-input, #comment-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 4px;
    padding: 0.8rem;
    color: #e0e0e0;
    font-family: inherit;
    font-size: 1rem;
}

#comment-input {
    resize: vertical;
    min-height: 100px;
}

#username-input:focus, #comment-input:focus {
    outline: none;
    border-color: #bb86fc;
    background: rgba(0, 0, 0, 0.4);
}

#username-form button, #comment-form button {
    background: #bb86fc;
    color: #0a0808;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-start;
}

#username-form button:hover, #comment-form button:hover {
    background: #7fa3d4;
    transform: translateY(-2px);
}

#current-username {
    color: #bb86fc;
}

.change-username-btn {
    background: transparent;
    color: #7fa3d4;
    border: 1px solid #7fa3d4;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
}

.change-username-btn:hover {
    background: rgba(127, 163, 212, 0.2);
    color: #bb86fc;
    border-color: #bb86fc;
}

/* Individual comment */
.comment {
    background: rgba(79, 134, 247, 0.05);
    border-left: 3px solid #7fa3d4;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.comment-header strong {
    color: #bb86fc;
    font-size: 1rem;
}

.comment-date {
    color: #888;
    font-size: 0.85rem;
}

.comment-body {
    color: #e0e0e0;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

