body {
    font-family: Vazir, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    direction: rtl;
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #333;
}

.header nav {
    margin-top: 1rem;
}

.header nav a {
    color: #007bff;
    text-decoration: none;
    margin: 0 10px;
}

.header nav a:hover {
    text-decoration: underline;
}

.post {
    background: #fafafa;
    padding: 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 4px rgba(0,0,0,0.1);
}

.post h2 {
    margin-top: 0;
    font-size: 1.4rem;
    color: #222;
}

.post p {
    color: #444;
    line-height: 1.6;
}

.meta {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.reply {
    background: #f1f1f1;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.reply .meta {
    font-size: 0.85rem;
    color: #555;
}

form textarea, form input, form button {
    width: 100%;
    font-family: Vazir, sans-serif;
    margin-bottom: 1rem;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

form button {
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #0056b3;
}

/* GP fixed blue back button */
.header-btn {
    display: inline-block;
    background: #4f7df3;
    color: #fff !important;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 12px rgba(79,125,243,.22);
}
.header-btn:hover {
    background: #3f68d8;
    color: #fff !important;
}


/* GP reply author avatar/name layout */
.reply-author-row,
.reply .topic-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}
.reply-avatar,
.reply .topic-avatar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.reply-main,
.reply .topic-title {
    flex: 1 1 auto;
    min-width: 0;
}
.reply-author-name {
    font-weight: 800;
    color: #111827;
    margin-bottom: 6px;
}
.reply-avatar .author-avatar,
.reply-avatar .author-placeholder,
.reply .topic-avatar .author-avatar,
.reply .topic-avatar .author-placeholder {
    border-radius: 50%;
    width: 46px !important;
    height: 46px !important;
    object-fit: cover;
}
