.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.post-modal {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.modal-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.modal-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-content {
    padding: 15px;
}

.modal-input {
    width: 100%;
    min-height: 100px;
    border: none;
    resize: none;
    font-size: 16px;
    outline: none;
    margin-bottom: 10px;
}

.modal-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tool-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.2s;
}

.tool-btn:hover {
    background: rgba(0,0,0,0.1);
}

.modal-post-btn {
    background: var(--secondary, #3AAFA9);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-post-btn:hover {
    background: var(--accent, #FF6B6B);
}

@media (max-width: 768px) {
    .post-modal {
        width: 95%;
        margin: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
}