.reply {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.reply-form-container {
    margin-top: 30px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #333;
}

.reply-form-container h3 {
    color: var(--light);
    margin-bottom: 15px;
}

.post-images {
    margin: 15px 0;
}

.post-actions {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
    background: #333;
    border: 1px solid #555;
    color: #ccc;
    cursor: pointer;
    border-radius: 3px;
}

.btn-small:hover {
    background: #444;
}

/* Стили для редактора */
.editor-toolbar {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    padding: 10px;
    background: #2a2a2a;
    border-radius: 5px;
    border: 1px solid #444;
}

.toolbar-btn {
    padding: 8px 12px;
    background: #333;
    border: 1px solid #555;
    color: #ccc;
    cursor: pointer;
    border-radius: 3px;
    font-size: 14px;
    transition: all 0.3s;
}

.toolbar-btn:hover {
    background: #444;
    border-color: var(--accent);
    color: var(--light);
}

#content-editor {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 1px solid #444;
    border-radius: 5px;
    background: #1a1a1a;
    color: var(--light);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s;
}

#content-editor:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 150, 255, 0.1);
}

.editor-actions {
    margin: 10px 0;
}

.editor-preview {
    margin-top: 15px;
    padding: 15px;
    border: 1px solid #444;
    border-radius: 5px;
    background: #1a1a1a;
    min-height: 100px;
}

.preview-content {
    color: var(--light);
    line-height: 1.5;
}

.preview-content blockquote {
    border-left: 3px solid var(--accent);
    margin: 10px 0;
    padding-left: 15px;
    color: #999;
    font-style: italic;
}

.preview-content code {
    background: #2a2a2a;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #ff6b6b;
}

/* Стили для редактирования постов */
.edit-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 5px;
    background: #1a1a1a;
    color: var(--light);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

.edit-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .reply-form-container {
        padding: 15px;
    }
    
    .post-actions {
        margin-top: 10px;
    }
    
    .editor-toolbar {
        flex-wrap: wrap;
    }
    
    .toolbar-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    #content-editor {
        font-size: 16px;
    }
    
    .edit-actions {
        flex-direction: column;
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
blockquote:hover {
    transform: perspective(500px) rotateX(0deg) scale(1.02) !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3), 
                inset 0 0 150px rgba(255,255,255,0.1) !important;
}
.post-text {
    white-space: pre-wrap; /* Сохраняет пробелы и переносы */
    word-wrap: break-word; /* Перенос длинных слов */
    line-height: 1.6;
    margin-bottom: 1rem;
}
/* Для контента темы */
.topic-content .post-text {
    font-size: 1.1em;
    line-height: 1.7;
}

/* Стили для форматированного текста */
.post-text strong {
    font-weight: bold;
    color: #ff6b6b;
}

.post-text em {
    font-style: italic;
    color: #4ecdc4;
}

.post-text u {
    text-decoration: underline;
    color: #45b7d1;
}

.post-text code {
    background: #2a2a2a;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #ff6b6b;
    font-size: 0.9em;
}